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