Open History to see the last commit
1@import "tailwindcss";
2@import "uniwind";
3
4/* ─── Theme tokens ──────────────────────────────────────────────────── */
5@layer theme {
6 :root {
7 @variant light {
8 /* Page backgrounds */
9 --color-screen: #f2f2f7;
10 --color-sheet: rgba(242, 242, 247, 0.98);
11
12 /* Card / surface */
13 --color-card: #ffffff;
14 --color-card-alt: #f5f5f5;
15 --color-card-translucent: rgba(255, 255, 255, 0.94);
16
17 /* Text */
18 --color-foreground: #262626;
19 --color-foreground-secondary: #525252;
20 --color-foreground-muted: #737373;
21 --color-foreground-tertiary: #8e8e93;
22
23 /* Borders & separators */
24 --color-border: rgba(0, 0, 0, 0.08);
25 --color-border-subtle: rgba(0, 0, 0, 0.06);
26 --color-separator: rgba(0, 0, 0, 0.04);
27
28 /* Subtle backgrounds (badges, pills, overlays) */
29 --color-subtle: rgba(0, 0, 0, 0.04);
30 --color-subtle-strong: rgba(0, 0, 0, 0.08);
31 --color-inline-skill-background: rgba(217, 70, 239, 0.12);
32 --color-inline-skill-border: rgba(217, 70, 239, 0.25);
33 --color-inline-skill-foreground: #a21caf;
34
35 /* Primary action */
36 --color-primary: #262626;
37 --color-primary-foreground: #ffffff;
38 --color-primary-shadow: rgba(0, 0, 0, 0.18);
39
40 /* Secondary action */
41 --color-secondary: #ffffff;
42 --color-secondary-foreground: #262626;
43 --color-secondary-border: rgba(0, 0, 0, 0.08);
44 --color-switch-active: #34c759;
45
46 /* Danger */
47 --color-danger: #fef2f2;
48 --color-danger-border: rgba(239, 68, 68, 0.12);
49 --color-danger-foreground: #dc2626;
50
51 /* Inputs */
52 --color-input: #ffffff;
53 --color-input-border: rgba(0, 0, 0, 0.1);
54 --color-placeholder: #a3a3a3;
55
56 /* Icons */
57 --color-icon: #262626;
58 --color-icon-muted: #525252;
59 --color-icon-subtle: #a3a3a3;
60
61 /* Header / glass chrome */
62 --color-header: rgba(255, 255, 255, 0.97);
63 --color-header-border: rgba(0, 0, 0, 0.06);
64 --color-glass-surface: rgba(255, 255, 255, 0.72);
65 --color-glass-tint: rgba(255, 255, 255, 0.18);
66
67 /* StatusBar */
68 --color-status-bar: #f2f2f7;
69
70 /* Markdown */
71 --color-md-body: #111111;
72 --color-md-strong: #000000;
73 --color-md-link: #2563eb;
74 --color-md-blockquote-border: rgba(0, 0, 0, 0.08);
75 --color-md-blockquote-bg: rgba(0, 0, 0, 0.02);
76 --color-md-code-bg: rgba(0, 0, 0, 0.04);
77 --color-md-code-text: #262626;
78 --color-md-user-code-bg: rgba(255, 255, 255, 0.22);
79 --color-md-user-code-text: #ffffff;
80 --color-md-user-fence-bg: rgba(0, 0, 0, 0.16);
81 --color-md-user-fence-text: #ffffff;
82 --color-md-hr: rgba(0, 0, 0, 0.08);
83
84 /* iMessage-style user bubble */
85 --color-user-bubble: #007aff;
86 --color-user-bubble-foreground: #ffffff;
87 --color-user-bubble-foreground-muted: rgba(255, 255, 255, 0.78);
88
89 /* Drawer / modal backdrop */
90 --color-backdrop: rgba(0, 0, 0, 0.22);
91 --color-drawer: rgba(255, 255, 255, 0.99);
92 --color-drawer-shadow: rgba(0, 0, 0, 0.12);
93
94 /* Misc */
95 --color-dot-separator: rgba(0, 0, 0, 0.2);
96 --color-wordmark: #262626;
97 --color-chevron: rgba(0, 0, 0, 0.2);
98 }
99
100 @variant dark {
101 /* Page backgrounds */
102 --color-screen: #0a0a0a;
103 --color-sheet: rgba(14, 14, 14, 0.98);
104
105 /* Card / surface */
106 --color-card: #171717;
107 --color-card-alt: #1c1c1c;
108 --color-card-translucent: rgba(17, 17, 17, 0.94);
109
110 /* Text */
111 --color-foreground: #f5f5f5;
112 --color-foreground-secondary: #a3a3a3;
113 --color-foreground-muted: #8e8e93;
114 --color-foreground-tertiary: #636366;
115
116 /* Borders & separators */
117 --color-border: rgba(255, 255, 255, 0.06);
118 --color-border-subtle: rgba(255, 255, 255, 0.04);
119 --color-separator: rgba(255, 255, 255, 0.03);
120
121 /* Subtle backgrounds (badges, pills, overlays) */
122 --color-subtle: rgba(255, 255, 255, 0.04);
123 --color-subtle-strong: rgba(255, 255, 255, 0.08);
124 --color-inline-skill-background: rgba(217, 70, 239, 0.12);
125 --color-inline-skill-border: rgba(217, 70, 239, 0.25);
126 --color-inline-skill-foreground: #f0abfc;
127
128 /* Primary action */
129 --color-primary: #f5f5f5;
130 --color-primary-foreground: #0a0a0a;
131 --color-primary-shadow: rgba(0, 0, 0, 0.22);
132
133 /* Secondary action */
134 --color-secondary: rgba(255, 255, 255, 0.04);
135 --color-secondary-foreground: #f5f5f5;
136 --color-secondary-border: rgba(255, 255, 255, 0.06);
137 --color-switch-active: #30d158;
138
139 /* Danger */
140 --color-danger: rgba(239, 68, 68, 0.14);
141 --color-danger-border: rgba(248, 113, 113, 0.18);
142 --color-danger-foreground: #fca5a5;
143
144 /* Inputs */
145 --color-input: #141414;
146 --color-input-border: rgba(255, 255, 255, 0.08);
147 --color-placeholder: #8e8e93;
148
149 /* Icons */
150 --color-icon: #f5f5f5;
151 --color-icon-muted: #a3a3a3;
152 --color-icon-subtle: #8e8e93;
153
154 /* Header / glass chrome */
155 --color-header: rgba(10, 10, 10, 0.97);
156 --color-header-border: rgba(255, 255, 255, 0.06);
157 --color-glass-surface: rgba(23, 23, 23, 0.78);
158 --color-glass-tint: rgba(23, 23, 23, 0.24);
159
160 /* StatusBar */
161 --color-status-bar: #0a0a0a;
162
163 /* Markdown */
164 --color-md-body: #e5e5e5;
165 --color-md-strong: #f5f5f5;
166 --color-md-link: #60a5fa;
167 --color-md-blockquote-border: rgba(255, 255, 255, 0.1);
168 --color-md-blockquote-bg: rgba(255, 255, 255, 0.03);
169 --color-md-code-bg: rgba(255, 255, 255, 0.06);
170 --color-md-code-text: #e5e5e5;
171 --color-md-user-code-bg: rgba(255, 255, 255, 0.18);
172 --color-md-user-code-text: #ffffff;
173 --color-md-user-fence-bg: rgba(0, 0, 0, 0.28);
174 --color-md-user-fence-text: #ffffff;
175 --color-md-hr: rgba(255, 255, 255, 0.08);
176
177 /* iMessage-style user bubble */
178 --color-user-bubble: #0a84ff;
179 --color-user-bubble-foreground: #ffffff;
180 --color-user-bubble-foreground-muted: rgba(255, 255, 255, 0.78);
181
182 /* Drawer / modal backdrop */
183 --color-backdrop: rgba(0, 0, 0, 0.48);
184 --color-drawer: rgba(14, 14, 14, 0.99);
185 --color-drawer-shadow: rgba(0, 0, 0, 0.32);
186
187 /* Misc */
188 --color-dot-separator: rgba(255, 255, 255, 0.2);
189 --color-wordmark: #f5f5f5;
190 --color-chevron: rgba(255, 255, 255, 0.2);
191 }
192 }
193}
194
195/* ─── Typography ────────────────────────────────────────────────────── */
196@theme {
197 --font-sans: "DMSans_400Regular";
198 --font-medium: "DMSans_500Medium";
199 --font-bold: "DMSans_700Bold";
200
201 /* Keep this scale aligned with src/lib/typography.ts for native style props. */
202 --text-3xs: 11px;
203 --text-3xs--line-height: 14px;
204 --text-2xs: 12px;
205 --text-2xs--line-height: 16px;
206 --text-xs: 13px;
207 --text-xs--line-height: 17px;
208 --text-sm: 14px;
209 --text-sm--line-height: 19px;
210 --text-base: 16px;
211 --text-base--line-height: 23px;
212 --text-lg: 18px;
213 --text-lg--line-height: 23px;
214 --text-xl: 21px;
215 --text-xl--line-height: 28px;
216 --text-2xl: 26px;
217 --text-2xl--line-height: 32px;
218 --text-3xl: 30px;
219 --text-3xl--line-height: 36px;
220}
221
222/* ─── Custom utilities ──────────────────────────────────────────────── */
223@utility font-t3-medium {
224 font-family: "DMSans_500Medium";
225}
226
227@utility font-t3-bold {
228 font-family: "DMSans_700Bold";
229}
230
231@utility font-t3-extrabold {
232 font-family: "DMSans_700Bold";
233 font-weight: 800;
234}