Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

global.css

276 lines9.3 KB

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