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

global.css

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