feat: update global styles and component designs for enhanced aesthetics and responsiveness, including new gradients, shadows, and transitions
This commit is contained in:
270
app/globals.css
270
app/globals.css
@@ -4,74 +4,117 @@
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
:root {
|
||||
--background: oklch(1 0 0);
|
||||
--foreground: oklch(0.145 0 0);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.145 0 0);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.145 0 0);
|
||||
--primary: oklch(0.205 0 0);
|
||||
--primary-foreground: oklch(0.985 0 0);
|
||||
--secondary: oklch(0.97 0 0);
|
||||
--secondary-foreground: oklch(0.205 0 0);
|
||||
--muted: oklch(0.97 0 0);
|
||||
--muted-foreground: oklch(0.556 0 0);
|
||||
--accent: oklch(0.97 0 0);
|
||||
--accent-foreground: oklch(0.205 0 0);
|
||||
--destructive: oklch(0.577 0.245 27.325);
|
||||
--destructive-foreground: oklch(0.577 0.245 27.325);
|
||||
--border: oklch(0.922 0 0);
|
||||
--input: oklch(0.922 0 0);
|
||||
--ring: oklch(0.708 0 0);
|
||||
--chart-1: oklch(0.646 0.222 41.116);
|
||||
--chart-2: oklch(0.6 0.118 184.704);
|
||||
--chart-3: oklch(0.398 0.07 227.392);
|
||||
--chart-4: oklch(0.828 0.189 84.429);
|
||||
--chart-5: oklch(0.769 0.188 70.08);
|
||||
--radius: 0.625rem;
|
||||
--sidebar: oklch(0.985 0 0);
|
||||
--sidebar-foreground: oklch(0.145 0 0);
|
||||
--sidebar-primary: oklch(0.205 0 0);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.97 0 0);
|
||||
--sidebar-accent-foreground: oklch(0.205 0 0);
|
||||
--sidebar-border: oklch(0.922 0 0);
|
||||
--sidebar-ring: oklch(0.708 0 0);
|
||||
/* Background moderne avec légère teinte */
|
||||
--background: oklch(0.99 0.002 270);
|
||||
--foreground: oklch(0.15 0.01 270);
|
||||
|
||||
/* Cards avec glassmorphism subtil */
|
||||
--card: oklch(1 0 0 / 0.8);
|
||||
--card-foreground: oklch(0.15 0.01 270);
|
||||
|
||||
/* Popover avec backdrop blur */
|
||||
--popover: oklch(1 0 0 / 0.95);
|
||||
--popover-foreground: oklch(0.15 0.01 270);
|
||||
|
||||
/* Primary: Bleu/violet fintech moderne */
|
||||
--primary: oklch(0.55 0.18 260);
|
||||
--primary-foreground: oklch(0.99 0 0);
|
||||
|
||||
/* Secondary avec teinte subtile */
|
||||
--secondary: oklch(0.97 0.005 270);
|
||||
--secondary-foreground: oklch(0.25 0.01 270);
|
||||
|
||||
/* Muted plus doux */
|
||||
--muted: oklch(0.96 0.003 270);
|
||||
--muted-foreground: oklch(0.5 0.008 270);
|
||||
|
||||
/* Accent avec couleur vibrante */
|
||||
--accent: oklch(0.95 0.01 260);
|
||||
--accent-foreground: oklch(0.55 0.18 260);
|
||||
|
||||
/* Destructive moderne */
|
||||
--destructive: oklch(0.55 0.22 25);
|
||||
--destructive-foreground: oklch(0.99 0 0);
|
||||
|
||||
/* Bordures fines et subtiles */
|
||||
--border: oklch(0.92 0.005 270 / 0.6);
|
||||
--input: oklch(0.96 0.003 270);
|
||||
--ring: oklch(0.55 0.18 260 / 0.3);
|
||||
|
||||
/* Chart colors modernes et vibrantes */
|
||||
--chart-1: oklch(0.6 0.2 260);
|
||||
--chart-2: oklch(0.65 0.18 180);
|
||||
--chart-3: oklch(0.7 0.15 120);
|
||||
--chart-4: oklch(0.65 0.2 320);
|
||||
--chart-5: oklch(0.6 0.18 40);
|
||||
|
||||
--radius: 0.75rem;
|
||||
|
||||
/* Sidebar moderne */
|
||||
--sidebar: oklch(0.98 0.003 270);
|
||||
--sidebar-foreground: oklch(0.2 0.01 270);
|
||||
--sidebar-primary: oklch(0.55 0.18 260);
|
||||
--sidebar-primary-foreground: oklch(0.99 0 0);
|
||||
--sidebar-accent: oklch(0.95 0.01 260);
|
||||
--sidebar-accent-foreground: oklch(0.25 0.01 270);
|
||||
--sidebar-border: oklch(0.92 0.005 270 / 0.5);
|
||||
--sidebar-ring: oklch(0.55 0.18 260 / 0.2);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.145 0 0);
|
||||
--foreground: oklch(0.985 0 0);
|
||||
--card: oklch(0.145 0 0);
|
||||
--card-foreground: oklch(0.985 0 0);
|
||||
--popover: oklch(0.145 0 0);
|
||||
--popover-foreground: oklch(0.985 0 0);
|
||||
--primary: oklch(0.985 0 0);
|
||||
--primary-foreground: oklch(0.205 0 0);
|
||||
--secondary: oklch(0.269 0 0);
|
||||
--secondary-foreground: oklch(0.985 0 0);
|
||||
--muted: oklch(0.269 0 0);
|
||||
--muted-foreground: oklch(0.708 0 0);
|
||||
--accent: oklch(0.269 0 0);
|
||||
--accent-foreground: oklch(0.985 0 0);
|
||||
--destructive: oklch(0.396 0.141 25.723);
|
||||
--destructive-foreground: oklch(0.637 0.237 25.331);
|
||||
--border: oklch(0.269 0 0);
|
||||
--input: oklch(0.269 0 0);
|
||||
--ring: oklch(0.439 0 0);
|
||||
--chart-1: oklch(0.488 0.243 264.376);
|
||||
--chart-2: oklch(0.696 0.17 162.48);
|
||||
--chart-3: oklch(0.769 0.188 70.08);
|
||||
--chart-4: oklch(0.627 0.265 303.9);
|
||||
--chart-5: oklch(0.645 0.246 16.439);
|
||||
--sidebar: oklch(0.205 0 0);
|
||||
--sidebar-foreground: oklch(0.985 0 0);
|
||||
--sidebar-primary: oklch(0.488 0.243 264.376);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.269 0 0);
|
||||
--sidebar-accent-foreground: oklch(0.985 0 0);
|
||||
--sidebar-border: oklch(0.269 0 0);
|
||||
--sidebar-ring: oklch(0.439 0 0);
|
||||
/* Background sombre avec teinte subtile */
|
||||
--background: oklch(0.12 0.01 270);
|
||||
--foreground: oklch(0.98 0.002 270);
|
||||
|
||||
/* Cards avec effet glassmorphism sombre */
|
||||
--card: oklch(0.15 0.01 270 / 0.7);
|
||||
--card-foreground: oklch(0.98 0.002 270);
|
||||
|
||||
/* Popover avec backdrop blur */
|
||||
--popover: oklch(0.15 0.01 270 / 0.95);
|
||||
--popover-foreground: oklch(0.98 0.002 270);
|
||||
|
||||
/* Primary: Bleu/violet brillant pour dark mode */
|
||||
--primary: oklch(0.65 0.2 260);
|
||||
--primary-foreground: oklch(0.12 0.01 270);
|
||||
|
||||
/* Secondary avec plus de contraste */
|
||||
--secondary: oklch(0.22 0.01 270);
|
||||
--secondary-foreground: oklch(0.95 0.002 270);
|
||||
|
||||
/* Muted plus visible */
|
||||
--muted: oklch(0.22 0.01 270);
|
||||
--muted-foreground: oklch(0.65 0.008 270);
|
||||
|
||||
/* Accent vibrant */
|
||||
--accent: oklch(0.25 0.015 260);
|
||||
--accent-foreground: oklch(0.65 0.2 260);
|
||||
|
||||
/* Destructive moderne */
|
||||
--destructive: oklch(0.6 0.22 25);
|
||||
--destructive-foreground: oklch(0.98 0 0);
|
||||
|
||||
/* Bordures subtiles */
|
||||
--border: oklch(0.25 0.01 270 / 0.5);
|
||||
--input: oklch(0.22 0.01 270);
|
||||
--ring: oklch(0.65 0.2 260 / 0.4);
|
||||
|
||||
/* Chart colors vibrantes pour dark */
|
||||
--chart-1: oklch(0.7 0.22 260);
|
||||
--chart-2: oklch(0.75 0.2 180);
|
||||
--chart-3: oklch(0.8 0.18 120);
|
||||
--chart-4: oklch(0.75 0.22 320);
|
||||
--chart-5: oklch(0.7 0.2 40);
|
||||
|
||||
/* Sidebar dark moderne */
|
||||
--sidebar: oklch(0.14 0.01 270);
|
||||
--sidebar-foreground: oklch(0.95 0.002 270);
|
||||
--sidebar-primary: oklch(0.65 0.2 260);
|
||||
--sidebar-primary-foreground: oklch(0.12 0.01 270);
|
||||
--sidebar-accent: oklch(0.25 0.015 260);
|
||||
--sidebar-accent-foreground: oklch(0.95 0.002 270);
|
||||
--sidebar-border: oklch(0.25 0.01 270 / 0.4);
|
||||
--sidebar-ring: oklch(0.65 0.2 260 / 0.3);
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
@@ -121,9 +164,45 @@
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
font-feature-settings: "rlig" 1, "calt" 1;
|
||||
}
|
||||
|
||||
/* Background avec beau dégradé */
|
||||
/* Animations fintech modernes */
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slide-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-8px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Smooth scrolling */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Amélioration des transitions globales */
|
||||
* {
|
||||
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
/* Background fintech moderne avec dégradés subtils */
|
||||
.page-background {
|
||||
position: relative;
|
||||
background: var(--background);
|
||||
@@ -138,58 +217,37 @@
|
||||
bottom: 0;
|
||||
z-index: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 50% at 50% -20%,
|
||||
color-mix(in srgb, var(--chart-1) 25%, transparent) 0%,
|
||||
transparent 50%
|
||||
radial-gradient(ellipse 100% 60% at 0% 0%,
|
||||
color-mix(in srgb, var(--primary) 8%, transparent) 0%,
|
||||
transparent 60%
|
||||
),
|
||||
radial-gradient(ellipse 60% 80% at -10% 50%,
|
||||
color-mix(in srgb, var(--chart-2) 20%, transparent) 0%,
|
||||
transparent 50%
|
||||
radial-gradient(ellipse 80% 50% at 100% 100%,
|
||||
color-mix(in srgb, var(--chart-2) 6%, transparent) 0%,
|
||||
transparent 60%
|
||||
),
|
||||
radial-gradient(ellipse 60% 80% at 110% 50%,
|
||||
color-mix(in srgb, var(--chart-3) 20%, transparent) 0%,
|
||||
transparent 50%
|
||||
),
|
||||
radial-gradient(ellipse 80% 50% at 50% 120%,
|
||||
color-mix(in srgb, var(--chart-4) 25%, transparent) 0%,
|
||||
transparent 50%
|
||||
),
|
||||
linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--chart-1) 8%, transparent) 0%,
|
||||
transparent 25%,
|
||||
transparent 75%,
|
||||
color-mix(in srgb, var(--chart-2) 8%, transparent) 100%
|
||||
radial-gradient(ellipse 60% 40% at 50% 50%,
|
||||
color-mix(in srgb, var(--chart-3) 4%, transparent) 0%,
|
||||
transparent 70%
|
||||
);
|
||||
background-size: 100% 100%;
|
||||
pointer-events: none;
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.dark .page-background::before {
|
||||
background:
|
||||
radial-gradient(ellipse 80% 50% at 50% -20%,
|
||||
color-mix(in srgb, var(--chart-1) 35%, transparent) 0%,
|
||||
transparent 50%
|
||||
radial-gradient(ellipse 100% 60% at 0% 0%,
|
||||
color-mix(in srgb, var(--primary) 12%, transparent) 0%,
|
||||
transparent 60%
|
||||
),
|
||||
radial-gradient(ellipse 60% 80% at -10% 50%,
|
||||
color-mix(in srgb, var(--chart-2) 30%, transparent) 0%,
|
||||
transparent 50%
|
||||
radial-gradient(ellipse 80% 50% at 100% 100%,
|
||||
color-mix(in srgb, var(--chart-2) 10%, transparent) 0%,
|
||||
transparent 60%
|
||||
),
|
||||
radial-gradient(ellipse 60% 80% at 110% 50%,
|
||||
color-mix(in srgb, var(--chart-3) 30%, transparent) 0%,
|
||||
transparent 50%
|
||||
),
|
||||
radial-gradient(ellipse 80% 50% at 50% 120%,
|
||||
color-mix(in srgb, var(--chart-4) 35%, transparent) 0%,
|
||||
transparent 50%
|
||||
),
|
||||
linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--chart-1) 12%, transparent) 0%,
|
||||
transparent 25%,
|
||||
transparent 75%,
|
||||
color-mix(in srgb, var(--chart-2) 12%, transparent) 100%
|
||||
radial-gradient(ellipse 60% 40% at 50% 50%,
|
||||
color-mix(in srgb, var(--chart-3) 8%, transparent) 0%,
|
||||
transparent 70%
|
||||
);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user