44 --font-sans : "Geist" , "Geist Fallback" , system-ui, sans-serif;
55 --font-mono : "Geist Mono" , "Geist Mono Fallback" , monospace;
66
7- --color-background : # ffffff ;
8- --color-foreground : # 0f0f0f ;
9- --color-muted : # f5f5f5 ;
10- --color-muted-foreground : # 737373 ;
11- --color-primary : # 7c3aed ;
12- --color-primary-foreground : # ffffff ;
13- --color-secondary : # f3f4f6 ;
14- --color-secondary-foreground : # 1f2937 ;
15- --color-accent : # 8b5cf6 ;
16- --color-border : # e5e5e5 ;
17- --color-card : # ffffff ;
18- --color-card-foreground : # 0f0f0f ;
7+ --color-background : var ( --theme-background ) ;
8+ --color-foreground : var ( --theme-foreground ) ;
9+ --color-muted : var ( --theme-muted ) ;
10+ --color-muted-foreground : var ( --theme-muted-foreground ) ;
11+ --color-primary : var ( --theme-primary ) ;
12+ --color-primary-foreground : var ( --theme-primary-foreground ) ;
13+ --color-secondary : var ( --theme-secondary ) ;
14+ --color-secondary-foreground : var ( --theme-secondary-foreground ) ;
15+ --color-accent : var ( --theme-accent ) ;
16+ --color-border : var ( --theme-border ) ;
17+ --color-card : var ( --theme-card ) ;
18+ --color-card-foreground : var ( --theme-card-foreground ) ;
1919
2020 --radius : 0.75rem ;
2121}
2222
23+ : root ,
24+ : root [data-theme = "latte" ] {
25+ --theme-background : # eff1f5 ;
26+ --theme-foreground : # 4c4f69 ;
27+ --theme-muted : # e6e9ef ;
28+ --theme-muted-foreground : # 6c6f85 ;
29+ --theme-primary : # 8839ef ;
30+ --theme-primary-foreground : # eff1f5 ;
31+ --theme-secondary : # dce0e8 ;
32+ --theme-secondary-foreground : # 4c4f69 ;
33+ --theme-accent : # 8839ef ;
34+ --theme-border : # ccd0da ;
35+ --theme-card : # eff1f5 ;
36+ --theme-card-foreground : # 4c4f69 ;
37+ --theme-shadow : 76 , 79 , 105 ;
38+ --theme-primary-rgb : 136 , 57 , 239 ;
39+ color-scheme : light;
40+ }
41+
42+ @media (prefers-color-scheme : dark) {
43+ : root : not ([data-theme ]) {
44+ --theme-background : # 1e1e2e ;
45+ --theme-foreground : # cdd6f4 ;
46+ --theme-muted : # 313244 ;
47+ --theme-muted-foreground : # a6adc8 ;
48+ --theme-primary : # cba6f7 ;
49+ --theme-primary-foreground : # 1e1e2e ;
50+ --theme-secondary : # 45475a ;
51+ --theme-secondary-foreground : # cdd6f4 ;
52+ --theme-accent : # cba6f7 ;
53+ --theme-border : # 45475a ;
54+ --theme-card : # 181825 ;
55+ --theme-card-foreground : # cdd6f4 ;
56+ --theme-shadow : 17 , 17 , 27 ;
57+ --theme-primary-rgb : 203 , 166 , 247 ;
58+ color-scheme : dark;
59+ }
60+ }
61+
62+ : root [data-theme = "mocha" ] {
63+ --theme-background : # 1e1e2e ;
64+ --theme-foreground : # cdd6f4 ;
65+ --theme-muted : # 313244 ;
66+ --theme-muted-foreground : # a6adc8 ;
67+ --theme-primary : # cba6f7 ;
68+ --theme-primary-foreground : # 1e1e2e ;
69+ --theme-secondary : # 45475a ;
70+ --theme-secondary-foreground : # cdd6f4 ;
71+ --theme-accent : # cba6f7 ;
72+ --theme-border : # 45475a ;
73+ --theme-card : # 181825 ;
74+ --theme-card-foreground : # cdd6f4 ;
75+ --theme-shadow : 17 , 17 , 27 ;
76+ --theme-primary-rgb : 203 , 166 , 247 ;
77+ color-scheme : dark;
78+ }
79+
2380* {
2481 border-color : var (--color-border );
2582}
2683
2784html {
2885 scroll-behavior : smooth;
2986 scroll-padding-top : 5rem ;
87+ transition :
88+ background-color 240ms ease,
89+ color 240ms ease;
3090}
3191
3292body {
3393 background : var (--color-background );
3494 color : var (--color-foreground );
3595 font-family : var (--font-sans );
96+ transition :
97+ background-color 240ms ease,
98+ color 240ms ease;
99+ }
100+
101+ a ,
102+ button ,
103+ section ,
104+ header ,
105+ footer ,
106+ .feature-card ,
107+ .faq-item ,
108+ .faq-toggle {
109+ transition :
110+ background-color 240ms ease,
111+ border-color 240ms ease,
112+ color 240ms ease,
113+ box-shadow 240ms ease;
36114}
37115
38116@keyframes heroIn {
@@ -71,40 +149,36 @@ body {
71149 transform-style : preserve-3d;
72150 transition :
73151 transform 120ms ease,
74- background-color 140 ms ease,
75- border-color 140 ms ease,
76- color 140 ms ease,
77- box-shadow 140 ms ease;
152+ background-color 240 ms ease,
153+ border-color 240 ms ease,
154+ color 240 ms ease,
155+ box-shadow 240 ms ease;
78156 will-change : transform;
79157}
80158
81159.tilt-link : hover {
82- box-shadow : 0 6px 14px rgba (15 , 15 , 15 , 0.1 );
160+ box-shadow : 0 6px 14px rgba (var ( --theme-shadow ) , 0.12 );
83161}
84162
85163.feature-card {
86164 color : inherit;
87- transition :
88- background-color 160ms ease,
89- border-color 160ms ease,
90- box-shadow 160ms ease;
91165}
92166
93167.feature-card : hover {
94- background : rgba (124 , 58 , 237 , 0.04 );
95- border-color : rgba (124 , 58 , 237 , 0.32 );
96- box-shadow : 0 6px 14px rgba (15 , 15 , 15 , 0.08 );
168+ background : rgba (var ( --theme-primary-rgb ) , 0.06 );
169+ border-color : rgba (var ( --theme-primary-rgb ) , 0.32 );
170+ box-shadow : 0 6px 14px rgba (var ( --theme-shadow ) , 0.1 );
97171}
98172
99173.feature-card : hover .feature-icon {
100- background : rgba (124 , 58 , 237 , 0.14 );
174+ background : rgba (var ( --theme-primary-rgb ) , 0.14 );
101175}
102176
103177.feature-card-reveal {
104178 opacity : 0 ;
105179 transform : translateY (16px );
106180 transition-property : opacity, transform, background-color, border-color, box-shadow;
107- transition-duration : 520ms , 520ms , 160 ms , 160 ms , 160 ms ;
181+ transition-duration : 520ms , 520ms , 240 ms , 240 ms , 240 ms ;
108182 transition-timing-function : ease, ease, ease, ease, ease;
109183 transition-delay : var (--feature-delay , 0ms ), var (--feature-delay , 0ms ), 0ms , 0ms , 0ms ;
110184}
@@ -114,16 +188,8 @@ body {
114188 transform : translateY (0 );
115189}
116190
117- .faq-item {
118- transition : background-color 180ms ease;
119- }
120-
121191.faq-item : hover {
122- background : rgba (124 , 58 , 237 , 0.025 );
123- }
124-
125- .faq-trigger {
126- transition : color 180ms ease;
192+ background : rgba (var (--theme-primary-rgb ), 0.04 );
127193}
128194
129195.faq-trigger : hover {
@@ -140,12 +206,12 @@ body {
140206 border-radius : 9999px ;
141207 background : var (--color-muted );
142208 transition :
143- background-color 180 ms ease,
209+ background-color 240 ms ease,
144210 transform 180ms ease;
145211}
146212
147213.faq-trigger : hover .faq-toggle {
148- background : rgba (124 , 58 , 237 , 0.1 );
214+ background : rgba (var ( --theme-primary-rgb ) , 0.1 );
149215}
150216
151217.faq-toggle span {
@@ -155,7 +221,7 @@ body {
155221 border-radius : 9999px ;
156222 background : var (--color-muted-foreground );
157223 transition :
158- background-color 180 ms ease,
224+ background-color 240 ms ease,
159225 transform 220ms ease;
160226}
161227
@@ -168,7 +234,7 @@ body {
168234}
169235
170236.faq-trigger [aria-expanded = "true" ] .faq-toggle {
171- background : rgba (124 , 58 , 237 , 0.12 );
237+ background : rgba (var ( --theme-primary-rgb ) , 0.12 );
172238 transform : rotate (180deg );
173239}
174240
@@ -203,29 +269,19 @@ body {
203269 scroll-behavior : auto;
204270 }
205271
272+ * ,
273+ * ::before ,
274+ * ::after {
275+ transition : none !important ;
276+ }
277+
206278 .tilt-link ,
207279 .tilt-link : hover {
208280 transform : none;
209- transition :
210- background-color 140ms ease,
211- border-color 140ms ease,
212- color 140ms ease;
213281 }
214282
215283 .feature-card-reveal {
216284 opacity : 1 ;
217285 transform : none;
218- transition :
219- background-color 160ms ease,
220- border-color 160ms ease,
221- box-shadow 160ms ease;
222- }
223-
224- .faq-answer ,
225- .faq-item ,
226- .faq-trigger ,
227- .faq-toggle ,
228- .faq-toggle span {
229- transition : none;
230286 }
231287}
0 commit comments