Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com
Open History to see the last commit

styles.css

450 lines10.4 KB

1@import 'tailwindcss';
2@plugin "@tailwindcss/typography";
3​
4@import 'tw-animate-css';
5​
6@custom-variant dark (&:is(.dark *));
7​
8body {
9 @apply m-0;
10 font-family:
11 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
12 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
13 -webkit-font-smoothing: antialiased;
14 -moz-osx-font-smoothing: grayscale;
16​
17code {
18 font-family:
19 source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
21​
22:root {
23 --background:
24 oklch(0.9789 0.0082 121.6272);
25 --foreground:
26 oklch(0 0 0);
27 --card:
28 oklch(1.0000 0 0);
29 --card-foreground:
30 oklch(0 0 0);
31 --popover:
32 oklch(1.0000 0 0);
33 --popover-foreground:
34 oklch(0 0 0);
35 --primary:
36 oklch(0.7500 0.1830 55.9340);
37 --primary-foreground:
38 oklch(0.1450 0 0);
39 --secondary:
40 oklch(0.8450 0.1430 164.9780);
41 --secondary-foreground:
42 oklch(0.1470 0.0040 49.2500);
43 --muted:
44 oklch(0.9551 0 0);
45 --muted-foreground:
46 oklch(0.553 0.013 58.071);
47 --accent:
48 oklch(0.9244 0.1203 95.8453);
49 --accent-foreground:
50 oklch(0.1470 0.0040 49.2500);
51 --destructive:
52 oklch(0.7040 0.1910 22.2160);
53 --destructive-foreground:
54 oklch(1.0000 0 0);
55 --border:
56 oklch(0 0 0);
57 --input:
58 oklch(0.5555 0 0);
59 --ring:
60 oklch(0.7853 0.1041 274.7134);
61 --chart-1:
62 oklch(0.7180 0.2020 349.7610);
63 --chart-2:
64 oklch(0.8450 0.1430 164.9780);
65 --chart-3:
66 oklch(0.8781 0.1688 91.8567);
67 --chart-4:
68 oklch(0.7850 0.1150 274.7130);
69 --chart-5:
70 oklch(0.8970 0.1960 126.6650);
71 --radius:
72 1rem;
73 --sidebar:
74 oklch(0.9789 0.0082 121.6272);
75 --sidebar-foreground:
76 oklch(0 0 0);
77 --sidebar-primary:
78 oklch(0.5106 0.2301 276.9656);
79 --sidebar-primary-foreground:
80 oklch(1.0000 0 0);
81 --sidebar-accent:
82 oklch(0.8790 0.1690 91.6050);
83 --sidebar-accent-foreground:
84 oklch(0 0 0);
85 --sidebar-border:
86 oklch(0 0 0);
87 --sidebar-ring:
88 oklch(0.7853 0.1041 274.7134);
89 --skeleton: oklch(87.9% 0 161.6);
90 --success: oklch(87.1% 0.15 154.449);
91​
92 --tracking-normal:
93 -0.025em;
94​
95 --font-sans:
96 DM Sans, ui-sans-serif, sans-serif, system-ui;
97​
98 --font-serif:
99 DM Sans, sans-serif;
100​
101 --font-mono:
102 Space Mono, monospace;
103​
104 --shadow-color:
105 #1a1a1a;
106​
107 --shadow-opacity:
108 0.05;
109​
110 --shadow-blur:
111 0px;
112​
113 --shadow-spread:
114 0px;
115​
116 --shadow-offset-x:
117 0px;
118​
119 --shadow-offset-y:
120 0px;
121​
122 --letter-spacing:
123 0em;
124​
125 --spacing:
126 0.25rem;
127​
128 --shadow-2xs:
129 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.03);
130​
131 --shadow-xs:
132 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.03);
133​
134 --shadow-sm:
135 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.05);
136​
137 --shadow:
138 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.05);
139​
140 --shadow-md:
141 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 2px 4px -1px hsl(0 0% 10.1961% / 0.05);
142​
143 --shadow-lg:
144 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 4px 6px -1px hsl(0 0% 10.1961% / 0.05);
145​
146 --shadow-xl:
147 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 8px 10px -1px hsl(0 0% 10.1961% / 0.05);
148​
149 --shadow-2xl:
150 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.13);
152​
153.dark {
154 --background:
155 oklch(0.216 0.006 56.043);
156 --foreground:
157 oklch(1.0000 0 0);
158 --card:
159 oklch(0.268 0.007 34.298);
160 --card-foreground:
161 oklch(1.0000 0 0);
162 --popover:
163 oklch(0.216 0.006 56.043);
164 --popover-foreground:
165 oklch(0.9789 0.0082 121.6272);
166 --primary:
167 oklch(0.7500 0.1830 55.9340);
168 --primary-foreground:
169 oklch(0.216 0.006 56.043);
170 --secondary:
171 oklch(0.7845 0.1325 181.9120);
172 --secondary-foreground:
173 oklch(0.216 0.006 56.043);
174 --muted:
175 oklch(0.2160 0.0060 56.0430);
176 --muted-foreground:
177 oklch(0.7090 0.0100 56.2590);
178 --accent:
179 oklch(0.8790 0.1690 91.6050);
180 --accent-foreground:
181 oklch(0.216 0.006 56.043);
182 --destructive:
183 oklch(63.7% 0.2078 25.3);
184 --destructive-foreground: oklch(0.216 0.006 56.043);
185 --border:
186 oklch(0.3740 0.0100 67.5580);
187 --input:
188 var(--border);
189 --ring:
190 oklch(0.6801 0.1583 276.9349);
191 --chart-1:
192 oklch(0.7253 0.1752 349.7607);
193 --chart-2:
194 oklch(0.7845 0.1325 181.9120);
195 --chart-3:
196 oklch(0.8790 0.1534 91.6054);
197 --chart-4:
198 oklch(0.6801 0.1583 276.9349);
199 --chart-5:
200 oklch(0.8003 0.1821 151.7110);
201 --sidebar:
202 oklch(0.216 0.006 56.043);
203 --sidebar-foreground:
204 var(--foreground);
205 --sidebar-primary: oklch(0.6801 0.1583 276.9349);
206 --sidebar-primary-foreground:
207 oklch(0.216 0.006 56.043);
208 --sidebar-accent:
209 var(--border);
210 --sidebar-accent-foreground:
211 var(--sidebar-foreground);
212 --sidebar-border:
213 oklch(1.0000 0 0);
214 --sidebar-ring:
215 oklch(0.6801 0.1583 276.9349);
216 --skeleton: oklch(0.3740 0.0100 67.5580);
217 --success: oklch(87.1% 0.15 154.449);
218 --radius:
219 1rem;
220 --font-sans:
221 DM Sans, ui-sans-serif, sans-serif, system-ui;
222 --font-serif:
223 DM Sans, sans-serif;
224 --font-mono:
225 Space Mono, monospace;
226 --shadow-color:
227 #1a1a1a;
228 --shadow-opacity:
229 0.05;
230 --shadow-blur:
231 0px;
232 --shadow-spread:
233 0px;
234 --shadow-offset-x:
235 0px;
236 --shadow-offset-y:
237 0px;
238 --letter-spacing:
239 0em;
240 --spacing:
241 0.25rem;
242 --shadow-2xs:
243 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.03);
244 --shadow-xs:
245 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.03);
246 --shadow-sm:
247 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.05);
248 --shadow:
249 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.05);
250 --shadow-md:
251 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 2px 4px -1px hsl(0 0% 10.1961% / 0.05);
252 --shadow-lg:
253 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 4px 6px -1px hsl(0 0% 10.1961% / 0.05);
254 --shadow-xl:
255 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.05), 0px 8px 10px -1px hsl(0 0% 10.1961% / 0.05);
256 --shadow-2xl:
257 0px 0px 0px 0px hsl(0 0% 10.1961% / 0.13);
259​
260@theme inline {
261 --color-background: var(--background);
262 --color-foreground: var(--foreground);
263 --color-card: var(--card);
264 --color-card-foreground: var(--card-foreground);
265 --color-popover: var(--popover);
266 --color-popover-foreground: var(--popover-foreground);
267 --color-primary: var(--primary);
268 --color-primary-foreground: var(--primary-foreground);
269 --color-secondary: var(--secondary);
270 --color-secondary-foreground: var(--secondary-foreground);
271 --color-muted: var(--muted);
272 --color-muted-foreground: var(--muted-foreground);
273 --color-accent: var(--accent);
274 --color-accent-foreground: var(--accent-foreground);
275 --color-destructive: var(--destructive);
276 --color-destructive-foreground: var(--destructive-foreground);
277 --color-border: var(--border);
278 --color-input: var(--input);
279 --color-ring: var(--ring);
280 --color-chart-1: var(--chart-1);
281 --color-chart-2: var(--chart-2);
282 --color-chart-3: var(--chart-3);
283 --color-chart-4: var(--chart-4);
284 --color-chart-5: var(--chart-5);
285 --radius-sm: calc(var(--radius) - 4px);
286 --radius-md: calc(var(--radius) - 2px);
287 --radius-lg: var(--radius);
288 --radius-xl: calc(var(--radius) + 4px);
289 --color-sidebar: var(--sidebar);
290 --color-sidebar-foreground: var(--sidebar-foreground);
291 --color-sidebar-primary: var(--sidebar-primary);
292 --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
293 --color-sidebar-accent: var(--sidebar-accent);
294 --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
295 --color-sidebar-border: var(--sidebar-border);
296 --color-sidebar-ring: var(--sidebar-ring);
297 --color-skeleton: var(--skeleton);
298 --color-success: var(--success);
299​
300 --tracking-tighter:
301 calc(var(--tracking-normal) - 0.05em);
302 --tracking-tight:
303 calc(var(--tracking-normal) - 0.025em);
304 --tracking-normal: var(--tracking-normal);
305 --tracking-wide:
306 calc(var(--tracking-normal) + 0.025em);
307 --tracking-wider:
308 calc(var(--tracking-normal) + 0.05em);
309 --tracking-widest:
310 calc(var(--tracking-normal) + 0.1em);
311 --font-sans:
312 DM Sans, ui-sans-serif, sans-serif, system-ui;
313 --font-mono:
314 Space Mono, monospace;
315 --font-serif:
316 DM Sans, sans-serif;
317 --radius:
318 1rem;
319 --shadow-2xl:
320 var(--shadow-2xl);
321 --shadow-xl:
322 var(--shadow-xl);
323 --shadow-lg:
324 var(--shadow-lg);
325 --shadow-md:
326 var(--shadow-md);
327 --shadow:
328 var(--shadow);
329 --shadow-sm:
330 var(--shadow-sm);
331 --shadow-xs:
332 var(--shadow-xs);
333 --shadow-2xs:
334 var(--shadow-2xs);
335 --spacing:
336 var(--spacing);
337 --letter-spacing:
338 var(--letter-spacing);
339 --shadow-offset-y:
340 var(--shadow-offset-y);
341 --shadow-offset-x:
342 var(--shadow-offset-x);
343 --shadow-spread:
344 var(--shadow-spread);
345 --shadow-blur:
346 var(--shadow-blur);
347 --shadow-opacity:
348 var(--shadow-opacity);
349 --color-shadow-color:
350 var(--shadow-color);
351 --radius-2xl:
352 calc(var(--radius) + 8px);
353 --radius-3xl:
354 calc(var(--radius) + 12px);
355 --radius-4xl:
356 calc(var(--radius) + 16px);
358​
359@keyframes progress-fill {
360 from {
361 width: 0%;
362 }
363​
364 to {
365 width: 100%;
366 }
368​
369​
370@theme {
371 @keyframes wiggle {
372​
373 0%,
374 100% {
375 transform: rotate(-2deg);
376 }
377​
378 50% {
379 transform: rotate(2deg);
380 }
381 }
382​
383 @keyframes skeleton-pulse {
384 50% {
385 opacity: 0.6;
386 }
387 }
388​
389 --animate-wiggle: wiggle 0.3s ease-in-out infinite;
390 --animate-skeleton-pulse: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
392​
393.progress-animated {
394 animation: progress-fill 5s cubic-bezier(0.66, 0, 0.34, 1) forwards;
395 animation-fill-mode: forwards;
397​
398@layer base {
399 * {
400 @apply border-border outline-ring/50;
401 }
402​
403 body {
404 @apply bg-background text-foreground;
405 letter-spacing:
406 var(--tracking-normal);
407 }
408​
409 /* Custom scrollbar styles for Chrome/Safari */
410 ::-webkit-scrollbar {
411 width: 8px;
412 height: 12px;
413 }
414​
415 ::-webkit-scrollbar-track {
416 background: transparent;
417 }
418​
419 ::-webkit-scrollbar-thumb {
420 background: oklch(0.7 0.01 286);
421 border-radius: 6px;
422 border: 1px solid transparent;
423 background-clip: content-box;
424 min-height: 40px;
425 }
426​
427 ::-webkit-scrollbar-thumb:hover {
428 background: oklch(0.6 0.01 286);
429 border: 3px solid transparent;
430 background-clip: content-box;
431 }
432​
433 /* Dark theme scrollbar styles */
434 .dark ::-webkit-scrollbar-thumb {
435 background: oklch(0.4 0.01 286);
436 }
437​
438 .dark ::-webkit-scrollbar-thumb:hover {
439 background: oklch(0.5 0.01 286);
440 }
441​
442 /* Firefox scrollbar styles */
443 * {
444 scrollbar-color: oklch(0.7 0.01 286) transparent;
445 }
446​
447 .dark * {
448 scrollbar-color: oklch(0.4 0.01 286) transparent;
449 }