44
55: root {
66 color-scheme : light;
7+ --background : 210 40% 98% ;
8+ --foreground : 222 47% 11% ;
9+ --card : 0 0% 100% ;
10+ --card-foreground : 222 47% 11% ;
11+ --muted : 210 20% 96% ;
12+ --muted-foreground : 215 16% 47% ;
13+ --border : 214 32% 91% ;
14+ --input : 214 32% 91% ;
15+ --ring : 217 91% 60% ;
16+ --primary : 217 91% 60% ;
17+ --primary-foreground : 210 40% 98% ;
18+ --secondary : 191 91% 42% ;
19+ --secondary-foreground : 210 40% 98% ;
20+ --accent : 199 89% 48% ;
21+ --accent-foreground : 210 40% 98% ;
22+ --destructive : 0 84% 60% ;
23+ --destructive-foreground : 210 40% 98% ;
24+ }
25+
26+ .dark {
27+ color-scheme : dark;
28+ --background : 222 47% 8% ;
29+ --foreground : 210 40% 96% ;
30+ --card : 222 47% 11% ;
31+ --card-foreground : 210 40% 96% ;
32+ --muted : 217 33% 17% ;
33+ --muted-foreground : 215 20% 65% ;
34+ --border : 217 33% 20% ;
35+ --input : 217 33% 20% ;
36+ --ring : 217 91% 60% ;
37+ --primary : 217 91% 60% ;
38+ --primary-foreground : 210 40% 98% ;
39+ --secondary : 191 91% 42% ;
40+ --secondary-foreground : 210 40% 98% ;
41+ --accent : 199 89% 48% ;
42+ --accent-foreground : 210 40% 98% ;
43+ --destructive : 0 62% 40% ;
44+ --destructive-foreground : 210 40% 98% ;
745}
846
947* {
1048 @apply box-border;
49+ border-color : hsl (var (--border ));
1150}
1251
1352body {
14- @apply bg-slate-50 text-slate-900 antialiased;
53+ @apply bg-background text-foreground antialiased;
1554 font-family : "Inter" , system-ui, -apple-system, "Segoe UI" , sans-serif;
1655 background-image :
1756 radial-gradient (circle at 20% 20% , rgba (59 , 130 , 246 , 0.08 ), transparent 35% ),
@@ -21,22 +60,39 @@ body {
2160}
2261
2362.dark body {
24- @apply bg-slate-950 text-slate-100 ;
63+ @apply bg-background text-foreground ;
2564 background-image :
2665 radial-gradient (circle at 20% 20% , rgba (59 , 130 , 246 , 0.08 ), transparent 35% ),
2766 radial-gradient (circle at 80% 0% , rgba (124 , 58 , 237 , 0.12 ), transparent 30% ),
2867 linear-gradient (180deg , # 0f172a 0% , # 0b1221 40% , # 0a0f1c 100% );
2968}
3069
3170.card {
32- @apply bg-white /90 shadow-card rounded-2xl border border-slate-100 backdrop-blur;
71+ @apply bg-card /90 text-card-foreground shadow-card rounded-2xl border border-border backdrop-blur;
3372 transition : transform 180ms ease, box-shadow 180ms ease;
34- box-shadow : 0 18px 48px rgba (15 , 23 , 42 , 0.12 );
35-
73+ box-shadow : 0 18px 48px rgba (15 , 23 , 42 , 0.12 );
3674}
3775
3876
3977.dark .card {
40- @apply bg-slate-900 /80 border-slate-800 ;
78+ @apply bg-card /80 border-border ;
4179 box-shadow : 0 18px 48px rgba (0 , 0 , 0 , 0.45 );
42- }
80+ }
81+
82+ html .theme-transition ,
83+ html .theme-transition * ,
84+ html .theme-transition * ::before ,
85+ html .theme-transition * ::after {
86+ transition-property : background-color, border-color, color, fill, stroke, box-shadow;
87+ transition-duration : 460ms ;
88+ transition-timing-function : cubic-bezier (0.32 , 0 , 0.2 , 1 );
89+ }
90+
91+ @media (prefers-reduced-motion : reduce) {
92+ html .theme-transition ,
93+ html .theme-transition * ,
94+ html .theme-transition * ::before ,
95+ html .theme-transition * ::after {
96+ transition : none !important ;
97+ }
98+ }
0 commit comments