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

styles.css

197 lines5.9 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 -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: oklch(1 0 0);
24 --foreground: oklch(0.141 0.005 285.823);
25 --card: oklch(1 0 0);
26 --card-foreground: oklch(0.141 0.005 285.823);
27 --popover: oklch(1 0 0);
28 --popover-foreground: oklch(0.141 0.005 285.823);
29 --primary: oklch(0.21 0.006 285.885);
30 --primary-foreground: oklch(0.985 0 0);
31 --secondary: oklch(0.967 0.001 286.375);
32 --secondary-foreground: oklch(0.21 0.006 285.885);
33 --muted: oklch(0.967 0.001 286.375);
34 --muted-foreground: oklch(0.552 0.016 285.938);
35 --accent: oklch(0.967 0.001 286.375);
36 --accent-foreground: oklch(0.21 0.006 285.885);
37 --destructive: oklch(0.577 0.245 27.325);
38 --destructive-foreground: oklch(0.577 0.245 27.325);
39 --border: oklch(0.92 0.004 286.32);
40 --input: oklch(0.92 0.004 286.32);
41 --ring: oklch(0.871 0.006 286.286);
42 --chart-1: oklch(0.646 0.222 41.116);
43 --chart-2: oklch(0.6 0.118 184.704);
44 --chart-3: oklch(0.398 0.07 227.392);
45 --chart-4: oklch(0.828 0.189 84.429);
46 --chart-5: oklch(0.769 0.188 70.08);
47 --radius: 0.625rem;
48 --sidebar: oklch(0.985 0 0);
49 --sidebar-foreground: oklch(0.141 0.005 285.823);
50 --sidebar-primary: oklch(0.21 0.006 285.885);
51 --sidebar-primary-foreground: oklch(0.985 0 0);
52 --sidebar-accent: oklch(0.967 0.001 286.375);
53 --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
54 --sidebar-border: oklch(0.92 0.004 286.32);
55 --sidebar-ring: oklch(0.871 0.006 286.286);
57​
58.dark {
59 --background: oklch(0.141 0.005 285.823);
60 --foreground: oklch(0.985 0 0);
61 --card: oklch(0.141 0.005 285.823);
62 --card-foreground: oklch(0.985 0 0);
63 --popover: oklch(0.141 0.005 285.823);
64 --popover-foreground: oklch(0.985 0 0);
65 --primary: oklch(0.985 0 0);
66 --primary-foreground: oklch(0.21 0.006 285.885);
67 --secondary: oklch(0.274 0.006 286.033);
68 --secondary-foreground: oklch(0.985 0 0);
69 --muted: oklch(0.274 0.006 286.033);
70 --muted-foreground: oklch(0.705 0.015 286.067);
71 --accent: oklch(0.274 0.006 286.033);
72 --accent-foreground: oklch(0.985 0 0);
73 --destructive: oklch(0.396 0.141 25.723);
74 --destructive-foreground: oklch(0.637 0.237 25.331);
75 --border: oklch(0.274 0.006 286.033);
76 --input: oklch(0.274 0.006 286.033);
77 --ring: oklch(0.442 0.017 285.786);
78 --chart-1: oklch(0.488 0.243 264.376);
79 --chart-2: oklch(0.696 0.17 162.48);
80 --chart-3: oklch(0.769 0.188 70.08);
81 --chart-4: oklch(0.627 0.265 303.9);
82 --chart-5: oklch(0.645 0.246 16.439);
83 --sidebar: oklch(0.21 0.006 285.885);
84 --sidebar-foreground: oklch(0.985 0 0);
85 --sidebar-primary: oklch(0.488 0.243 264.376);
86 --sidebar-primary-foreground: oklch(0.985 0 0);
87 --sidebar-accent: oklch(0.274 0.006 286.033);
88 --sidebar-accent-foreground: oklch(0.985 0 0);
89 --sidebar-border: oklch(0.274 0.006 286.033);
90 --sidebar-ring: oklch(0.442 0.017 285.786);
92​
93@theme inline {
94 --color-background: var(--background);
95 --color-foreground: var(--foreground);
96 --color-card: var(--card);
97 --color-card-foreground: var(--card-foreground);
98 --color-popover: var(--popover);
99 --color-popover-foreground: var(--popover-foreground);
100 --color-primary: var(--primary);
101 --color-primary-foreground: var(--primary-foreground);
102 --color-secondary: var(--secondary);
103 --color-secondary-foreground: var(--secondary-foreground);
104 --color-muted: var(--muted);
105 --color-muted-foreground: var(--muted-foreground);
106 --color-accent: var(--accent);
107 --color-accent-foreground: var(--accent-foreground);
108 --color-destructive: var(--destructive);
109 --color-destructive-foreground: var(--destructive-foreground);
110 --color-border: var(--border);
111 --color-input: var(--input);
112 --color-ring: var(--ring);
113 --color-chart-1: var(--chart-1);
114 --color-chart-2: var(--chart-2);
115 --color-chart-3: var(--chart-3);
116 --color-chart-4: var(--chart-4);
117 --color-chart-5: var(--chart-5);
118 --radius-sm: calc(var(--radius) - 4px);
119 --radius-md: calc(var(--radius) - 2px);
120 --radius-lg: var(--radius);
121 --radius-xl: calc(var(--radius) + 4px);
122 --color-sidebar: var(--sidebar);
123 --color-sidebar-foreground: var(--sidebar-foreground);
124 --color-sidebar-primary: var(--sidebar-primary);
125 --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
126 --color-sidebar-accent: var(--sidebar-accent);
127 --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
128 --color-sidebar-border: var(--sidebar-border);
129 --color-sidebar-ring: var(--sidebar-ring);
131​
132@keyframes progress-fill {
133 from {
134 width: 0%;
135 }
136​
137 to {
138 width: 100%;
139 }
141​
142.progress-animated {
143 animation: progress-fill 5s cubic-bezier(0.66, 0, 0.34, 1) forwards;
144 animation-fill-mode: forwards;
146​
147@layer base {
148 * {
149 @apply border-border outline-ring/50;
150 }
151​
152 body {
153 @apply bg-background text-foreground;
154 }
155​
156 /* Custom scrollbar styles for Chrome/Safari */
157 ::-webkit-scrollbar {
158 width: 8px;
159 height: 12px;
160 }
161​
162 ::-webkit-scrollbar-track {
163 background: transparent;
164 }
165​
166 ::-webkit-scrollbar-thumb {
167 background: oklch(0.7 0.01 286);
168 border-radius: 6px;
169 border: 1px solid transparent;
170 background-clip: content-box;
171 min-height: 40px;
172 }
173​
174 ::-webkit-scrollbar-thumb:hover {
175 background: oklch(0.6 0.01 286);
176 border: 3px solid transparent;
177 background-clip: content-box;
178 }
179​
180 /* Dark theme scrollbar styles */
181 .dark ::-webkit-scrollbar-thumb {
182 background: oklch(0.4 0.01 286);
183 }
184​
185 .dark ::-webkit-scrollbar-thumb:hover {
186 background: oklch(0.5 0.01 286);
187 }
188​
189 /* Firefox scrollbar styles */
190 * {
191 scrollbar-color: oklch(0.7 0.01 286) transparent;
192 }
193​
194 .dark * {
195 scrollbar-color: oklch(0.4 0.01 286) transparent;
196 }