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

global.css

241 lines7.8 KB

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