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

global.css

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