@podoba/tokens 0.0.48 → 0.0.50
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 +20 -0
- package/package.json +1 -1
- package/src/contrast.test.ts +13 -0
- package/src/fonts.css +10 -0
- package/src/fonts.test.ts +28 -0
- package/src/index.ts +3 -2
- package/src/tokens.json +825 -16
- package/src/variables.css +49 -9
package/README.md
CHANGED
|
@@ -9,6 +9,26 @@ import tokens from "@podoba/tokens/tokens.json"; // raw DTCG, if you need to int
|
|
|
9
9
|
|
|
10
10
|
- **`variables.css`** — the compiled CSS custom properties (`--color-brand-primary`, …). This is what apps load.
|
|
11
11
|
- **`tokens.json`** — the DTCG source (W3C Design Tokens format).
|
|
12
|
+
- **`fonts.css`**: optional. Bundles NC Fontina and points `--font-sans` at it, together
|
|
13
|
+
with the looser `--tracking-*` scale that face is set with. Import it after `variables.css`.
|
|
14
|
+
|
|
15
|
+
## Values track Graphic Standard
|
|
16
|
+
|
|
17
|
+
`variables.css` and `tokens.json` match the GS platform's `@app/tokens` output (the
|
|
18
|
+
`packages/tokens/src/variables.css` it generates), plus the few tokens only podoba's
|
|
19
|
+
components need (`--control-height-mobile-cta`, the create-hub motion, `--shadow-mobile-cta`)
|
|
20
|
+
and dark values for the modal scrim. An app that themes itself like GS can load
|
|
21
|
+
`variables.css` alone and bring GT America through its own `@font-face`: it gets the GS
|
|
22
|
+
palette, type ramp and tracking without keeping a copy of the GS tokens.
|
|
23
|
+
|
|
24
|
+
The GS tracking names are not an ordered scale. `--tracking-wide` (-0.56px) and
|
|
25
|
+
`--tracking-wider` (-0.6px) are GS's heading and display treatments, tighter than
|
|
26
|
+
`--tracking-tight` (-0.2px), and GS sets its `uppercase tracking-wide` labels with them
|
|
27
|
+
too. That is the GS look on GT America, kept as is. Only `fonts.css` brings the
|
|
28
|
+
positive scale, because NC Fontina needs it.
|
|
29
|
+
|
|
30
|
+
GT America is a commercial face, so it is named in `--font-sans` / `--font-mono` but never
|
|
31
|
+
shipped here. Without it (or `fonts.css`), text falls back to the system sans.
|
|
12
32
|
|
|
13
33
|
## Not here on purpose
|
|
14
34
|
|
package/package.json
CHANGED
package/src/contrast.test.ts
CHANGED
|
@@ -106,6 +106,19 @@ const SOLID_PAIRS: Array<[fg: string, bg: string]> = [
|
|
|
106
106
|
['fg-muted', 'surface'],
|
|
107
107
|
['fg-muted', 'surface-card'],
|
|
108
108
|
['fg-muted', 'surface-muted'],
|
|
109
|
+
// Filled danger (Button destructive). GS flips the ink to brand black in dark:
|
|
110
|
+
// white on the lighter dark-theme #ef4444 is only 3.76:1.
|
|
111
|
+
['danger-fg', 'danger'],
|
|
112
|
+
// GS dialog action: fixed brand black with white ink in both themes.
|
|
113
|
+
['action-solid-fg', 'action-solid'],
|
|
114
|
+
['action-solid-fg', 'action-solid-hover'],
|
|
115
|
+
['action-solid-fg', 'action-solid-pressed'],
|
|
116
|
+
// GS context action panel: always dark, its ink must hold on every stop.
|
|
117
|
+
['context-menu-fg', 'context-menu-top'],
|
|
118
|
+
['context-menu-fg', 'context-menu-bottom'],
|
|
119
|
+
['context-menu-fg', 'context-menu-hover'],
|
|
120
|
+
['context-menu-danger', 'context-menu-hover'],
|
|
121
|
+
['context-menu-badge-fg', 'context-menu-badge-bg'],
|
|
109
122
|
// NOT listed: ['fg-muted', 'border'] — in light `border` IS #eceae1, so the pair
|
|
110
123
|
// is numerically identical to the line above, and in dark it is a translucent
|
|
111
124
|
// #ffffff1a hairline that `opaque()` rejects. `bg-border` is only ever a 1px rule
|
package/src/fonts.css
CHANGED
|
@@ -38,8 +38,18 @@
|
|
|
38
38
|
* font-feature-settings turns on NC Fontina's stylistic sets ss02–ss05 (the
|
|
39
39
|
* default letterforms the brand uses: jy/at/g ligatures and the @ alternate).
|
|
40
40
|
* It's an inherited property, so declaring it on :root cascades to every element.
|
|
41
|
+
*
|
|
42
|
+
* The tracking scale travels with the typeface. variables.css carries the GS
|
|
43
|
+
* scale (-0.13px … -0.6px), which is tuned for GT America, the family its
|
|
44
|
+
* --font-sans names. NC Fontina is set looser, so swapping the face in here also
|
|
45
|
+
* swaps in its own positive scale. A consumer that brings GT America itself (and
|
|
46
|
+
* skips this file) gets the GS tracking with no override of its own.
|
|
41
47
|
*/
|
|
42
48
|
:root {
|
|
43
49
|
--font-sans: 'NC Fontina', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
50
|
+
--tracking-normal: 0.01em;
|
|
51
|
+
--tracking-tight: 0em;
|
|
52
|
+
--tracking-wide: 0.02em;
|
|
53
|
+
--tracking-wider: 0.03em;
|
|
44
54
|
font-feature-settings: 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1;
|
|
45
55
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="bun" />
|
|
2
|
+
|
|
3
|
+
import { expect, test } from 'bun:test'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Letter spacing is tuned per typeface. variables.css carries the GS scale, set for
|
|
7
|
+
* the GT America it names in --font-sans; fonts.css swaps in NC Fontina and must
|
|
8
|
+
* bring that face's own scale with it. A tracking token added to variables.css but
|
|
9
|
+
* not here would quietly apply GT America's negative tracking to NC Fontina.
|
|
10
|
+
*
|
|
11
|
+
* `--tracking-display-large` is left out on purpose: it is the hero heading's
|
|
12
|
+
* proportional (em) value from the GS source, and both faces use it as is.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const SCALE = ['--tracking-normal', '--tracking-tight', '--tracking-wide', '--tracking-wider']
|
|
16
|
+
|
|
17
|
+
const read = (file: string) => Bun.file(new URL(file, import.meta.url)).text()
|
|
18
|
+
const names = (css: string, prefix: string) =>
|
|
19
|
+
new Set([...css.matchAll(new RegExp(`(--${prefix}[a-z0-9-]*):`, 'g'))].map((m) => m[1]))
|
|
20
|
+
|
|
21
|
+
test('fonts.css overrides the whole tracking scale that variables.css declares', async () => {
|
|
22
|
+
const [variables, fonts] = await Promise.all([read('./variables.css'), read('./fonts.css')])
|
|
23
|
+
const declared = names(variables, 'tracking-')
|
|
24
|
+
declared.delete('--tracking-display-large')
|
|
25
|
+
expect([...declared].sort()).toEqual([...SCALE].sort())
|
|
26
|
+
expect([...names(fonts, 'tracking-')].sort()).toEqual([...SCALE].sort())
|
|
27
|
+
expect(fonts).toContain('--font-sans:')
|
|
28
|
+
})
|
package/src/index.ts
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
// `variables.css` and writes it here. Consumers only ever need:
|
|
7
7
|
//
|
|
8
8
|
// import "@podoba/tokens/variables.css"; // the CSS custom properties
|
|
9
|
-
// import "@podoba/tokens/fonts.css"; // @font-face + --font-sans override (NC Fontina)
|
|
9
|
+
// import "@podoba/tokens/fonts.css"; // @font-face + --font-sans and tracking override (NC Fontina)
|
|
10
10
|
// import tokens from "@podoba/tokens/tokens.json"; // raw DTCG (optional)
|
|
11
11
|
//
|
|
12
12
|
// fonts.css is hand-authored (not generated) — it bundles the web fonts and
|
|
13
|
-
// overrides --font-sans
|
|
13
|
+
// overrides --font-sans plus the --tracking-* scale tuned for that face; keep it
|
|
14
|
+
// imported AFTER variables.css so the override wins.
|
|
14
15
|
//
|
|
15
16
|
// See ../../EXTRACTION.md → "Coupling to sever #1".
|
|
16
17
|
|
package/src/tokens.json
CHANGED
|
@@ -1,5 +1,620 @@
|
|
|
1
1
|
{
|
|
2
2
|
"color": {
|
|
3
|
+
"ab-test": {
|
|
4
|
+
"label": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"$value": "#ffffff",
|
|
7
|
+
"$description": "A/B variant badge label: stable white ink from the Manager source component.",
|
|
8
|
+
"$extensions": {
|
|
9
|
+
"graphicstandard": {
|
|
10
|
+
"family": "color",
|
|
11
|
+
"layer": "semantic",
|
|
12
|
+
"value": {
|
|
13
|
+
"kind": "color",
|
|
14
|
+
"value": [
|
|
15
|
+
{
|
|
16
|
+
"themeKey": "light",
|
|
17
|
+
"online": {
|
|
18
|
+
"colorSpace": "hex",
|
|
19
|
+
"hex": "#ffffff"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"palette-0": {
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"$value": "#ea5656",
|
|
30
|
+
"$description": "A/B variant badge animated palette step 0: red.",
|
|
31
|
+
"$extensions": {
|
|
32
|
+
"graphicstandard": {
|
|
33
|
+
"family": "color",
|
|
34
|
+
"layer": "semantic",
|
|
35
|
+
"value": {
|
|
36
|
+
"kind": "color",
|
|
37
|
+
"value": [
|
|
38
|
+
{
|
|
39
|
+
"themeKey": "light",
|
|
40
|
+
"online": {
|
|
41
|
+
"colorSpace": "hex",
|
|
42
|
+
"hex": "#ea5656"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"palette-1": {
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$value": "#3b7ed6",
|
|
53
|
+
"$description": "A/B variant badge animated palette step 1: blue.",
|
|
54
|
+
"$extensions": {
|
|
55
|
+
"graphicstandard": {
|
|
56
|
+
"family": "color",
|
|
57
|
+
"layer": "semantic",
|
|
58
|
+
"value": {
|
|
59
|
+
"kind": "color",
|
|
60
|
+
"value": [
|
|
61
|
+
{
|
|
62
|
+
"themeKey": "light",
|
|
63
|
+
"online": {
|
|
64
|
+
"colorSpace": "hex",
|
|
65
|
+
"hex": "#3b7ed6"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"palette-2": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "#78d5ad",
|
|
76
|
+
"$description": "A/B variant badge animated palette step 2: mint.",
|
|
77
|
+
"$extensions": {
|
|
78
|
+
"graphicstandard": {
|
|
79
|
+
"family": "color",
|
|
80
|
+
"layer": "semantic",
|
|
81
|
+
"value": {
|
|
82
|
+
"kind": "color",
|
|
83
|
+
"value": [
|
|
84
|
+
{
|
|
85
|
+
"themeKey": "light",
|
|
86
|
+
"online": {
|
|
87
|
+
"colorSpace": "hex",
|
|
88
|
+
"hex": "#78d5ad"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"palette-3": {
|
|
97
|
+
"$type": "color",
|
|
98
|
+
"$value": "#ff6200",
|
|
99
|
+
"$description": "A/B variant badge animated palette step 3: orange.",
|
|
100
|
+
"$extensions": {
|
|
101
|
+
"graphicstandard": {
|
|
102
|
+
"family": "color",
|
|
103
|
+
"layer": "semantic",
|
|
104
|
+
"value": {
|
|
105
|
+
"kind": "color",
|
|
106
|
+
"value": [
|
|
107
|
+
{
|
|
108
|
+
"themeKey": "light",
|
|
109
|
+
"online": {
|
|
110
|
+
"colorSpace": "hex",
|
|
111
|
+
"hex": "#ff6200"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"palette-4": {
|
|
120
|
+
"$type": "color",
|
|
121
|
+
"$value": "#6b8dcb",
|
|
122
|
+
"$description": "A/B variant badge animated palette step 4: periwinkle.",
|
|
123
|
+
"$extensions": {
|
|
124
|
+
"graphicstandard": {
|
|
125
|
+
"family": "color",
|
|
126
|
+
"layer": "semantic",
|
|
127
|
+
"value": {
|
|
128
|
+
"kind": "color",
|
|
129
|
+
"value": [
|
|
130
|
+
{
|
|
131
|
+
"themeKey": "light",
|
|
132
|
+
"online": {
|
|
133
|
+
"colorSpace": "hex",
|
|
134
|
+
"hex": "#6b8dcb"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"palette-5": {
|
|
143
|
+
"$type": "color",
|
|
144
|
+
"$value": "#f4bd45",
|
|
145
|
+
"$description": "A/B variant badge animated palette step 5: yellow.",
|
|
146
|
+
"$extensions": {
|
|
147
|
+
"graphicstandard": {
|
|
148
|
+
"family": "color",
|
|
149
|
+
"layer": "semantic",
|
|
150
|
+
"value": {
|
|
151
|
+
"kind": "color",
|
|
152
|
+
"value": [
|
|
153
|
+
{
|
|
154
|
+
"themeKey": "light",
|
|
155
|
+
"online": {
|
|
156
|
+
"colorSpace": "hex",
|
|
157
|
+
"hex": "#f4bd45"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"palette-6": {
|
|
166
|
+
"$type": "color",
|
|
167
|
+
"$value": "#6ebbd7",
|
|
168
|
+
"$description": "A/B variant badge animated palette step 6: cyan.",
|
|
169
|
+
"$extensions": {
|
|
170
|
+
"graphicstandard": {
|
|
171
|
+
"family": "color",
|
|
172
|
+
"layer": "semantic",
|
|
173
|
+
"value": {
|
|
174
|
+
"kind": "color",
|
|
175
|
+
"value": [
|
|
176
|
+
{
|
|
177
|
+
"themeKey": "light",
|
|
178
|
+
"online": {
|
|
179
|
+
"colorSpace": "hex",
|
|
180
|
+
"hex": "#6ebbd7"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"palette-7": {
|
|
189
|
+
"$type": "color",
|
|
190
|
+
"$value": "#d8d1bb",
|
|
191
|
+
"$description": "A/B variant badge animated palette step 7: sand.",
|
|
192
|
+
"$extensions": {
|
|
193
|
+
"graphicstandard": {
|
|
194
|
+
"family": "color",
|
|
195
|
+
"layer": "semantic",
|
|
196
|
+
"value": {
|
|
197
|
+
"kind": "color",
|
|
198
|
+
"value": [
|
|
199
|
+
{
|
|
200
|
+
"themeKey": "light",
|
|
201
|
+
"online": {
|
|
202
|
+
"colorSpace": "hex",
|
|
203
|
+
"hex": "#d8d1bb"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"action": {
|
|
213
|
+
"compact": {
|
|
214
|
+
"muted": {
|
|
215
|
+
"$type": "color",
|
|
216
|
+
"$value": "#eceae1",
|
|
217
|
+
"$description": "Source compact GS action hover and disabled neutral-100.",
|
|
218
|
+
"$extensions": {
|
|
219
|
+
"graphicstandard": {
|
|
220
|
+
"family": "color",
|
|
221
|
+
"layer": "semantic",
|
|
222
|
+
"value": {
|
|
223
|
+
"kind": "color",
|
|
224
|
+
"value": [
|
|
225
|
+
{
|
|
226
|
+
"themeKey": "light",
|
|
227
|
+
"online": {
|
|
228
|
+
"colorSpace": "hex",
|
|
229
|
+
"hex": "#eceae1"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"soft": {
|
|
239
|
+
"DEFAULT": {
|
|
240
|
+
"$type": "color",
|
|
241
|
+
"$value": "#f7f6f2",
|
|
242
|
+
"$description": "UI secondary dialog action: source background-secondary.",
|
|
243
|
+
"$extensions": {
|
|
244
|
+
"graphicstandard": {
|
|
245
|
+
"family": "color",
|
|
246
|
+
"layer": "semantic",
|
|
247
|
+
"value": {
|
|
248
|
+
"kind": "color",
|
|
249
|
+
"value": [
|
|
250
|
+
{
|
|
251
|
+
"themeKey": "light",
|
|
252
|
+
"online": {
|
|
253
|
+
"colorSpace": "hex",
|
|
254
|
+
"hex": "#f7f6f2"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"themeKey": "dark",
|
|
259
|
+
"online": {
|
|
260
|
+
"colorSpace": "hex",
|
|
261
|
+
"hex": "#1d1d1b"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"border-hover": {
|
|
270
|
+
"$type": "color",
|
|
271
|
+
"$value": "#aba89c",
|
|
272
|
+
"$description": "UI secondary dialog action hover border: source border-strong.",
|
|
273
|
+
"$extensions": {
|
|
274
|
+
"graphicstandard": {
|
|
275
|
+
"family": "color",
|
|
276
|
+
"layer": "semantic",
|
|
277
|
+
"value": {
|
|
278
|
+
"kind": "color",
|
|
279
|
+
"value": [
|
|
280
|
+
{
|
|
281
|
+
"themeKey": "light",
|
|
282
|
+
"online": {
|
|
283
|
+
"colorSpace": "hex",
|
|
284
|
+
"hex": "#aba89c"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"themeKey": "dark",
|
|
289
|
+
"online": {
|
|
290
|
+
"colorSpace": "hex",
|
|
291
|
+
"hex": "#ffffff33"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"hover": {
|
|
300
|
+
"$type": "color",
|
|
301
|
+
"$value": "#eceae1",
|
|
302
|
+
"$description": "UI secondary dialog action hover: source background-hover (dark white5%).",
|
|
303
|
+
"$extensions": {
|
|
304
|
+
"graphicstandard": {
|
|
305
|
+
"family": "color",
|
|
306
|
+
"layer": "semantic",
|
|
307
|
+
"value": {
|
|
308
|
+
"kind": "color",
|
|
309
|
+
"value": [
|
|
310
|
+
{
|
|
311
|
+
"themeKey": "light",
|
|
312
|
+
"online": {
|
|
313
|
+
"colorSpace": "hex",
|
|
314
|
+
"hex": "#eceae1"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"themeKey": "dark",
|
|
319
|
+
"online": {
|
|
320
|
+
"colorSpace": "hex",
|
|
321
|
+
"hex": "#ffffff0d"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"pressed": {
|
|
330
|
+
"$type": "color",
|
|
331
|
+
"$value": "#eceae1",
|
|
332
|
+
"$description": "UI secondary dialog action pressed: source background-active (dark white10%).",
|
|
333
|
+
"$extensions": {
|
|
334
|
+
"graphicstandard": {
|
|
335
|
+
"family": "color",
|
|
336
|
+
"layer": "semantic",
|
|
337
|
+
"value": {
|
|
338
|
+
"kind": "color",
|
|
339
|
+
"value": [
|
|
340
|
+
{
|
|
341
|
+
"themeKey": "light",
|
|
342
|
+
"online": {
|
|
343
|
+
"colorSpace": "hex",
|
|
344
|
+
"hex": "#eceae1"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"themeKey": "dark",
|
|
349
|
+
"online": {
|
|
350
|
+
"colorSpace": "hex",
|
|
351
|
+
"hex": "#ffffff1a"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"solid": {
|
|
361
|
+
"DEFAULT": {
|
|
362
|
+
"$type": "color",
|
|
363
|
+
"$value": "#0d0d0d",
|
|
364
|
+
"$description": "UI dialog action: source Manager brand-black, fixed in both themes.",
|
|
365
|
+
"$extensions": {
|
|
366
|
+
"graphicstandard": {
|
|
367
|
+
"family": "color",
|
|
368
|
+
"layer": "semantic",
|
|
369
|
+
"value": {
|
|
370
|
+
"kind": "color",
|
|
371
|
+
"value": [
|
|
372
|
+
{
|
|
373
|
+
"themeKey": "light",
|
|
374
|
+
"online": {
|
|
375
|
+
"colorSpace": "hex",
|
|
376
|
+
"hex": "#0d0d0d"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"fg": {
|
|
385
|
+
"$type": "color",
|
|
386
|
+
"$value": "#ffffff",
|
|
387
|
+
"$description": "Fixed white ink on the source UI dialog action in both themes.",
|
|
388
|
+
"$extensions": {
|
|
389
|
+
"graphicstandard": {
|
|
390
|
+
"family": "color",
|
|
391
|
+
"layer": "semantic",
|
|
392
|
+
"value": {
|
|
393
|
+
"kind": "color",
|
|
394
|
+
"value": [
|
|
395
|
+
{
|
|
396
|
+
"themeKey": "light",
|
|
397
|
+
"online": {
|
|
398
|
+
"colorSpace": "hex",
|
|
399
|
+
"hex": "#ffffff"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"hover": {
|
|
408
|
+
"$type": "color",
|
|
409
|
+
"$value": "#242423",
|
|
410
|
+
"$description": "UI dialog action hover: source neutral-400, without a shadow.",
|
|
411
|
+
"$extensions": {
|
|
412
|
+
"graphicstandard": {
|
|
413
|
+
"family": "color",
|
|
414
|
+
"layer": "semantic",
|
|
415
|
+
"value": {
|
|
416
|
+
"kind": "color",
|
|
417
|
+
"value": [
|
|
418
|
+
{
|
|
419
|
+
"themeKey": "light",
|
|
420
|
+
"online": {
|
|
421
|
+
"colorSpace": "hex",
|
|
422
|
+
"hex": "#242423"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"pressed": {
|
|
431
|
+
"$type": "color",
|
|
432
|
+
"$value": "#1d1d1b",
|
|
433
|
+
"$description": "UI dialog action pressed: source neutral-500.",
|
|
434
|
+
"$extensions": {
|
|
435
|
+
"graphicstandard": {
|
|
436
|
+
"family": "color",
|
|
437
|
+
"layer": "semantic",
|
|
438
|
+
"value": {
|
|
439
|
+
"kind": "color",
|
|
440
|
+
"value": [
|
|
441
|
+
{
|
|
442
|
+
"themeKey": "light",
|
|
443
|
+
"online": {
|
|
444
|
+
"colorSpace": "hex",
|
|
445
|
+
"hex": "#1d1d1b"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"context-menu": {
|
|
456
|
+
"badge-bg": {
|
|
457
|
+
"$type": "color",
|
|
458
|
+
"$value": "#333437",
|
|
459
|
+
"$description": "Context action panel: source trailing badge fill.",
|
|
460
|
+
"$extensions": {
|
|
461
|
+
"graphicstandard": {
|
|
462
|
+
"family": "color",
|
|
463
|
+
"layer": "semantic",
|
|
464
|
+
"value": {
|
|
465
|
+
"kind": "color",
|
|
466
|
+
"value": [
|
|
467
|
+
{
|
|
468
|
+
"themeKey": "light",
|
|
469
|
+
"online": {
|
|
470
|
+
"colorSpace": "hex",
|
|
471
|
+
"hex": "#333437"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"badge-fg": {
|
|
480
|
+
"$type": "color",
|
|
481
|
+
"$value": "#c8c8ca",
|
|
482
|
+
"$description": "Context action panel: source trailing badge ink.",
|
|
483
|
+
"$extensions": {
|
|
484
|
+
"graphicstandard": {
|
|
485
|
+
"family": "color",
|
|
486
|
+
"layer": "semantic",
|
|
487
|
+
"value": {
|
|
488
|
+
"kind": "color",
|
|
489
|
+
"value": [
|
|
490
|
+
{
|
|
491
|
+
"themeKey": "light",
|
|
492
|
+
"online": {
|
|
493
|
+
"colorSpace": "hex",
|
|
494
|
+
"hex": "#c8c8ca"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"bottom": {
|
|
503
|
+
"$type": "color",
|
|
504
|
+
"$value": "#1f1f1f",
|
|
505
|
+
"$description": "Context action panel: source gradient end.",
|
|
506
|
+
"$extensions": {
|
|
507
|
+
"graphicstandard": {
|
|
508
|
+
"family": "color",
|
|
509
|
+
"layer": "semantic",
|
|
510
|
+
"value": {
|
|
511
|
+
"kind": "color",
|
|
512
|
+
"value": [
|
|
513
|
+
{
|
|
514
|
+
"themeKey": "light",
|
|
515
|
+
"online": {
|
|
516
|
+
"colorSpace": "hex",
|
|
517
|
+
"hex": "#1f1f1f"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"danger": {
|
|
526
|
+
"$type": "color",
|
|
527
|
+
"$value": "#fee2e2",
|
|
528
|
+
"$description": "Context action panel: resolved source light error-light ink (not its CSS fallback); kept readable on the fixed dark panel in both themes.",
|
|
529
|
+
"$extensions": {
|
|
530
|
+
"graphicstandard": {
|
|
531
|
+
"family": "color",
|
|
532
|
+
"layer": "semantic",
|
|
533
|
+
"value": {
|
|
534
|
+
"kind": "color",
|
|
535
|
+
"value": [
|
|
536
|
+
{
|
|
537
|
+
"themeKey": "light",
|
|
538
|
+
"online": {
|
|
539
|
+
"colorSpace": "hex",
|
|
540
|
+
"hex": "#fee2e2"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"fg": {
|
|
549
|
+
"$type": "color",
|
|
550
|
+
"$value": "#ffffff",
|
|
551
|
+
"$description": "Context action panel: resolved source light inverse ink, kept readable on the fixed dark panel in both themes.",
|
|
552
|
+
"$extensions": {
|
|
553
|
+
"graphicstandard": {
|
|
554
|
+
"family": "color",
|
|
555
|
+
"layer": "semantic",
|
|
556
|
+
"value": {
|
|
557
|
+
"kind": "color",
|
|
558
|
+
"value": [
|
|
559
|
+
{
|
|
560
|
+
"themeKey": "light",
|
|
561
|
+
"online": {
|
|
562
|
+
"colorSpace": "hex",
|
|
563
|
+
"hex": "#ffffff"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"hover": {
|
|
572
|
+
"$type": "color",
|
|
573
|
+
"$value": "#2f2f2f",
|
|
574
|
+
"$description": "Context action panel: source item hover/focus fill.",
|
|
575
|
+
"$extensions": {
|
|
576
|
+
"graphicstandard": {
|
|
577
|
+
"family": "color",
|
|
578
|
+
"layer": "semantic",
|
|
579
|
+
"value": {
|
|
580
|
+
"kind": "color",
|
|
581
|
+
"value": [
|
|
582
|
+
{
|
|
583
|
+
"themeKey": "light",
|
|
584
|
+
"online": {
|
|
585
|
+
"colorSpace": "hex",
|
|
586
|
+
"hex": "#2f2f2f"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
]
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
"top": {
|
|
595
|
+
"$type": "color",
|
|
596
|
+
"$value": "#242424",
|
|
597
|
+
"$description": "Context action panel: source gradient start.",
|
|
598
|
+
"$extensions": {
|
|
599
|
+
"graphicstandard": {
|
|
600
|
+
"family": "color",
|
|
601
|
+
"layer": "semantic",
|
|
602
|
+
"value": {
|
|
603
|
+
"kind": "color",
|
|
604
|
+
"value": [
|
|
605
|
+
{
|
|
606
|
+
"themeKey": "light",
|
|
607
|
+
"online": {
|
|
608
|
+
"colorSpace": "hex",
|
|
609
|
+
"hex": "#242424"
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
]
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
},
|
|
3
618
|
"accent": {
|
|
4
619
|
"blue": {
|
|
5
620
|
"$type": "color",
|
|
@@ -306,8 +921,8 @@
|
|
|
306
921
|
"danger": {
|
|
307
922
|
"DEFAULT": {
|
|
308
923
|
"$type": "color",
|
|
309
|
-
"$value": "#
|
|
310
|
-
"$description": "Danger
|
|
924
|
+
"$value": "#d92323",
|
|
925
|
+
"$description": "Danger: error (dark: gs error-dark, brighter for contrast).",
|
|
311
926
|
"$extensions": {
|
|
312
927
|
"graphicstandard": {
|
|
313
928
|
"family": "color",
|
|
@@ -319,7 +934,7 @@
|
|
|
319
934
|
"themeKey": "light",
|
|
320
935
|
"online": {
|
|
321
936
|
"colorSpace": "hex",
|
|
322
|
-
"hex": "#
|
|
937
|
+
"hex": "#d92323"
|
|
323
938
|
}
|
|
324
939
|
},
|
|
325
940
|
{
|
|
@@ -337,7 +952,7 @@
|
|
|
337
952
|
"fg": {
|
|
338
953
|
"$type": "color",
|
|
339
954
|
"$value": "#ffffff",
|
|
340
|
-
"$description": "Danger foreground
|
|
955
|
+
"$description": "Danger foreground: text ON the danger fill; follows danger.DEFAULT across themes (WCAG 2.1 AA, accessibility.md). Light #ffffff on #d92323 = 4.98:1. Dark had to flip: danger.DEFAULT lightens to #ef4444 there (\"brighter for contrast\", against the DARK SURFACE, as a fill), and white on it is 3.76:1, below the 4.5:1 normal-text floor, axe-measured on the shipped status badges. Brand black on #ef4444 = 5.17:1, the same move success.fg already makes on its green fill.",
|
|
341
956
|
"$extensions": {
|
|
342
957
|
"graphicstandard": {
|
|
343
958
|
"family": "color",
|
|
@@ -351,6 +966,13 @@
|
|
|
351
966
|
"colorSpace": "hex",
|
|
352
967
|
"hex": "#ffffff"
|
|
353
968
|
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"themeKey": "dark",
|
|
972
|
+
"online": {
|
|
973
|
+
"colorSpace": "hex",
|
|
974
|
+
"hex": "#0d0d0d"
|
|
975
|
+
}
|
|
354
976
|
}
|
|
355
977
|
]
|
|
356
978
|
}
|
|
@@ -579,6 +1201,36 @@
|
|
|
579
1201
|
}
|
|
580
1202
|
}
|
|
581
1203
|
}
|
|
1204
|
+
},
|
|
1205
|
+
"backdrop-fallback": {
|
|
1206
|
+
"$type": "color",
|
|
1207
|
+
"$value": "#f7f6f2c2",
|
|
1208
|
+
"$description": "Modal backdrop fallback when backdrop-filter is unavailable (dark: neutral scrim at the same alpha).",
|
|
1209
|
+
"$extensions": {
|
|
1210
|
+
"graphicstandard": {
|
|
1211
|
+
"family": "color",
|
|
1212
|
+
"layer": "semantic",
|
|
1213
|
+
"value": {
|
|
1214
|
+
"kind": "color",
|
|
1215
|
+
"value": [
|
|
1216
|
+
{
|
|
1217
|
+
"themeKey": "light",
|
|
1218
|
+
"online": {
|
|
1219
|
+
"colorSpace": "hex",
|
|
1220
|
+
"hex": "#f7f6f2c2"
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"themeKey": "dark",
|
|
1225
|
+
"online": {
|
|
1226
|
+
"colorSpace": "hex",
|
|
1227
|
+
"hex": "#0d0d0dc2"
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
]
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
582
1234
|
}
|
|
583
1235
|
},
|
|
584
1236
|
"neutral": {
|
|
@@ -1156,6 +1808,36 @@
|
|
|
1156
1808
|
}
|
|
1157
1809
|
}
|
|
1158
1810
|
}
|
|
1811
|
+
},
|
|
1812
|
+
"document-display": {
|
|
1813
|
+
"$type": "dimension",
|
|
1814
|
+
"$value": "3.5rem",
|
|
1815
|
+
"$description": "Font size: Smart Document display title (56px), ported from gs-platform display-1.",
|
|
1816
|
+
"$extensions": {
|
|
1817
|
+
"graphicstandard": {
|
|
1818
|
+
"family": "dimension",
|
|
1819
|
+
"layer": "semantic",
|
|
1820
|
+
"value": {
|
|
1821
|
+
"kind": "scalar",
|
|
1822
|
+
"value": "3.5rem"
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
"document-lead": {
|
|
1828
|
+
"$type": "dimension",
|
|
1829
|
+
"$value": "1.375rem",
|
|
1830
|
+
"$description": "Font size: Smart Document lead paragraph (22px).",
|
|
1831
|
+
"$extensions": {
|
|
1832
|
+
"graphicstandard": {
|
|
1833
|
+
"family": "dimension",
|
|
1834
|
+
"layer": "semantic",
|
|
1835
|
+
"value": {
|
|
1836
|
+
"kind": "scalar",
|
|
1837
|
+
"value": "1.375rem"
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1159
1841
|
}
|
|
1160
1842
|
}
|
|
1161
1843
|
},
|
|
@@ -1324,6 +2006,36 @@
|
|
|
1324
2006
|
}
|
|
1325
2007
|
}
|
|
1326
2008
|
}
|
|
2009
|
+
},
|
|
2010
|
+
"document-display": {
|
|
2011
|
+
"$type": "dimension",
|
|
2012
|
+
"$value": "60px",
|
|
2013
|
+
"$description": "Line height: Smart Document display title.",
|
|
2014
|
+
"$extensions": {
|
|
2015
|
+
"graphicstandard": {
|
|
2016
|
+
"family": "dimension",
|
|
2017
|
+
"layer": "semantic",
|
|
2018
|
+
"value": {
|
|
2019
|
+
"kind": "scalar",
|
|
2020
|
+
"value": "60px"
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"document-lead": {
|
|
2026
|
+
"$type": "dimension",
|
|
2027
|
+
"$value": "32px",
|
|
2028
|
+
"$description": "Line height: Smart Document lead paragraph.",
|
|
2029
|
+
"$extensions": {
|
|
2030
|
+
"graphicstandard": {
|
|
2031
|
+
"family": "dimension",
|
|
2032
|
+
"layer": "semantic",
|
|
2033
|
+
"value": {
|
|
2034
|
+
"kind": "scalar",
|
|
2035
|
+
"value": "32px"
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
1327
2039
|
}
|
|
1328
2040
|
},
|
|
1329
2041
|
"control": {
|
|
@@ -1483,6 +2195,69 @@
|
|
|
1483
2195
|
}
|
|
1484
2196
|
}
|
|
1485
2197
|
}
|
|
2198
|
+
},
|
|
2199
|
+
"action-compact-hover": {
|
|
2200
|
+
"$type": "shadow",
|
|
2201
|
+
"$value": [
|
|
2202
|
+
{
|
|
2203
|
+
"offsetX": "0px",
|
|
2204
|
+
"offsetY": "0px",
|
|
2205
|
+
"blur": "5px",
|
|
2206
|
+
"spread": "0px",
|
|
2207
|
+
"color": "rgba(0, 0, 0, 0.5)",
|
|
2208
|
+
"inset": false
|
|
2209
|
+
}
|
|
2210
|
+
],
|
|
2211
|
+
"$description": "Source compact GS action hover glow.",
|
|
2212
|
+
"$extensions": {
|
|
2213
|
+
"graphicstandard": {
|
|
2214
|
+
"family": "shadow",
|
|
2215
|
+
"layer": "semantic",
|
|
2216
|
+
"value": {
|
|
2217
|
+
"kind": "shadow",
|
|
2218
|
+
"value": [
|
|
2219
|
+
{
|
|
2220
|
+
"x": "0px",
|
|
2221
|
+
"y": "0px",
|
|
2222
|
+
"blur": "5px",
|
|
2223
|
+
"spread": "0px",
|
|
2224
|
+
"color": "rgba(0, 0, 0, 0.5)"
|
|
2225
|
+
}
|
|
2226
|
+
]
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"context-menu": {
|
|
2232
|
+
"$type": "shadow",
|
|
2233
|
+
"$value": [
|
|
2234
|
+
{
|
|
2235
|
+
"offsetX": "0px",
|
|
2236
|
+
"offsetY": "12px",
|
|
2237
|
+
"blur": "28px",
|
|
2238
|
+
"spread": "0",
|
|
2239
|
+
"color": "rgba(0, 0, 0, 0.22)",
|
|
2240
|
+
"inset": false
|
|
2241
|
+
}
|
|
2242
|
+
],
|
|
2243
|
+
"$description": "Context action panel: source 22% black shadow.",
|
|
2244
|
+
"$extensions": {
|
|
2245
|
+
"graphicstandard": {
|
|
2246
|
+
"family": "shadow",
|
|
2247
|
+
"layer": "semantic",
|
|
2248
|
+
"value": {
|
|
2249
|
+
"kind": "shadow",
|
|
2250
|
+
"value": [
|
|
2251
|
+
{
|
|
2252
|
+
"x": "0px",
|
|
2253
|
+
"y": "12px",
|
|
2254
|
+
"blur": "28px",
|
|
2255
|
+
"color": "rgba(0, 0, 0, 0.22)"
|
|
2256
|
+
}
|
|
2257
|
+
]
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
1486
2261
|
}
|
|
1487
2262
|
},
|
|
1488
2263
|
"motion": {
|
|
@@ -1924,6 +2699,21 @@
|
|
|
1924
2699
|
}
|
|
1925
2700
|
}
|
|
1926
2701
|
}
|
|
2702
|
+
},
|
|
2703
|
+
"context-menu-item": {
|
|
2704
|
+
"$type": "dimension",
|
|
2705
|
+
"$value": "10px",
|
|
2706
|
+
"$description": "Context action panel: source item radius.",
|
|
2707
|
+
"$extensions": {
|
|
2708
|
+
"graphicstandard": {
|
|
2709
|
+
"family": "radius",
|
|
2710
|
+
"layer": "semantic",
|
|
2711
|
+
"value": {
|
|
2712
|
+
"kind": "scalar",
|
|
2713
|
+
"value": "10px"
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
1927
2717
|
}
|
|
1928
2718
|
},
|
|
1929
2719
|
"space": {
|
|
@@ -2036,60 +2826,79 @@
|
|
|
2036
2826
|
},
|
|
2037
2827
|
"normal": {
|
|
2038
2828
|
"$type": "dimension",
|
|
2039
|
-
"$value": "0.
|
|
2040
|
-
"$description": "Letter spacing
|
|
2829
|
+
"$value": "-0.13px",
|
|
2830
|
+
"$description": "Letter spacing: normal (source body default). Paired with GT America (the --font-sans default); @podoba/tokens/fonts.css swaps in NC Fontina together with its own positive tracking scale.",
|
|
2041
2831
|
"$extensions": {
|
|
2042
2832
|
"graphicstandard": {
|
|
2043
2833
|
"family": "dimension",
|
|
2044
2834
|
"layer": "semantic",
|
|
2045
2835
|
"value": {
|
|
2046
2836
|
"kind": "scalar",
|
|
2047
|
-
"value": "0.
|
|
2837
|
+
"value": "-0.13px"
|
|
2048
2838
|
}
|
|
2049
2839
|
}
|
|
2050
2840
|
}
|
|
2051
2841
|
},
|
|
2052
2842
|
"tight": {
|
|
2053
2843
|
"$type": "dimension",
|
|
2054
|
-
"$value": "
|
|
2055
|
-
"$description": "Letter spacing
|
|
2844
|
+
"$value": "-0.2px",
|
|
2845
|
+
"$description": "Letter spacing: tight (source dense UI text). Paired with GT America (the --font-sans default); @podoba/tokens/fonts.css swaps in NC Fontina together with its own positive tracking scale.",
|
|
2056
2846
|
"$extensions": {
|
|
2057
2847
|
"graphicstandard": {
|
|
2058
2848
|
"family": "dimension",
|
|
2059
2849
|
"layer": "semantic",
|
|
2060
2850
|
"value": {
|
|
2061
2851
|
"kind": "scalar",
|
|
2062
|
-
"value": "
|
|
2852
|
+
"value": "-0.2px"
|
|
2063
2853
|
}
|
|
2064
2854
|
}
|
|
2065
2855
|
}
|
|
2066
2856
|
},
|
|
2067
2857
|
"wide": {
|
|
2068
2858
|
"$type": "dimension",
|
|
2069
|
-
"$value": "0.
|
|
2070
|
-
"$description": "Letter spacing
|
|
2859
|
+
"$value": "-0.56px",
|
|
2860
|
+
"$description": "Letter spacing: source wide heading treatment. Paired with GT America (the --font-sans default); @podoba/tokens/fonts.css swaps in NC Fontina together with its own positive tracking scale.",
|
|
2071
2861
|
"$extensions": {
|
|
2072
2862
|
"graphicstandard": {
|
|
2073
2863
|
"family": "dimension",
|
|
2074
2864
|
"layer": "semantic",
|
|
2075
2865
|
"value": {
|
|
2076
2866
|
"kind": "scalar",
|
|
2077
|
-
"value": "0.
|
|
2867
|
+
"value": "-0.56px"
|
|
2078
2868
|
}
|
|
2079
2869
|
}
|
|
2080
2870
|
}
|
|
2081
2871
|
},
|
|
2082
2872
|
"wider": {
|
|
2083
2873
|
"$type": "dimension",
|
|
2084
|
-
"$value": "0.
|
|
2085
|
-
"$description": "Letter spacing
|
|
2874
|
+
"$value": "-0.6px",
|
|
2875
|
+
"$description": "Letter spacing: source wider display treatment. Paired with GT America (the --font-sans default); @podoba/tokens/fonts.css swaps in NC Fontina together with its own positive tracking scale.",
|
|
2086
2876
|
"$extensions": {
|
|
2087
2877
|
"graphicstandard": {
|
|
2088
2878
|
"family": "dimension",
|
|
2089
2879
|
"layer": "semantic",
|
|
2090
2880
|
"value": {
|
|
2091
2881
|
"kind": "scalar",
|
|
2092
|
-
"value": "0.
|
|
2882
|
+
"value": "-0.6px"
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
"dimension": {
|
|
2889
|
+
"context-menu": {
|
|
2890
|
+
"width": {
|
|
2891
|
+
"$type": "dimension",
|
|
2892
|
+
"$value": "258px",
|
|
2893
|
+
"$description": "Context action panel: source fixed width before viewport constraint.",
|
|
2894
|
+
"$extensions": {
|
|
2895
|
+
"graphicstandard": {
|
|
2896
|
+
"family": "dimension",
|
|
2897
|
+
"layer": "semantic",
|
|
2898
|
+
"value": {
|
|
2899
|
+
"kind": "scalar",
|
|
2900
|
+
"value": "258px"
|
|
2901
|
+
}
|
|
2093
2902
|
}
|
|
2094
2903
|
}
|
|
2095
2904
|
}
|
package/src/variables.css
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
/* Regenerate: bun --filter @tools/sync-tokens start */
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
+
--color-ab-test-label: #ffffff;
|
|
7
|
+
--color-ab-test-palette-0: #ea5656;
|
|
8
|
+
--color-ab-test-palette-1: #3b7ed6;
|
|
9
|
+
--color-ab-test-palette-2: #78d5ad;
|
|
10
|
+
--color-ab-test-palette-3: #ff6200;
|
|
11
|
+
--color-ab-test-palette-4: #6b8dcb;
|
|
12
|
+
--color-ab-test-palette-5: #f4bd45;
|
|
13
|
+
--color-ab-test-palette-6: #6ebbd7;
|
|
14
|
+
--color-ab-test-palette-7: #d8d1bb;
|
|
6
15
|
--color-accent-blue: #005ff9;
|
|
7
16
|
--color-accent-green-light: #b1fed4;
|
|
8
17
|
--color-accent-green-lighter: #96f6c2;
|
|
@@ -10,12 +19,28 @@
|
|
|
10
19
|
--color-accent-pink: #ff69b4;
|
|
11
20
|
--color-accent-strong: #4bcf9f;
|
|
12
21
|
--color-accent-yellow: #ffcc6a;
|
|
22
|
+
--color-action-compact-muted: #eceae1;
|
|
23
|
+
--color-action-soft: #f7f6f2;
|
|
24
|
+
--color-action-soft-border-hover: #aba89c;
|
|
25
|
+
--color-action-soft-hover: #eceae1;
|
|
26
|
+
--color-action-soft-pressed: #eceae1;
|
|
27
|
+
--color-action-solid: #0d0d0d;
|
|
28
|
+
--color-action-solid-fg: #ffffff;
|
|
29
|
+
--color-action-solid-hover: #242423;
|
|
30
|
+
--color-action-solid-pressed: #1d1d1b;
|
|
13
31
|
--color-border: #eceae1;
|
|
14
32
|
--color-border-muted: #ddd9d0;
|
|
15
33
|
--color-brand-green: #75e7b8;
|
|
16
34
|
--color-brand-primary: #0d0d0d;
|
|
17
35
|
--color-brand-secondary: #6eddb1;
|
|
18
|
-
--color-
|
|
36
|
+
--color-context-menu-badge-bg: #333437;
|
|
37
|
+
--color-context-menu-badge-fg: #c8c8ca;
|
|
38
|
+
--color-context-menu-bottom: #1f1f1f;
|
|
39
|
+
--color-context-menu-danger: #fee2e2;
|
|
40
|
+
--color-context-menu-fg: #ffffff;
|
|
41
|
+
--color-context-menu-hover: #2f2f2f;
|
|
42
|
+
--color-context-menu-top: #242424;
|
|
43
|
+
--color-danger: #d92323;
|
|
19
44
|
--color-danger-fg: #ffffff;
|
|
20
45
|
--color-danger-light: #fee2e2;
|
|
21
46
|
--color-fg: #0d0d0d;
|
|
@@ -25,6 +50,7 @@
|
|
|
25
50
|
--color-fg-subtle: #b3b3b3;
|
|
26
51
|
--color-fg-workflow-muted: #858585;
|
|
27
52
|
--color-modal-backdrop: #f7f6f2a8;
|
|
53
|
+
--color-modal-backdrop-fallback: #f7f6f2c2;
|
|
28
54
|
--color-neutral-300: #b3b3b3;
|
|
29
55
|
--color-neutral-600: #333333;
|
|
30
56
|
--color-ring: #0d0d0d;
|
|
@@ -35,10 +61,11 @@
|
|
|
35
61
|
--color-surface-inverted: #242423;
|
|
36
62
|
--color-surface-muted: #eceae1;
|
|
37
63
|
--color-surface-placeholder: #333333;
|
|
38
|
-
--control-height-mobile-cta: 99px;
|
|
39
64
|
--control-height-create-hub-full: 100vh;
|
|
40
65
|
--control-height-create-hub-partial: 40vh;
|
|
66
|
+
--control-height-mobile-cta: 99px;
|
|
41
67
|
--control-height-tall: 3.625rem;
|
|
68
|
+
--dimension-context-menu-width: 258px;
|
|
42
69
|
--effect-modal-backdrop-blur: 10px;
|
|
43
70
|
--font-mono: 'GT America Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
|
|
44
71
|
--font-sans: 'GT America', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
@@ -48,6 +75,8 @@
|
|
|
48
75
|
--font-size-compact: 0.8125rem;
|
|
49
76
|
--font-size-display: 1.75rem;
|
|
50
77
|
--font-size-display-large: 1.875rem;
|
|
78
|
+
--font-size-document-display: 3.5rem;
|
|
79
|
+
--font-size-document-lead: 1.375rem;
|
|
51
80
|
--font-size-heading1: 1.75rem;
|
|
52
81
|
--font-size-heading2: 1.375rem;
|
|
53
82
|
--font-size-heading3: 1.25rem;
|
|
@@ -64,6 +93,8 @@
|
|
|
64
93
|
--line-height-compact: 16px;
|
|
65
94
|
--line-height-display: 30px;
|
|
66
95
|
--line-height-display-large: 32px;
|
|
96
|
+
--line-height-document-display: 60px;
|
|
97
|
+
--line-height-document-lead: 32px;
|
|
67
98
|
--line-height-heading1: 30px;
|
|
68
99
|
--line-height-heading2: 24px;
|
|
69
100
|
--line-height-heading3: 22px;
|
|
@@ -71,12 +102,12 @@
|
|
|
71
102
|
--line-height-heading5: 20px;
|
|
72
103
|
--line-height-panel-heading: 20px;
|
|
73
104
|
--line-height-small: 18px;
|
|
74
|
-
--motion-modal-content-enter-delay: 280ms;
|
|
75
105
|
--motion-create-hub-backdrop-duration: 150ms;
|
|
76
106
|
--motion-create-hub-desktop-duration: 400ms;
|
|
77
|
-
--motion-create-hub-full-duration: 300ms;
|
|
78
107
|
--motion-create-hub-enter-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
108
|
+
--motion-create-hub-full-duration: 300ms;
|
|
79
109
|
--motion-create-hub-sheet-duration: 320ms;
|
|
110
|
+
--motion-modal-content-enter-delay: 280ms;
|
|
80
111
|
--motion-modal-content-enter-duration: 420ms;
|
|
81
112
|
--motion-modal-content-enter-stagger: 60ms;
|
|
82
113
|
--motion-modal-enter-duration: 520ms;
|
|
@@ -88,11 +119,15 @@
|
|
|
88
119
|
--motion-modal-panel-enter-delay: 140ms;
|
|
89
120
|
--motion-modal-panel-enter-duration: 460ms;
|
|
90
121
|
--radius-2xl: 1rem;
|
|
122
|
+
--radius-context-menu-item: 10px;
|
|
91
123
|
--radius-lg: 0.5rem;
|
|
92
124
|
--radius-md: 0.375rem;
|
|
93
125
|
--radius-panel: 1.1rem;
|
|
94
126
|
--radius-sm: 0.125rem;
|
|
95
127
|
--radius-xl: 0.75rem;
|
|
128
|
+
--shadow-action-compact-hover: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
|
|
129
|
+
--shadow-context-menu: 0px 12px 28px rgba(0, 0, 0, 0.22);
|
|
130
|
+
--shadow-mobile-cta: 0 -2px 8px #00000014;
|
|
96
131
|
--shadow-modal-surface: 0 24px 80px #0d0d0d2e, 0 2px 12px #0d0d0d14;
|
|
97
132
|
--space-lg: 1.5rem;
|
|
98
133
|
--space-md: 1rem;
|
|
@@ -100,24 +135,29 @@
|
|
|
100
135
|
--space-sm: 0.5rem;
|
|
101
136
|
--space-xl: 2rem;
|
|
102
137
|
--space-xs: 0.25rem;
|
|
103
|
-
--shadow-mobile-cta: 0 -2px 8px #00000014;
|
|
104
138
|
--tracking-display-large: -0.0666667em;
|
|
105
|
-
--tracking-normal: 0.
|
|
106
|
-
--tracking-tight:
|
|
107
|
-
--tracking-wide: 0.
|
|
108
|
-
--tracking-wider: 0.
|
|
139
|
+
--tracking-normal: -0.13px;
|
|
140
|
+
--tracking-tight: -0.2px;
|
|
141
|
+
--tracking-wide: -0.56px;
|
|
142
|
+
--tracking-wider: -0.6px;
|
|
109
143
|
}
|
|
110
144
|
|
|
111
145
|
[data-theme="dark"] {
|
|
146
|
+
--color-action-soft: #1d1d1b;
|
|
147
|
+
--color-action-soft-border-hover: #ffffff33;
|
|
148
|
+
--color-action-soft-hover: #ffffff0d;
|
|
149
|
+
--color-action-soft-pressed: #ffffff1a;
|
|
112
150
|
--color-border: #ffffff1a;
|
|
113
151
|
--color-border-muted: #ffffff33;
|
|
114
152
|
--color-brand-primary: #75e7b8;
|
|
115
153
|
--color-danger: #ef4444;
|
|
154
|
+
--color-danger-fg: #0d0d0d;
|
|
116
155
|
--color-danger-light: #ef444426;
|
|
117
156
|
--color-fg: #ffffff;
|
|
118
157
|
--color-fg-inverted: #0d0d0d;
|
|
119
158
|
--color-fg-muted: #aba89c;
|
|
120
159
|
--color-modal-backdrop: #0d0d0da8;
|
|
160
|
+
--color-modal-backdrop-fallback: #0d0d0dc2;
|
|
121
161
|
--color-ring: #75e7b8;
|
|
122
162
|
--color-surface: #242423;
|
|
123
163
|
--color-surface-card: #242423;
|