@boyernick/standard-ui-tokens 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/css/fonts.css +389 -0
- package/css/primitives.css +228 -0
- package/css/tokens.css +534 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @boyernick/standard-ui-tokens
|
|
2
|
+
|
|
3
|
+
CSS custom properties and Tailwind v4 `@theme` for StandardUI.
|
|
4
|
+
|
|
5
|
+
```css
|
|
6
|
+
@import "@boyernick/standard-ui-tokens/css/tokens.css";
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Type families (from local Font Book on macOS; not shipped in the package):
|
|
10
|
+
|
|
11
|
+
- `--font-display` — Signifier
|
|
12
|
+
- `--font-sans` — Söhne
|
|
13
|
+
- `--font-mono` — Söhne Mono
|
|
14
|
+
|
|
15
|
+
Type scale (Apps SDK metrics, `2xl` → `2xs`):
|
|
16
|
+
|
|
17
|
+
- Headings: `heading-2xl|xl|lg` with `-sans` / `-serif`; `heading-md|sm|xs` (sans)
|
|
18
|
+
- Body: `text-lg|md|sm|xs|2xs` plus `-strong` variants
|
|
19
|
+
|
|
20
|
+
Spacing: `--spacing: 0.25rem` (4px) — use Tailwind `p-*` / `gap-*` / `m-*`.
|
|
21
|
+
|
|
22
|
+
Breakpoints (`--breakpoint-*`): `xs` 380px · `sm` 576px · `md` 768px · `lg` 1024px · `xl` 1280px · `2xl` 1536px.
|
|
23
|
+
|
|
24
|
+
Toggle dark with `class="dark"` on `<html>`.
|
package/css/fonts.css
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/* Local Font Book faces only — do not redistribute Klim/Colophon binaries.
|
|
2
|
+
Unifies Klim “Test …” weight families under Söhne / Signifier for CSS font-weight. */
|
|
3
|
+
|
|
4
|
+
/* ——— Söhne (sans) ——— */
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Söhne";
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 200;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
src: local("Test Söhne Extraleicht"), local("TestSohne-Extraleicht");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: "Söhne";
|
|
15
|
+
font-style: italic;
|
|
16
|
+
font-weight: 200;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
src: local("Test Söhne Extraleicht Kursiv"), local("TestSohne-ExtraleichtKursiv");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: "Söhne";
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 300;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: local("Test Söhne Leicht"), local("TestSohne-Leicht");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "Söhne";
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 300;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: local("Test Söhne Leicht Kursiv"), local("TestSohne-LeichtKursiv");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: "Söhne";
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
src: local("Test Söhne"), local("TestSohne-Buch");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: "Söhne";
|
|
47
|
+
font-style: italic;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
src: local("Test Söhne Italic"), local("TestSohne-BuchKursiv");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: "Söhne";
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
font-display: swap;
|
|
58
|
+
src: local("Test Söhne Kräftig"), local("TestSohne-Kraftig");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@font-face {
|
|
62
|
+
font-family: "Söhne";
|
|
63
|
+
font-style: italic;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
font-display: swap;
|
|
66
|
+
src: local("Test Söhne Kräftig Kursiv"), local("TestSohne-KraftigKursiv");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: "Söhne";
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
font-display: swap;
|
|
74
|
+
src: local("Test Söhne Halbfett"), local("TestSohne-Halbfett");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: "Söhne";
|
|
79
|
+
font-style: italic;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
font-display: swap;
|
|
82
|
+
src: local("Test Söhne Halbfett Kursiv"), local("TestSohne-HalbfettKursiv");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: "Söhne";
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 700;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
src: local("Test Söhne Bold"), local("TestSohne-Dreiviertelfett");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: "Söhne";
|
|
95
|
+
font-style: italic;
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
font-display: swap;
|
|
98
|
+
src: local("Test Söhne Bold Italic"), local("TestSohne-DreiviertelfettKursiv");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: "Söhne";
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 800;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
src: local("Test Söhne Fett"), local("TestSohne-Fett");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: "Söhne";
|
|
111
|
+
font-style: italic;
|
|
112
|
+
font-weight: 800;
|
|
113
|
+
font-display: swap;
|
|
114
|
+
src: local("Test Söhne Fett Kursiv"), local("TestSohne-FettKursiv");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: "Söhne";
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: 900;
|
|
121
|
+
font-display: swap;
|
|
122
|
+
src: local("Test Söhne Extrafett"), local("TestSohne-Extrafett");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: "Söhne";
|
|
127
|
+
font-style: italic;
|
|
128
|
+
font-weight: 900;
|
|
129
|
+
font-display: swap;
|
|
130
|
+
src: local("Test Söhne Extrafett Kursiv"), local("TestSohne-ExtrafettKursiv");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ——— Signifier (serif / display) ——— */
|
|
134
|
+
@font-face {
|
|
135
|
+
font-family: "Signifier";
|
|
136
|
+
font-style: normal;
|
|
137
|
+
font-weight: 100;
|
|
138
|
+
font-display: swap;
|
|
139
|
+
src: local("Test Signifier Thin"), local("TestSignifier-Thin");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@font-face {
|
|
143
|
+
font-family: "Signifier";
|
|
144
|
+
font-style: italic;
|
|
145
|
+
font-weight: 100;
|
|
146
|
+
font-display: swap;
|
|
147
|
+
src: local("Test Signifier Thin Italic"), local("TestSignifier-ThinItalic");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@font-face {
|
|
151
|
+
font-family: "Signifier";
|
|
152
|
+
font-style: normal;
|
|
153
|
+
font-weight: 200;
|
|
154
|
+
font-display: swap;
|
|
155
|
+
src: local("Test Signifier Extralight"), local("TestSignifier-Extralight");
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@font-face {
|
|
159
|
+
font-family: "Signifier";
|
|
160
|
+
font-style: italic;
|
|
161
|
+
font-weight: 200;
|
|
162
|
+
font-display: swap;
|
|
163
|
+
src: local("Test Signifier Extralight Italic"), local("TestSignifier-ExtralightItalic");
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@font-face {
|
|
167
|
+
font-family: "Signifier";
|
|
168
|
+
font-style: normal;
|
|
169
|
+
font-weight: 300;
|
|
170
|
+
font-display: swap;
|
|
171
|
+
src: local("Test Signifier Light"), local("TestSignifier-Light");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@font-face {
|
|
175
|
+
font-family: "Signifier";
|
|
176
|
+
font-style: italic;
|
|
177
|
+
font-weight: 300;
|
|
178
|
+
font-display: swap;
|
|
179
|
+
src: local("Test Signifier Light Italic"), local("TestSignifier-LightItalic");
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@font-face {
|
|
183
|
+
font-family: "Signifier";
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-weight: 400;
|
|
186
|
+
font-display: swap;
|
|
187
|
+
src: local("Test Signifier"), local("TestSignifier-Regular");
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@font-face {
|
|
191
|
+
font-family: "Signifier";
|
|
192
|
+
font-style: italic;
|
|
193
|
+
font-weight: 400;
|
|
194
|
+
font-display: swap;
|
|
195
|
+
src: local("Test Signifier Italic"), local("TestSignifier-RegularItalic");
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@font-face {
|
|
199
|
+
font-family: "Signifier";
|
|
200
|
+
font-style: normal;
|
|
201
|
+
font-weight: 500;
|
|
202
|
+
font-display: swap;
|
|
203
|
+
src: local("Test Signifier Medium"), local("TestSignifier-Medium");
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@font-face {
|
|
207
|
+
font-family: "Signifier";
|
|
208
|
+
font-style: italic;
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
font-display: swap;
|
|
211
|
+
src: local("Test Signifier Medium Italic"), local("TestSignifier-MediumItalic");
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@font-face {
|
|
215
|
+
font-family: "Signifier";
|
|
216
|
+
font-style: normal;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
font-display: swap;
|
|
219
|
+
src: local("Test Signifier Medium"), local("TestSignifier-Medium");
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@font-face {
|
|
223
|
+
font-family: "Signifier";
|
|
224
|
+
font-style: italic;
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
font-display: swap;
|
|
227
|
+
src: local("Test Signifier Medium Italic"), local("TestSignifier-MediumItalic");
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@font-face {
|
|
231
|
+
font-family: "Signifier";
|
|
232
|
+
font-style: normal;
|
|
233
|
+
font-weight: 700;
|
|
234
|
+
font-display: swap;
|
|
235
|
+
src: local("Test Signifier Bold"), local("TestSignifier-Bold");
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@font-face {
|
|
239
|
+
font-family: "Signifier";
|
|
240
|
+
font-style: italic;
|
|
241
|
+
font-weight: 700;
|
|
242
|
+
font-display: swap;
|
|
243
|
+
src: local("Test Signifier Bold Italic"), local("TestSignifier-BoldItalic");
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@font-face {
|
|
247
|
+
font-family: "Signifier";
|
|
248
|
+
font-style: normal;
|
|
249
|
+
font-weight: 900;
|
|
250
|
+
font-display: swap;
|
|
251
|
+
src: local("Test Signifier Black"), local("TestSignifier-Black");
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@font-face {
|
|
255
|
+
font-family: "Signifier";
|
|
256
|
+
font-style: italic;
|
|
257
|
+
font-weight: 900;
|
|
258
|
+
font-display: swap;
|
|
259
|
+
src: local("Test Signifier Black Italic"), local("TestSignifier-BlackItalic");
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* ——— Söhne Mono ——— */
|
|
263
|
+
@font-face {
|
|
264
|
+
font-family: "Söhne Mono";
|
|
265
|
+
font-style: normal;
|
|
266
|
+
font-weight: 200;
|
|
267
|
+
font-display: swap;
|
|
268
|
+
src: local("Test Söhne Mono Extraleicht"), local("TestSohneMn-Extraleicht");
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@font-face {
|
|
272
|
+
font-family: "Söhne Mono";
|
|
273
|
+
font-style: italic;
|
|
274
|
+
font-weight: 200;
|
|
275
|
+
font-display: swap;
|
|
276
|
+
src: local("Test Söhne Mono Extraleicht Kursiv"), local("TestSohneMn-ExtraleichtKursiv");
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@font-face {
|
|
280
|
+
font-family: "Söhne Mono";
|
|
281
|
+
font-style: normal;
|
|
282
|
+
font-weight: 300;
|
|
283
|
+
font-display: swap;
|
|
284
|
+
src: local("Test Söhne Mono Leicht"), local("TestSohneMn-Leicht");
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
@font-face {
|
|
288
|
+
font-family: "Söhne Mono";
|
|
289
|
+
font-style: italic;
|
|
290
|
+
font-weight: 300;
|
|
291
|
+
font-display: swap;
|
|
292
|
+
src: local("Test Söhne Mono Leicht Kursiv"), local("TestSohneMn-LeichtKursiv");
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@font-face {
|
|
296
|
+
font-family: "Söhne Mono";
|
|
297
|
+
font-style: normal;
|
|
298
|
+
font-weight: 400;
|
|
299
|
+
font-display: swap;
|
|
300
|
+
src: local("Test Söhne Mono"), local("TestSohneMn-Buch");
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@font-face {
|
|
304
|
+
font-family: "Söhne Mono";
|
|
305
|
+
font-style: italic;
|
|
306
|
+
font-weight: 400;
|
|
307
|
+
font-display: swap;
|
|
308
|
+
src: local("Test Söhne Mono Italic"), local("TestSohneMn-BuchKursiv");
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@font-face {
|
|
312
|
+
font-family: "Söhne Mono";
|
|
313
|
+
font-style: normal;
|
|
314
|
+
font-weight: 500;
|
|
315
|
+
font-display: swap;
|
|
316
|
+
src: local("Test Söhne Mono Kräftig"), local("TestSohneMn-Kraftig");
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@font-face {
|
|
320
|
+
font-family: "Söhne Mono";
|
|
321
|
+
font-style: italic;
|
|
322
|
+
font-weight: 500;
|
|
323
|
+
font-display: swap;
|
|
324
|
+
src: local("Test Söhne Mono Kräftig Kursiv"), local("TestSohneMn-KraftigKursiv");
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@font-face {
|
|
328
|
+
font-family: "Söhne Mono";
|
|
329
|
+
font-style: normal;
|
|
330
|
+
font-weight: 600;
|
|
331
|
+
font-display: swap;
|
|
332
|
+
src: local("Test Söhne Mono Halbfett"), local("TestSohneMn-Halbfett");
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@font-face {
|
|
336
|
+
font-family: "Söhne Mono";
|
|
337
|
+
font-style: italic;
|
|
338
|
+
font-weight: 600;
|
|
339
|
+
font-display: swap;
|
|
340
|
+
src: local("Test Söhne Mono Halbfett Kursiv"), local("TestSohneMn-HalbfettKursiv");
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@font-face {
|
|
344
|
+
font-family: "Söhne Mono";
|
|
345
|
+
font-style: normal;
|
|
346
|
+
font-weight: 700;
|
|
347
|
+
font-display: swap;
|
|
348
|
+
src: local("Test Söhne Mono Bold"), local("TestSohneMn-Dreiviertelfett");
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@font-face {
|
|
352
|
+
font-family: "Söhne Mono";
|
|
353
|
+
font-style: italic;
|
|
354
|
+
font-weight: 700;
|
|
355
|
+
font-display: swap;
|
|
356
|
+
src: local("Test Söhne Mono Bold Italic"), local("TestSohneMn-DreiviertelfettKursiv");
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@font-face {
|
|
360
|
+
font-family: "Söhne Mono";
|
|
361
|
+
font-style: normal;
|
|
362
|
+
font-weight: 800;
|
|
363
|
+
font-display: swap;
|
|
364
|
+
src: local("Test Söhne Mono Fett"), local("TestSohneMn-Fett");
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@font-face {
|
|
368
|
+
font-family: "Söhne Mono";
|
|
369
|
+
font-style: italic;
|
|
370
|
+
font-weight: 800;
|
|
371
|
+
font-display: swap;
|
|
372
|
+
src: local("Test Söhne Mono Fett Kursiv"), local("TestSohneMn-FettKursiv");
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@font-face {
|
|
376
|
+
font-family: "Söhne Mono";
|
|
377
|
+
font-style: normal;
|
|
378
|
+
font-weight: 900;
|
|
379
|
+
font-display: swap;
|
|
380
|
+
src: local("Test Söhne Mono Extrafett"), local("TestSohneMn-Extrafett");
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@font-face {
|
|
384
|
+
font-family: "Söhne Mono";
|
|
385
|
+
font-style: italic;
|
|
386
|
+
font-weight: 900;
|
|
387
|
+
font-display: swap;
|
|
388
|
+
src: local("Test Söhne Mono Extrafett Kursiv"), local("TestSohneMn-ExtrafettKursiv");
|
|
389
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* Primitive color scales from Apps SDK UI (@openai/apps-sdk-ui).
|
|
2
|
+
Theme flips via `.dark` to match StandardUI’s theme toggle. */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--white: #ffffff;
|
|
6
|
+
--black: #000000;
|
|
7
|
+
|
|
8
|
+
--gray-0: #ffffff;
|
|
9
|
+
--gray-25: #fcfcfc;
|
|
10
|
+
--gray-50: #f9f9f9;
|
|
11
|
+
--gray-75: #f3f3f3;
|
|
12
|
+
--gray-100: #ededed;
|
|
13
|
+
--gray-150: #dfdfdf;
|
|
14
|
+
--gray-200: #cdcdcd;
|
|
15
|
+
--gray-250: #b9b9b9;
|
|
16
|
+
--gray-300: #afafaf;
|
|
17
|
+
--gray-350: #9f9f9f;
|
|
18
|
+
--gray-400: #8f8f8f;
|
|
19
|
+
--gray-450: #767676;
|
|
20
|
+
--gray-500: #5d5d5d;
|
|
21
|
+
--gray-550: #4f4f4f;
|
|
22
|
+
--gray-600: #414141;
|
|
23
|
+
--gray-650: #393939;
|
|
24
|
+
--gray-700: #303030;
|
|
25
|
+
--gray-750: #282828;
|
|
26
|
+
--gray-800: #212121;
|
|
27
|
+
--gray-850: #1c1c1c;
|
|
28
|
+
--gray-900: #181818;
|
|
29
|
+
--gray-925: #161616;
|
|
30
|
+
--gray-950: #131313;
|
|
31
|
+
--gray-975: #101010;
|
|
32
|
+
--gray-1000: #0d0d0d;
|
|
33
|
+
--alpha-base: #0d0d0d;
|
|
34
|
+
|
|
35
|
+
--alpha-0: color-mix(in oklab, var(--alpha-base) 0%, transparent);
|
|
36
|
+
--alpha-02: color-mix(in oklab, var(--alpha-base) 2%, transparent);
|
|
37
|
+
--alpha-04: color-mix(in oklab, var(--alpha-base) 4%, transparent);
|
|
38
|
+
--alpha-05: color-mix(in oklab, var(--alpha-base) 5%, transparent);
|
|
39
|
+
--alpha-06: color-mix(in oklab, var(--alpha-base) 6%, transparent);
|
|
40
|
+
--alpha-08: color-mix(in oklab, var(--alpha-base) 8%, transparent);
|
|
41
|
+
--alpha-10: color-mix(in oklab, var(--alpha-base) 10%, transparent);
|
|
42
|
+
--alpha-12: color-mix(in oklab, var(--alpha-base) 12%, transparent);
|
|
43
|
+
--alpha-15: color-mix(in oklab, var(--alpha-base) 15%, transparent);
|
|
44
|
+
--alpha-16: color-mix(in oklab, var(--alpha-base) 16%, transparent);
|
|
45
|
+
--alpha-20: color-mix(in oklab, var(--alpha-base) 20%, transparent);
|
|
46
|
+
--alpha-25: color-mix(in oklab, var(--alpha-base) 25%, transparent);
|
|
47
|
+
--alpha-30: color-mix(in oklab, var(--alpha-base) 30%, transparent);
|
|
48
|
+
--alpha-35: color-mix(in oklab, var(--alpha-base) 35%, transparent);
|
|
49
|
+
--alpha-40: color-mix(in oklab, var(--alpha-base) 40%, transparent);
|
|
50
|
+
--alpha-50: color-mix(in oklab, var(--alpha-base) 50%, transparent);
|
|
51
|
+
--alpha-60: color-mix(in oklab, var(--alpha-base) 60%, transparent);
|
|
52
|
+
--alpha-70: color-mix(in oklab, var(--alpha-base) 70%, transparent);
|
|
53
|
+
|
|
54
|
+
--green-25: #edfaf2;
|
|
55
|
+
--green-50: #d9f4e4;
|
|
56
|
+
--green-75: #b8ebcc;
|
|
57
|
+
--green-100: #8cdfad;
|
|
58
|
+
--green-200: #66d492;
|
|
59
|
+
--green-300: #40c977;
|
|
60
|
+
--green-400: #04b84c;
|
|
61
|
+
--green-500: #00a240;
|
|
62
|
+
--green-600: #008635;
|
|
63
|
+
--green-700: #00692a;
|
|
64
|
+
--green-800: #004f1f;
|
|
65
|
+
--green-900: #003716;
|
|
66
|
+
--green-950: #011c0b;
|
|
67
|
+
--green-1000: #001207;
|
|
68
|
+
--green-a25: color-mix(in oklab, var(--green-400) 8%, transparent);
|
|
69
|
+
--green-a50: color-mix(in oklab, var(--green-400) 15%, transparent);
|
|
70
|
+
--green-a75: color-mix(in oklab, var(--green-400) 29%, transparent);
|
|
71
|
+
--green-a100: color-mix(in oklab, var(--green-400) 45%, transparent);
|
|
72
|
+
--green-a200: color-mix(in oklab, var(--green-400) 60%, transparent);
|
|
73
|
+
--green-a300: color-mix(in oklab, var(--green-400) 75%, transparent);
|
|
74
|
+
|
|
75
|
+
--red-25: #fff0f0;
|
|
76
|
+
--red-50: #ffd9d9;
|
|
77
|
+
--red-75: #ffc6c5;
|
|
78
|
+
--red-100: #ffa4a2;
|
|
79
|
+
--red-200: #ff8583;
|
|
80
|
+
--red-300: #ff6764;
|
|
81
|
+
--red-400: #fa423e;
|
|
82
|
+
--red-500: #e02e2a;
|
|
83
|
+
--red-600: #ba2623;
|
|
84
|
+
--red-700: #911e1b;
|
|
85
|
+
--red-800: #6e1615;
|
|
86
|
+
--red-900: #4d100e;
|
|
87
|
+
--red-950: #280b0a;
|
|
88
|
+
--red-1000: #1f0909;
|
|
89
|
+
--red-a25: color-mix(in oklab, var(--red-400) 8%, transparent);
|
|
90
|
+
--red-a50: color-mix(in oklab, var(--red-400) 16%, transparent);
|
|
91
|
+
--red-a75: color-mix(in oklab, var(--red-400) 30%, transparent);
|
|
92
|
+
--red-a100: color-mix(in oklab, var(--red-400) 48%, transparent);
|
|
93
|
+
--red-a200: color-mix(in oklab, var(--red-400) 64%, transparent);
|
|
94
|
+
--red-a300: color-mix(in oklab, var(--red-400) 79%, transparent);
|
|
95
|
+
|
|
96
|
+
--pink-25: #fff4f9;
|
|
97
|
+
--pink-50: #ffe8f3;
|
|
98
|
+
--pink-75: #ffd4e8;
|
|
99
|
+
--pink-100: #ffbada;
|
|
100
|
+
--pink-200: #ffa3ce;
|
|
101
|
+
--pink-300: #ff8cc1;
|
|
102
|
+
--pink-400: #ff66ad;
|
|
103
|
+
--pink-500: #e04c91;
|
|
104
|
+
--pink-600: #ba437a;
|
|
105
|
+
--pink-700: #963c67;
|
|
106
|
+
--pink-800: #6e2c4a;
|
|
107
|
+
--pink-900: #4d1f34;
|
|
108
|
+
--pink-950: #29101c;
|
|
109
|
+
--pink-1000: #1a0a11;
|
|
110
|
+
--pink-a25: color-mix(in oklab, var(--pink-400) 8%, transparent);
|
|
111
|
+
--pink-a50: color-mix(in oklab, var(--pink-400) 16%, transparent);
|
|
112
|
+
--pink-a75: color-mix(in oklab, var(--pink-400) 28%, transparent);
|
|
113
|
+
--pink-a100: color-mix(in oklab, var(--pink-400) 45%, transparent);
|
|
114
|
+
--pink-a200: color-mix(in oklab, var(--pink-400) 60%, transparent);
|
|
115
|
+
--pink-a300: color-mix(in oklab, var(--pink-400) 76%, transparent);
|
|
116
|
+
|
|
117
|
+
--orange-25: #fff5f0;
|
|
118
|
+
--orange-50: #ffe7d9;
|
|
119
|
+
--orange-75: #ffcfb4;
|
|
120
|
+
--orange-100: #ffb790;
|
|
121
|
+
--orange-200: #ff9e6c;
|
|
122
|
+
--orange-300: #ff8549;
|
|
123
|
+
--orange-400: #fb6a22;
|
|
124
|
+
--orange-500: #e25507;
|
|
125
|
+
--orange-600: #b9480d;
|
|
126
|
+
--orange-700: #923b0f;
|
|
127
|
+
--orange-800: #6d2e0f;
|
|
128
|
+
--orange-900: #4a2206;
|
|
129
|
+
--orange-950: #281105;
|
|
130
|
+
--orange-1000: #211107;
|
|
131
|
+
--orange-a25: color-mix(in oklab, var(--orange-400) 7%, transparent);
|
|
132
|
+
--orange-a50: color-mix(in oklab, var(--orange-400) 16%, transparent);
|
|
133
|
+
--orange-a75: color-mix(in oklab, var(--orange-400) 33%, transparent);
|
|
134
|
+
--orange-a100: color-mix(in oklab, var(--orange-400) 48%, transparent);
|
|
135
|
+
--orange-a200: color-mix(in oklab, var(--orange-400) 65%, transparent);
|
|
136
|
+
--orange-a300: color-mix(in oklab, var(--orange-400) 81%, transparent);
|
|
137
|
+
|
|
138
|
+
--yellow-25: #fffbed;
|
|
139
|
+
--yellow-50: #fff6d9;
|
|
140
|
+
--yellow-75: #ffeeb8;
|
|
141
|
+
--yellow-100: #ffe48c;
|
|
142
|
+
--yellow-200: #ffdb66;
|
|
143
|
+
--yellow-300: #ffd240;
|
|
144
|
+
--yellow-400: #ffc300;
|
|
145
|
+
--yellow-500: #e0ac00;
|
|
146
|
+
--yellow-600: #ba8e00;
|
|
147
|
+
--yellow-700: #916f00;
|
|
148
|
+
--yellow-800: #6e5400;
|
|
149
|
+
--yellow-900: #4d3b00;
|
|
150
|
+
--yellow-950: #261d00;
|
|
151
|
+
--yellow-1000: #1a1400;
|
|
152
|
+
--yellow-a25: color-mix(in oklab, var(--yellow-400) 8%, transparent);
|
|
153
|
+
--yellow-a50: color-mix(in oklab, var(--yellow-400) 15%, transparent);
|
|
154
|
+
--yellow-a75: color-mix(in oklab, var(--yellow-400) 27%, transparent);
|
|
155
|
+
--yellow-a100: color-mix(in oklab, var(--yellow-400) 45%, transparent);
|
|
156
|
+
--yellow-a200: color-mix(in oklab, var(--yellow-400) 59%, transparent);
|
|
157
|
+
--yellow-a300: color-mix(in oklab, var(--yellow-400) 74%, transparent);
|
|
158
|
+
|
|
159
|
+
--purple-25: #f9f5fe;
|
|
160
|
+
--purple-50: #efe5fe;
|
|
161
|
+
--purple-75: #e0cefd;
|
|
162
|
+
--purple-100: #ceb0fb;
|
|
163
|
+
--purple-200: #be95fa;
|
|
164
|
+
--purple-300: #ad7bf9;
|
|
165
|
+
--purple-400: #924ff7;
|
|
166
|
+
--purple-500: #8046d9;
|
|
167
|
+
--purple-600: #6b3ab4;
|
|
168
|
+
--purple-700: #532d8d;
|
|
169
|
+
--purple-800: #3f226a;
|
|
170
|
+
--purple-900: #2c184a;
|
|
171
|
+
--purple-950: #160c25;
|
|
172
|
+
--purple-1000: #100a19;
|
|
173
|
+
--purple-a25: color-mix(in oklab, var(--purple-400) 6%, transparent);
|
|
174
|
+
--purple-a50: color-mix(in oklab, var(--purple-400) 15%, transparent);
|
|
175
|
+
--purple-a75: color-mix(in oklab, var(--purple-400) 28%, transparent);
|
|
176
|
+
--purple-a100: color-mix(in oklab, var(--purple-400) 45%, transparent);
|
|
177
|
+
--purple-a200: color-mix(in oklab, var(--purple-400) 60%, transparent);
|
|
178
|
+
--purple-a300: color-mix(in oklab, var(--purple-400) 75%, transparent);
|
|
179
|
+
|
|
180
|
+
--blue-25: #f5faff;
|
|
181
|
+
--blue-50: #e5f3ff;
|
|
182
|
+
--blue-75: #cce6ff;
|
|
183
|
+
--blue-100: #99ceff;
|
|
184
|
+
--blue-200: #66b5ff;
|
|
185
|
+
--blue-300: #339cff;
|
|
186
|
+
--blue-400: #0285ff;
|
|
187
|
+
--blue-500: #0169cc;
|
|
188
|
+
--blue-600: #004f99;
|
|
189
|
+
--blue-700: #003f7a;
|
|
190
|
+
--blue-800: #013566;
|
|
191
|
+
--blue-900: #00284d;
|
|
192
|
+
--blue-950: #000e1a;
|
|
193
|
+
--blue-1000: #000d19;
|
|
194
|
+
--blue-a25: color-mix(in oklab, var(--blue-400) 4%, transparent);
|
|
195
|
+
--blue-a50: color-mix(in oklab, var(--blue-400) 13%, transparent);
|
|
196
|
+
--blue-a75: color-mix(in oklab, var(--blue-400) 25%, transparent);
|
|
197
|
+
--blue-a100: color-mix(in oklab, var(--blue-400) 40%, transparent);
|
|
198
|
+
--blue-a200: color-mix(in oklab, var(--blue-400) 60%, transparent);
|
|
199
|
+
--blue-a300: color-mix(in oklab, var(--blue-400) 80%, transparent);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.dark {
|
|
203
|
+
--gray-0: #0d0d0d;
|
|
204
|
+
--gray-25: #101010;
|
|
205
|
+
--gray-50: #131313;
|
|
206
|
+
--gray-75: #161616;
|
|
207
|
+
--gray-100: #181818;
|
|
208
|
+
--gray-150: #1c1c1c;
|
|
209
|
+
--gray-200: #212121;
|
|
210
|
+
--gray-250: #282828;
|
|
211
|
+
--gray-300: #303030;
|
|
212
|
+
--gray-350: #393939;
|
|
213
|
+
--gray-400: #414141;
|
|
214
|
+
--gray-450: #4f4f4f;
|
|
215
|
+
--gray-550: #767676;
|
|
216
|
+
--gray-600: #8f8f8f;
|
|
217
|
+
--gray-650: #9f9f9f;
|
|
218
|
+
--gray-700: #afafaf;
|
|
219
|
+
--gray-750: #b9b9b9;
|
|
220
|
+
--gray-800: #cdcdcd;
|
|
221
|
+
--gray-850: #dcdcdc;
|
|
222
|
+
--gray-900: #ededed;
|
|
223
|
+
--gray-925: #f3f3f3;
|
|
224
|
+
--gray-950: #f3f3f3;
|
|
225
|
+
--gray-975: #f9f9f9;
|
|
226
|
+
--gray-1000: #ffffff;
|
|
227
|
+
--alpha-base: #ffffff;
|
|
228
|
+
}
|
package/css/tokens.css
ADDED
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
/* StandardUI tokens — semantic layer on Apps SDK primitives. */
|
|
2
|
+
|
|
3
|
+
@import "./fonts.css";
|
|
4
|
+
@import "./primitives.css";
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
|
|
9
|
+
--background-primary: var(--gray-0);
|
|
10
|
+
--background-secondary: var(--gray-25);
|
|
11
|
+
--background-tertiary: var(--gray-75);
|
|
12
|
+
--background-quaternary: var(--gray-100);
|
|
13
|
+
--background-active: var(--gray-150);
|
|
14
|
+
|
|
15
|
+
--surface: var(--gray-0);
|
|
16
|
+
--surface-inverted: var(--gray-1000);
|
|
17
|
+
--surface-raised: var(--gray-0);
|
|
18
|
+
--elevated: var(--alpha-05);
|
|
19
|
+
--elevated-active: var(--alpha-10);
|
|
20
|
+
|
|
21
|
+
--text-primary: var(--gray-1000);
|
|
22
|
+
--text-secondary: var(--gray-500);
|
|
23
|
+
--text-tertiary: var(--gray-400);
|
|
24
|
+
--text-quaternary: var(--gray-350);
|
|
25
|
+
--text-primary-inverted: var(--gray-0);
|
|
26
|
+
--text-secondary-inverted: var(--gray-200);
|
|
27
|
+
|
|
28
|
+
--border-primary: var(--alpha-10);
|
|
29
|
+
--border-primary-solid: var(--gray-100);
|
|
30
|
+
--border-secondary: var(--alpha-15);
|
|
31
|
+
--border-secondary-solid: var(--gray-150);
|
|
32
|
+
--border-inverted: var(--alpha-10);
|
|
33
|
+
|
|
34
|
+
--brand-primary: var(--gray-900);
|
|
35
|
+
--brand-primary-hover: var(--gray-700);
|
|
36
|
+
--brand-primary-active: var(--gray-600);
|
|
37
|
+
--brand-primary-border: var(--gray-900);
|
|
38
|
+
--brand-secondary: var(--alpha-10);
|
|
39
|
+
--brand-secondary-solid: var(--gray-100);
|
|
40
|
+
--brand-foreground: var(--gray-0);
|
|
41
|
+
--brand-inverted: var(--gray-1000);
|
|
42
|
+
|
|
43
|
+
--decorative-green: var(--green-700);
|
|
44
|
+
--decorative-blue: var(--blue-600);
|
|
45
|
+
--decorative-olive: var(--yellow-800);
|
|
46
|
+
--decorative-crimson: var(--red-700);
|
|
47
|
+
|
|
48
|
+
--chart-1: 4 184 76;
|
|
49
|
+
--chart-2: 2 133 255;
|
|
50
|
+
--chart-3: 251 106 34;
|
|
51
|
+
--chart-4: 146 79 247;
|
|
52
|
+
--chart-5: 255 102 173;
|
|
53
|
+
--chart-neutral: 143 143 143;
|
|
54
|
+
|
|
55
|
+
--destructive: var(--red-500);
|
|
56
|
+
--destructive-active: var(--red-600);
|
|
57
|
+
--warning: var(--orange-500);
|
|
58
|
+
--ring: var(--gray-1000);
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* Code syntax — White (arthurwhite.White), mapped to gray scale
|
|
62
|
+
* strings ≈ greyStrong (#6b7a88 → gray-450), comments ≈ grey (#bec9d3 → gray-200)
|
|
63
|
+
*/
|
|
64
|
+
--sh-class: var(--gray-1000);
|
|
65
|
+
--sh-identifier: var(--gray-1000);
|
|
66
|
+
--sh-sign: var(--gray-1000);
|
|
67
|
+
--sh-space: var(--gray-1000);
|
|
68
|
+
--sh-property: var(--gray-1000);
|
|
69
|
+
--sh-entity: var(--gray-1000);
|
|
70
|
+
--sh-jsxliterals: var(--gray-1000);
|
|
71
|
+
--sh-string: var(--gray-450);
|
|
72
|
+
--sh-keyword: var(--gray-1000);
|
|
73
|
+
--sh-comment: var(--gray-200);
|
|
74
|
+
|
|
75
|
+
/* Spacing base — 4px unit for Tailwind spacing scale */
|
|
76
|
+
--spacing: 0.25rem;
|
|
77
|
+
|
|
78
|
+
/* Breakpoints — px for JS hooks; rem mirrors live in @theme */
|
|
79
|
+
--breakpoint-xs: 380px;
|
|
80
|
+
--breakpoint-sm: 576px;
|
|
81
|
+
--breakpoint-md: 768px;
|
|
82
|
+
--breakpoint-lg: 1024px;
|
|
83
|
+
--breakpoint-xl: 1280px;
|
|
84
|
+
--breakpoint-2xl: 1536px;
|
|
85
|
+
|
|
86
|
+
/* Radius values live in @theme (Apps SDK UI scale) */
|
|
87
|
+
|
|
88
|
+
/* Shadows — Apps SDK UI elevation + hairline */
|
|
89
|
+
--shadow-color: 0 0 0;
|
|
90
|
+
--elevation-100-geo: 0 1px 2px -1px;
|
|
91
|
+
--elevation-200-geo: 0 2px 4px -1px;
|
|
92
|
+
--elevation-300-geo: 0 4px 8px -2px;
|
|
93
|
+
--elevation-400-geo: 0 8px 16px -4px;
|
|
94
|
+
--shadow-alpha-100: 0.08;
|
|
95
|
+
--shadow-alpha-200: 0.08;
|
|
96
|
+
--shadow-alpha-300: 0.1;
|
|
97
|
+
--shadow-alpha-400: 0.12;
|
|
98
|
+
--shadow-hairline-width: 1px;
|
|
99
|
+
--shadow-hairline-color: rgb(0 0 0 / 8%);
|
|
100
|
+
--elevation-hairline: 0 0 0 var(--shadow-hairline-width)
|
|
101
|
+
var(--shadow-hairline-color);
|
|
102
|
+
--shadow-100: var(--elevation-100-geo)
|
|
103
|
+
rgb(var(--shadow-color) / var(--shadow-alpha-100));
|
|
104
|
+
--shadow-200: var(--elevation-200-geo)
|
|
105
|
+
rgb(var(--shadow-color) / var(--shadow-alpha-200));
|
|
106
|
+
--shadow-300: var(--elevation-300-geo)
|
|
107
|
+
rgb(var(--shadow-color) / var(--shadow-alpha-300));
|
|
108
|
+
--shadow-400: var(--elevation-400-geo)
|
|
109
|
+
rgb(var(--shadow-color) / var(--shadow-alpha-400));
|
|
110
|
+
/* Raised solid controls — top edge highlight (primary / destructive) */
|
|
111
|
+
--elevation-solid-top: inset 0 1px 0 0
|
|
112
|
+
color-mix(in oklab, var(--white) 18%, transparent);
|
|
113
|
+
/* Soft top recess on bordered surfaces (outline) */
|
|
114
|
+
--elevation-outline-top: inset 0 -1px 1px 0 var(--alpha-02);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.dark {
|
|
118
|
+
color-scheme: dark;
|
|
119
|
+
|
|
120
|
+
--surface-raised: var(--gray-25);
|
|
121
|
+
|
|
122
|
+
--text-secondary: var(--gray-700);
|
|
123
|
+
--text-tertiary: var(--gray-600);
|
|
124
|
+
--text-quaternary: var(--gray-550);
|
|
125
|
+
|
|
126
|
+
--decorative-green: var(--green-400);
|
|
127
|
+
--decorative-blue: var(--blue-400);
|
|
128
|
+
--decorative-olive: var(--yellow-400);
|
|
129
|
+
--decorative-crimson: var(--red-400);
|
|
130
|
+
|
|
131
|
+
--chart-neutral: 143 143 143;
|
|
132
|
+
|
|
133
|
+
--destructive: var(--red-400);
|
|
134
|
+
--destructive-active: var(--red-500);
|
|
135
|
+
--warning: var(--orange-400);
|
|
136
|
+
--ring: var(--gray-1000);
|
|
137
|
+
|
|
138
|
+
/*
|
|
139
|
+
* Code syntax — White Night via inverted gray scale
|
|
140
|
+
* strings ≈ #a8a8b1 → gray-700, comments ≈ #65696e → gray-550
|
|
141
|
+
*/
|
|
142
|
+
--sh-class: var(--gray-1000);
|
|
143
|
+
--sh-identifier: var(--gray-1000);
|
|
144
|
+
--sh-sign: var(--gray-1000);
|
|
145
|
+
--sh-space: var(--gray-1000);
|
|
146
|
+
--sh-property: var(--gray-1000);
|
|
147
|
+
--sh-entity: var(--gray-1000);
|
|
148
|
+
--sh-jsxliterals: var(--gray-1000);
|
|
149
|
+
--sh-string: var(--gray-700);
|
|
150
|
+
--sh-keyword: var(--gray-1000);
|
|
151
|
+
--sh-comment: var(--gray-550);
|
|
152
|
+
|
|
153
|
+
--shadow-alpha-100: 0.2;
|
|
154
|
+
--shadow-alpha-200: 0.2;
|
|
155
|
+
--shadow-alpha-300: 0.36;
|
|
156
|
+
--shadow-alpha-400: 0.3;
|
|
157
|
+
--shadow-hairline-width: 1px;
|
|
158
|
+
--shadow-hairline-color: rgb(255 255 255 / 10%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (resolution >= 1.5dppx) {
|
|
162
|
+
:root {
|
|
163
|
+
--shadow-hairline-width: 0.5px;
|
|
164
|
+
--shadow-hairline-color: rgb(0 0 0 / 10%);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.dark {
|
|
168
|
+
--shadow-hairline-width: 0.5px;
|
|
169
|
+
--shadow-hairline-color: rgb(255 255 255 / 12%);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@theme inline {
|
|
174
|
+
--color-background-primary: var(--background-primary);
|
|
175
|
+
--color-background-secondary: var(--background-secondary);
|
|
176
|
+
--color-background-tertiary: var(--background-tertiary);
|
|
177
|
+
--color-background-quaternary: var(--background-quaternary);
|
|
178
|
+
--color-background-active: var(--background-active);
|
|
179
|
+
|
|
180
|
+
--color-surface: var(--surface);
|
|
181
|
+
--color-surface-inverted: var(--surface-inverted);
|
|
182
|
+
--color-surface-raised: var(--surface-raised);
|
|
183
|
+
--color-elevated: var(--elevated);
|
|
184
|
+
--color-elevated-active: var(--elevated-active);
|
|
185
|
+
|
|
186
|
+
--color-fg-primary: var(--text-primary);
|
|
187
|
+
--color-fg-secondary: var(--text-secondary);
|
|
188
|
+
--color-fg-tertiary: var(--text-tertiary);
|
|
189
|
+
--color-fg-quaternary: var(--text-quaternary);
|
|
190
|
+
--color-fg-inverted: var(--text-primary-inverted);
|
|
191
|
+
--color-fg-inverted-secondary: var(--text-secondary-inverted);
|
|
192
|
+
|
|
193
|
+
--color-border-primary: var(--border-primary);
|
|
194
|
+
--color-border-primary-solid: var(--border-primary-solid);
|
|
195
|
+
--color-border-secondary: var(--border-secondary);
|
|
196
|
+
--color-border-secondary-solid: var(--border-secondary-solid);
|
|
197
|
+
--color-border-inverted: var(--border-inverted);
|
|
198
|
+
|
|
199
|
+
--color-brand-primary: var(--brand-primary);
|
|
200
|
+
--color-brand-primary-hover: var(--brand-primary-hover);
|
|
201
|
+
--color-brand-primary-active: var(--brand-primary-active);
|
|
202
|
+
--color-brand-primary-border: var(--brand-primary-border);
|
|
203
|
+
--color-brand-secondary: var(--brand-secondary);
|
|
204
|
+
--color-brand-secondary-solid: var(--brand-secondary-solid);
|
|
205
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
206
|
+
--color-brand-inverted: var(--brand-inverted);
|
|
207
|
+
|
|
208
|
+
--color-decorative-green: var(--decorative-green);
|
|
209
|
+
--color-decorative-blue: var(--decorative-blue);
|
|
210
|
+
--color-decorative-olive: var(--decorative-olive);
|
|
211
|
+
--color-decorative-crimson: var(--decorative-crimson);
|
|
212
|
+
|
|
213
|
+
--color-destructive: var(--destructive);
|
|
214
|
+
--color-destructive-active: var(--destructive-active);
|
|
215
|
+
--color-warning: var(--warning);
|
|
216
|
+
--color-ring: var(--ring);
|
|
217
|
+
|
|
218
|
+
/* Primitives — keep utilities on the design scale (not Tailwind defaults) */
|
|
219
|
+
--color-white: var(--white);
|
|
220
|
+
--color-black: var(--black);
|
|
221
|
+
|
|
222
|
+
--color-gray-0: var(--gray-0);
|
|
223
|
+
--color-gray-25: var(--gray-25);
|
|
224
|
+
--color-gray-50: var(--gray-50);
|
|
225
|
+
--color-gray-75: var(--gray-75);
|
|
226
|
+
--color-gray-100: var(--gray-100);
|
|
227
|
+
--color-gray-150: var(--gray-150);
|
|
228
|
+
--color-gray-200: var(--gray-200);
|
|
229
|
+
--color-gray-250: var(--gray-250);
|
|
230
|
+
--color-gray-300: var(--gray-300);
|
|
231
|
+
--color-gray-350: var(--gray-350);
|
|
232
|
+
--color-gray-400: var(--gray-400);
|
|
233
|
+
--color-gray-450: var(--gray-450);
|
|
234
|
+
--color-gray-500: var(--gray-500);
|
|
235
|
+
--color-gray-550: var(--gray-550);
|
|
236
|
+
--color-gray-600: var(--gray-600);
|
|
237
|
+
--color-gray-650: var(--gray-650);
|
|
238
|
+
--color-gray-700: var(--gray-700);
|
|
239
|
+
--color-gray-750: var(--gray-750);
|
|
240
|
+
--color-gray-800: var(--gray-800);
|
|
241
|
+
--color-gray-850: var(--gray-850);
|
|
242
|
+
--color-gray-900: var(--gray-900);
|
|
243
|
+
--color-gray-925: var(--gray-925);
|
|
244
|
+
--color-gray-950: var(--gray-950);
|
|
245
|
+
--color-gray-975: var(--gray-975);
|
|
246
|
+
--color-gray-1000: var(--gray-1000);
|
|
247
|
+
|
|
248
|
+
--color-red-25: var(--red-25);
|
|
249
|
+
--color-red-50: var(--red-50);
|
|
250
|
+
--color-red-75: var(--red-75);
|
|
251
|
+
--color-red-100: var(--red-100);
|
|
252
|
+
--color-red-200: var(--red-200);
|
|
253
|
+
--color-red-300: var(--red-300);
|
|
254
|
+
--color-red-400: var(--red-400);
|
|
255
|
+
--color-red-500: var(--red-500);
|
|
256
|
+
--color-red-600: var(--red-600);
|
|
257
|
+
--color-red-700: var(--red-700);
|
|
258
|
+
--color-red-800: var(--red-800);
|
|
259
|
+
--color-red-900: var(--red-900);
|
|
260
|
+
--color-red-950: var(--red-950);
|
|
261
|
+
--color-red-1000: var(--red-1000);
|
|
262
|
+
|
|
263
|
+
--color-blue-25: var(--blue-25);
|
|
264
|
+
--color-blue-50: var(--blue-50);
|
|
265
|
+
--color-blue-75: var(--blue-75);
|
|
266
|
+
--color-blue-100: var(--blue-100);
|
|
267
|
+
--color-blue-200: var(--blue-200);
|
|
268
|
+
--color-blue-300: var(--blue-300);
|
|
269
|
+
--color-blue-400: var(--blue-400);
|
|
270
|
+
--color-blue-500: var(--blue-500);
|
|
271
|
+
--color-blue-600: var(--blue-600);
|
|
272
|
+
--color-blue-700: var(--blue-700);
|
|
273
|
+
--color-blue-800: var(--blue-800);
|
|
274
|
+
--color-blue-900: var(--blue-900);
|
|
275
|
+
--color-blue-950: var(--blue-950);
|
|
276
|
+
--color-blue-1000: var(--blue-1000);
|
|
277
|
+
|
|
278
|
+
--color-green-25: var(--green-25);
|
|
279
|
+
--color-green-50: var(--green-50);
|
|
280
|
+
--color-green-75: var(--green-75);
|
|
281
|
+
--color-green-100: var(--green-100);
|
|
282
|
+
--color-green-200: var(--green-200);
|
|
283
|
+
--color-green-300: var(--green-300);
|
|
284
|
+
--color-green-400: var(--green-400);
|
|
285
|
+
--color-green-500: var(--green-500);
|
|
286
|
+
--color-green-600: var(--green-600);
|
|
287
|
+
--color-green-700: var(--green-700);
|
|
288
|
+
--color-green-800: var(--green-800);
|
|
289
|
+
--color-green-900: var(--green-900);
|
|
290
|
+
--color-green-950: var(--green-950);
|
|
291
|
+
--color-green-1000: var(--green-1000);
|
|
292
|
+
|
|
293
|
+
--color-orange-25: var(--orange-25);
|
|
294
|
+
--color-orange-50: var(--orange-50);
|
|
295
|
+
--color-orange-75: var(--orange-75);
|
|
296
|
+
--color-orange-100: var(--orange-100);
|
|
297
|
+
--color-orange-200: var(--orange-200);
|
|
298
|
+
--color-orange-300: var(--orange-300);
|
|
299
|
+
--color-orange-400: var(--orange-400);
|
|
300
|
+
--color-orange-500: var(--orange-500);
|
|
301
|
+
--color-orange-600: var(--orange-600);
|
|
302
|
+
--color-orange-700: var(--orange-700);
|
|
303
|
+
--color-orange-800: var(--orange-800);
|
|
304
|
+
--color-orange-900: var(--orange-900);
|
|
305
|
+
--color-orange-950: var(--orange-950);
|
|
306
|
+
--color-orange-1000: var(--orange-1000);
|
|
307
|
+
|
|
308
|
+
--color-yellow-25: var(--yellow-25);
|
|
309
|
+
--color-yellow-50: var(--yellow-50);
|
|
310
|
+
--color-yellow-75: var(--yellow-75);
|
|
311
|
+
--color-yellow-100: var(--yellow-100);
|
|
312
|
+
--color-yellow-200: var(--yellow-200);
|
|
313
|
+
--color-yellow-300: var(--yellow-300);
|
|
314
|
+
--color-yellow-400: var(--yellow-400);
|
|
315
|
+
--color-yellow-500: var(--yellow-500);
|
|
316
|
+
--color-yellow-600: var(--yellow-600);
|
|
317
|
+
--color-yellow-700: var(--yellow-700);
|
|
318
|
+
--color-yellow-800: var(--yellow-800);
|
|
319
|
+
--color-yellow-900: var(--yellow-900);
|
|
320
|
+
--color-yellow-950: var(--yellow-950);
|
|
321
|
+
--color-yellow-1000: var(--yellow-1000);
|
|
322
|
+
|
|
323
|
+
--font-sans: "Söhne", "Sohne", -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
324
|
+
system-ui, sans-serif;
|
|
325
|
+
--font-display: "Signifier", "Iowan Old Style", "Palatino Linotype", Palatino,
|
|
326
|
+
Georgia, serif;
|
|
327
|
+
--font-mono: "Söhne Mono", "Sohne Mono", ui-monospace, "Cascadia Code",
|
|
328
|
+
"Segoe UI Mono", Menlo, Consolas, monospace;
|
|
329
|
+
--font-serif: var(--font-display);
|
|
330
|
+
|
|
331
|
+
/* Spacing + breakpoints (Tailwind theme) */
|
|
332
|
+
--spacing: 0.25rem;
|
|
333
|
+
--breakpoint-xs: 23.75rem;
|
|
334
|
+
--breakpoint-sm: 36rem;
|
|
335
|
+
--breakpoint-md: 48rem;
|
|
336
|
+
--breakpoint-lg: 64rem;
|
|
337
|
+
--breakpoint-xl: 80rem;
|
|
338
|
+
--breakpoint-2xl: 96rem;
|
|
339
|
+
|
|
340
|
+
/* Radius — Apps SDK UI */
|
|
341
|
+
--radius-2xs: 0.125rem;
|
|
342
|
+
--radius-xs: 0.25rem;
|
|
343
|
+
--radius-sm: 0.375rem;
|
|
344
|
+
--radius-md: 0.5rem;
|
|
345
|
+
--radius-lg: 0.625rem;
|
|
346
|
+
--radius-xl: 0.75rem;
|
|
347
|
+
--radius-2xl: 1rem;
|
|
348
|
+
--radius-3xl: 1.25rem;
|
|
349
|
+
--radius-4xl: 1.5rem;
|
|
350
|
+
--radius-full: 9999px;
|
|
351
|
+
|
|
352
|
+
--shadow-sm: var(--shadow-100);
|
|
353
|
+
--shadow-md: var(--shadow-200);
|
|
354
|
+
--shadow-lg: var(--shadow-300);
|
|
355
|
+
--shadow-xl: var(--shadow-400);
|
|
356
|
+
--shadow-hairline: var(--elevation-hairline);
|
|
357
|
+
--inset-shadow-hairline: inset var(--elevation-hairline);
|
|
358
|
+
--inset-shadow-solid-top: var(--elevation-solid-top);
|
|
359
|
+
--inset-shadow-outline-top: var(--elevation-outline-top);
|
|
360
|
+
|
|
361
|
+
/* Body text scale (Apps SDK: text-lg → text-2xs) */
|
|
362
|
+
--text-lg: 1.125rem;
|
|
363
|
+
--text-lg--line-height: 1.8125rem;
|
|
364
|
+
--text-lg--font-weight: 400;
|
|
365
|
+
--text-lg--letter-spacing: 0em;
|
|
366
|
+
|
|
367
|
+
--text-base: 1rem;
|
|
368
|
+
--text-base--line-height: 1.5rem;
|
|
369
|
+
--text-base--font-weight: 400;
|
|
370
|
+
--text-base--letter-spacing: 0em;
|
|
371
|
+
|
|
372
|
+
--text-sm: 0.875rem;
|
|
373
|
+
--text-sm--line-height: 1.25rem;
|
|
374
|
+
--text-sm--font-weight: 400;
|
|
375
|
+
--text-sm--letter-spacing: 0em;
|
|
376
|
+
|
|
377
|
+
--text-xs: 0.75rem;
|
|
378
|
+
--text-xs--line-height: 1.125rem;
|
|
379
|
+
--text-xs--font-weight: 400;
|
|
380
|
+
--text-xs--letter-spacing: 0em;
|
|
381
|
+
|
|
382
|
+
--text-2xs: 0.625rem;
|
|
383
|
+
--text-2xs--line-height: 0.875rem;
|
|
384
|
+
--text-2xs--font-weight: 400;
|
|
385
|
+
--text-2xs--letter-spacing: 0em;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* Headings lg → 2xl: sans + serif variants. md/sm/xs: sans. */
|
|
389
|
+
|
|
390
|
+
@utility heading-2xl-sans {
|
|
391
|
+
font-family: var(--font-sans);
|
|
392
|
+
font-size: 2.25rem;
|
|
393
|
+
line-height: 2.625rem;
|
|
394
|
+
font-weight: 600;
|
|
395
|
+
letter-spacing: 0em;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@utility heading-2xl-serif {
|
|
399
|
+
font-family: var(--font-display);
|
|
400
|
+
font-size: 2.25rem;
|
|
401
|
+
line-height: 2.625rem;
|
|
402
|
+
font-weight: 600;
|
|
403
|
+
letter-spacing: 0em;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@utility heading-xl-sans {
|
|
407
|
+
font-family: var(--font-sans);
|
|
408
|
+
font-size: 2rem;
|
|
409
|
+
line-height: 2.375rem;
|
|
410
|
+
font-weight: 600;
|
|
411
|
+
letter-spacing: 0em;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@utility heading-xl-serif {
|
|
415
|
+
font-family: var(--font-display);
|
|
416
|
+
font-size: 2rem;
|
|
417
|
+
line-height: 2.375rem;
|
|
418
|
+
font-weight: 600;
|
|
419
|
+
letter-spacing: 0em;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@utility heading-lg-sans {
|
|
423
|
+
font-family: var(--font-sans);
|
|
424
|
+
font-size: 1.5rem;
|
|
425
|
+
line-height: 1.75rem;
|
|
426
|
+
font-weight: 600;
|
|
427
|
+
letter-spacing: 0em;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@utility heading-lg-serif {
|
|
431
|
+
font-family: var(--font-display);
|
|
432
|
+
font-size: 1.5rem;
|
|
433
|
+
line-height: 1.75rem;
|
|
434
|
+
font-weight: 600;
|
|
435
|
+
letter-spacing: 0em;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@utility heading-md {
|
|
439
|
+
font-family: var(--font-sans);
|
|
440
|
+
font-size: 1.25rem;
|
|
441
|
+
line-height: 1.625rem;
|
|
442
|
+
font-weight: 600;
|
|
443
|
+
letter-spacing: 0em;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@utility heading-sm {
|
|
447
|
+
font-family: var(--font-sans);
|
|
448
|
+
font-size: 1.125rem;
|
|
449
|
+
line-height: 1.625rem;
|
|
450
|
+
font-weight: 600;
|
|
451
|
+
letter-spacing: 0em;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
@utility heading-xs {
|
|
455
|
+
font-family: var(--font-sans);
|
|
456
|
+
font-size: 1rem;
|
|
457
|
+
line-height: 1.5rem;
|
|
458
|
+
font-weight: 600;
|
|
459
|
+
letter-spacing: 0em;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* text-md alias — Apps SDK name; maps to Tailwind text-base metrics */
|
|
463
|
+
@utility text-md {
|
|
464
|
+
font-size: 1rem;
|
|
465
|
+
line-height: 1.5rem;
|
|
466
|
+
font-weight: 400;
|
|
467
|
+
letter-spacing: 0em;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@utility text-lg-strong {
|
|
471
|
+
font-size: 1.125rem;
|
|
472
|
+
line-height: 1.8125rem;
|
|
473
|
+
font-weight: 500;
|
|
474
|
+
letter-spacing: 0em;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@utility text-md-strong {
|
|
478
|
+
font-size: 1rem;
|
|
479
|
+
line-height: 1.5rem;
|
|
480
|
+
font-weight: 500;
|
|
481
|
+
letter-spacing: 0em;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
@utility text-sm-strong {
|
|
485
|
+
font-size: 0.875rem;
|
|
486
|
+
line-height: 1.25rem;
|
|
487
|
+
font-weight: 500;
|
|
488
|
+
letter-spacing: 0em;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
@utility text-xs-strong {
|
|
492
|
+
font-size: 0.75rem;
|
|
493
|
+
line-height: 1.125rem;
|
|
494
|
+
font-weight: 500;
|
|
495
|
+
letter-spacing: 0em;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@utility text-2xs-strong {
|
|
499
|
+
font-size: 0.625rem;
|
|
500
|
+
line-height: 0.875rem;
|
|
501
|
+
font-weight: 500;
|
|
502
|
+
letter-spacing: 0em;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@keyframes text-fade-in {
|
|
506
|
+
from {
|
|
507
|
+
opacity: 0;
|
|
508
|
+
translate: 0 0.35em;
|
|
509
|
+
}
|
|
510
|
+
to {
|
|
511
|
+
opacity: 1;
|
|
512
|
+
translate: 0 0;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@keyframes text-blur-in {
|
|
517
|
+
from {
|
|
518
|
+
opacity: 0;
|
|
519
|
+
filter: blur(8px);
|
|
520
|
+
}
|
|
521
|
+
to {
|
|
522
|
+
opacity: 1;
|
|
523
|
+
filter: blur(0);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
@keyframes ticker-scroll {
|
|
528
|
+
from {
|
|
529
|
+
translate: 0 0;
|
|
530
|
+
}
|
|
531
|
+
to {
|
|
532
|
+
translate: -50% 0;
|
|
533
|
+
}
|
|
534
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@boyernick/standard-ui-tokens",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Design tokens for StandardUI",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"css"
|
|
8
|
+
],
|
|
9
|
+
"style": "./css/tokens.css",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./css/tokens.css",
|
|
12
|
+
"./css": "./css/tokens.css",
|
|
13
|
+
"./css/tokens.css": "./css/tokens.css",
|
|
14
|
+
"./css/primitives.css": "./css/primitives.css",
|
|
15
|
+
"./css/fonts.css": "./css/fonts.css",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/boyernick/standard-ui.git",
|
|
24
|
+
"directory": "packages/tokens"
|
|
25
|
+
}
|
|
26
|
+
}
|