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