@atom63/styles 0.1.0-beta.7 → 0.1.0-beta.9
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 +6 -3
- package/generated/atom63.figma-sync.json +5506 -3844
- package/generated/atom63.tokens.json +7536 -4284
- package/package.json +6 -6
- package/src/compat/a63-from-shadcn.css +265 -1
- package/src/compat/shadcn.css +15 -1
- package/src/contracts/choice.css +1 -1
- package/src/contracts/choice.tokens.json +1 -1
- package/src/contracts/control.css +14 -8
- package/src/contracts/control.tokens.json +57 -8
- package/src/contracts/environment.css +134 -12
- package/src/contracts/environment.resolver.json +664 -23
- package/src/contracts/field.css +1 -1
- package/src/contracts/field.tokens.json +1 -1
- package/src/contracts/selection.css +2 -0
- package/src/contracts/selection.tokens.json +5 -0
- package/src/contracts/skeleton.css +7 -2
- package/src/contracts/skeleton.resolver.json +21 -30
- package/src/contracts/surface.css +4 -0
- package/src/contracts/surface.tokens.json +57 -0
- package/src/contracts/toggle.css +18 -3
- package/src/contracts/toggle.resolver.json +123 -0
- package/src/tailwind/roles.json +19 -2
- package/src/tailwind/theme.css +104 -2
- package/src/tailwind/utilities.css +17 -0
- package/src/themes/aqua.css +1 -0
- package/src/themes/aqua.resolver.json +6 -0
- package/src/themes/retro.css +1 -0
- package/src/themes/retro.resolver.json +6 -0
- package/src/themes/terminal.css +13 -0
- package/src/themes/terminal.resolver.json +62 -0
- package/src/tokens/brand-action.css +4 -0
- package/src/tokens/brand-action.resolver.json +18 -0
- package/src/tokens/contrast.browser.test.ts +92 -18
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/form-factor.browser.test.ts +129 -0
- package/src/tokens/foundation/primitives.css +0 -30
- package/src/tokens/foundation/primitives.tokens.json +0 -212
- package/src/tokens/foundation/radius.css +5 -0
- package/src/tokens/foundation/radius.tokens.json +8 -0
- package/src/tokens/foundation/typography.css +24 -0
- package/src/tokens/foundation/typography.native.css +12 -2
- package/src/tokens/foundation/typography.resolver.json +72 -0
- package/src/tokens/index.css +1 -0
- package/src/tokens/personalization-axes.browser.test.ts +13 -0
- package/src/tokens/semantics.css +120 -6
- package/src/tokens/semantics.resolver.json +301 -12
- package/src/tokens/surface.css +8 -0
- package/src/tokens/surface.resolver.json +49 -0
- package/src/tokens/type-roles.css +75 -0
- package/src/tokens/type-roles.resolver.json +366 -0
- package/src/contracts/toggle.tokens.json +0 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom63/styles",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"description": "CSS tokens, themes, contracts, and utilities for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
"tw-animate-css": "1.4.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@vitest/browser": "
|
|
110
|
-
"@vitest/browser-playwright": "
|
|
111
|
-
"eslint": "10.
|
|
112
|
-
"playwright": "1.
|
|
113
|
-
"vitest": "
|
|
109
|
+
"@vitest/browser": "5.1.1",
|
|
110
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
111
|
+
"eslint": "10.14.0",
|
|
112
|
+
"playwright": "1.65.0",
|
|
113
|
+
"vitest": "5.1.1",
|
|
114
114
|
"@atom63/eslint-config": "0.1.0"
|
|
115
115
|
},
|
|
116
116
|
"scripts": {
|
|
@@ -18,12 +18,15 @@
|
|
|
18
18
|
--a63-surface-panel: var(--card);
|
|
19
19
|
--a63-surface-overlay: var(--popover);
|
|
20
20
|
--a63-surface-muted: var(--muted);
|
|
21
|
+
--a63-surface-sidebar: var(--sidebar, var(--muted));
|
|
21
22
|
--a63-surface-control: var(--background);
|
|
22
23
|
--a63-surface-control-hover: var(--accent);
|
|
23
24
|
--a63-text-primary: var(--foreground);
|
|
24
25
|
--a63-text-secondary: var(--muted-foreground);
|
|
26
|
+
--a63-text-tertiary: var(--muted-foreground);
|
|
25
27
|
--a63-border-subtle: var(--border);
|
|
26
28
|
--a63-border-control: var(--input);
|
|
29
|
+
--a63-border-input: var(--input);
|
|
27
30
|
|
|
28
31
|
/* ── Action / status ─────────────────────────────────────────────────── */
|
|
29
32
|
--a63-action-primary: var(--primary);
|
|
@@ -40,9 +43,13 @@
|
|
|
40
43
|
--a63-status-success-foreground: white;
|
|
41
44
|
--a63-status-warning: var(--warning, oklch(0.75 0.15 80));
|
|
42
45
|
--a63-status-warning-foreground: white;
|
|
46
|
+
--a63-status-danger: var(--destructive);
|
|
47
|
+
--a63-status-danger-foreground: var(--destructive-foreground, white);
|
|
48
|
+
--a63-text-danger: var(--destructive);
|
|
43
49
|
|
|
44
50
|
--a63-scrim: color-mix(in oklch, black 40%, transparent);
|
|
45
|
-
/*
|
|
51
|
+
/* Shadow, media and on-media colors hold in every theme; same values as semantics.css. */
|
|
52
|
+
--a63-shadow-color: rgb(0 0 0);
|
|
46
53
|
--a63-media-stage: rgb(0 0 0);
|
|
47
54
|
--a63-media-scrim: rgb(0 0 0 / 0.7);
|
|
48
55
|
--a63-on-media-foreground: rgb(255 255 255);
|
|
@@ -125,6 +132,263 @@
|
|
|
125
132
|
--a63-brand-800: color-mix(in oklch, var(--primary) 60%, black);
|
|
126
133
|
--a63-brand-900: color-mix(in oklch, var(--primary) 46%, black);
|
|
127
134
|
--a63-brand-950: color-mix(in oklch, var(--primary) 34%, black);
|
|
135
|
+
|
|
136
|
+
/* ── Every other token the ui-react recipes read without a fallback ───── *
|
|
137
|
+
* recipes.test.ts fails when a recipe reads an --a63-* token this file does
|
|
138
|
+
* not define. Colors derive from shadcn variables, so they follow the
|
|
139
|
+
* host's light and dark mode; scales copy the foundation's default values. */
|
|
140
|
+
|
|
141
|
+
/* Text, surface and selection roles. */
|
|
142
|
+
--a63-text-accent: var(--primary);
|
|
143
|
+
--a63-surface-recessed: var(--muted);
|
|
144
|
+
--a63-selected-background: var(--a63-surface-muted);
|
|
145
|
+
--a63-selected-foreground: var(--a63-text-primary);
|
|
146
|
+
--a63-selected-accent-background: color-mix(in oklch, var(--primary) 12%, transparent);
|
|
147
|
+
--a63-selected-accent-foreground: var(--a63-text-accent);
|
|
148
|
+
--a63-selection-thumb: white;
|
|
149
|
+
--a63-alert-background: transparent;
|
|
150
|
+
--a63-choice-card-checked-border: color-mix(in oklch, var(--primary) 30%, transparent);
|
|
151
|
+
--a63-choice-card-checked-background: color-mix(in oklch, var(--primary) 5%, transparent);
|
|
152
|
+
--a63-control-outline-background: var(--background);
|
|
153
|
+
--a63-control-outline-hover-background: color-mix(in oklab, var(--accent) 50%, transparent);
|
|
154
|
+
--a63-control-outline-hover-border: var(--border);
|
|
155
|
+
--a63-skeleton-base: var(--a63-surface-muted);
|
|
156
|
+
--a63-skeleton-highlight: color-mix(in oklch, var(--background) 60%, transparent);
|
|
157
|
+
|
|
158
|
+
/* Disabled and subtle action / status roles. Subtle foregrounds mix the hue
|
|
159
|
+
toward --foreground, so they darken in light mode and lighten in dark. */
|
|
160
|
+
--a63-action-disabled-background: var(--a63-surface-muted);
|
|
161
|
+
--a63-action-disabled-border: var(--a63-border-subtle);
|
|
162
|
+
--a63-action-disabled-foreground: var(--muted-foreground);
|
|
163
|
+
--a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
|
|
164
|
+
--a63-action-danger-subtle-foreground: color-mix(
|
|
165
|
+
in oklch,
|
|
166
|
+
var(--a63-action-danger) 75%,
|
|
167
|
+
var(--foreground)
|
|
168
|
+
);
|
|
169
|
+
--a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
|
|
170
|
+
--a63-status-info-subtle-foreground: color-mix(
|
|
171
|
+
in oklch,
|
|
172
|
+
var(--a63-status-info) 70%,
|
|
173
|
+
var(--foreground)
|
|
174
|
+
);
|
|
175
|
+
--a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
|
|
176
|
+
--a63-status-success-subtle-foreground: color-mix(
|
|
177
|
+
in oklch,
|
|
178
|
+
var(--a63-status-success) 65%,
|
|
179
|
+
var(--foreground)
|
|
180
|
+
);
|
|
181
|
+
--a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
|
|
182
|
+
--a63-status-warning-subtle-foreground: color-mix(
|
|
183
|
+
in oklch,
|
|
184
|
+
var(--a63-status-warning) 60%,
|
|
185
|
+
var(--foreground)
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
/* Category palette: the foundation's 500 hues; -subtle washes and
|
|
189
|
+
-subtle-foreground text derive from them as above. */
|
|
190
|
+
--a63-category-red: oklch(0.637 0.237 25.331);
|
|
191
|
+
--a63-category-orange: oklch(0.705 0.213 47.604);
|
|
192
|
+
--a63-category-amber: rgb(243 159 0);
|
|
193
|
+
--a63-category-yellow: oklch(0.795 0.184 86.047);
|
|
194
|
+
--a63-category-lime: oklch(0.768 0.233 130.85);
|
|
195
|
+
--a63-category-green: oklch(0.723 0.219 149.579);
|
|
196
|
+
--a63-category-emerald: oklch(0.696 0.17 162.48);
|
|
197
|
+
--a63-category-teal: oklch(0.704 0.14 182.503);
|
|
198
|
+
--a63-category-cyan: oklch(0.715 0.143 215.221);
|
|
199
|
+
--a63-category-sky: oklch(0.685 0.169 237.323);
|
|
200
|
+
--a63-category-blue: oklch(0.623 0.214 259.815);
|
|
201
|
+
--a63-category-indigo: oklch(0.585 0.233 277.117);
|
|
202
|
+
--a63-category-violet: oklch(0.606 0.25 292.717);
|
|
203
|
+
--a63-category-purple: oklch(0.627 0.265 303.9);
|
|
204
|
+
--a63-category-fuchsia: oklch(0.667 0.295 322.15);
|
|
205
|
+
--a63-category-pink: oklch(0.656 0.241 354.308);
|
|
206
|
+
--a63-category-rose: oklch(0.645 0.246 16.439);
|
|
207
|
+
--a63-category-neutral: oklch(0.556 0 0);
|
|
208
|
+
--a63-category-red-subtle: color-mix(in oklab, var(--a63-category-red) 14%, transparent);
|
|
209
|
+
--a63-category-orange-subtle: color-mix(in oklab, var(--a63-category-orange) 14%, transparent);
|
|
210
|
+
--a63-category-amber-subtle: color-mix(in oklab, var(--a63-category-amber) 14%, transparent);
|
|
211
|
+
--a63-category-yellow-subtle: color-mix(in oklab, var(--a63-category-yellow) 14%, transparent);
|
|
212
|
+
--a63-category-lime-subtle: color-mix(in oklab, var(--a63-category-lime) 14%, transparent);
|
|
213
|
+
--a63-category-green-subtle: color-mix(in oklab, var(--a63-category-green) 14%, transparent);
|
|
214
|
+
--a63-category-emerald-subtle: color-mix(in oklab, var(--a63-category-emerald) 14%, transparent);
|
|
215
|
+
--a63-category-teal-subtle: color-mix(in oklab, var(--a63-category-teal) 14%, transparent);
|
|
216
|
+
--a63-category-cyan-subtle: color-mix(in oklab, var(--a63-category-cyan) 14%, transparent);
|
|
217
|
+
--a63-category-sky-subtle: color-mix(in oklab, var(--a63-category-sky) 14%, transparent);
|
|
218
|
+
--a63-category-blue-subtle: color-mix(in oklab, var(--a63-category-blue) 14%, transparent);
|
|
219
|
+
--a63-category-indigo-subtle: color-mix(in oklab, var(--a63-category-indigo) 14%, transparent);
|
|
220
|
+
--a63-category-violet-subtle: color-mix(in oklab, var(--a63-category-violet) 14%, transparent);
|
|
221
|
+
--a63-category-purple-subtle: color-mix(in oklab, var(--a63-category-purple) 14%, transparent);
|
|
222
|
+
--a63-category-fuchsia-subtle: color-mix(in oklab, var(--a63-category-fuchsia) 14%, transparent);
|
|
223
|
+
--a63-category-pink-subtle: color-mix(in oklab, var(--a63-category-pink) 14%, transparent);
|
|
224
|
+
--a63-category-rose-subtle: color-mix(in oklab, var(--a63-category-rose) 14%, transparent);
|
|
225
|
+
--a63-category-neutral-subtle: color-mix(in oklab, var(--a63-category-neutral) 14%, transparent);
|
|
226
|
+
--a63-category-red-subtle-foreground: color-mix(
|
|
227
|
+
in oklch,
|
|
228
|
+
var(--a63-category-red) 70%,
|
|
229
|
+
var(--foreground)
|
|
230
|
+
);
|
|
231
|
+
--a63-category-orange-subtle-foreground: color-mix(
|
|
232
|
+
in oklch,
|
|
233
|
+
var(--a63-category-orange) 60%,
|
|
234
|
+
var(--foreground)
|
|
235
|
+
);
|
|
236
|
+
--a63-category-amber-subtle-foreground: color-mix(
|
|
237
|
+
in oklch,
|
|
238
|
+
var(--a63-category-amber) 60%,
|
|
239
|
+
var(--foreground)
|
|
240
|
+
);
|
|
241
|
+
--a63-category-yellow-subtle-foreground: color-mix(
|
|
242
|
+
in oklch,
|
|
243
|
+
var(--a63-category-yellow) 55%,
|
|
244
|
+
var(--foreground)
|
|
245
|
+
);
|
|
246
|
+
--a63-category-lime-subtle-foreground: color-mix(
|
|
247
|
+
in oklch,
|
|
248
|
+
var(--a63-category-lime) 55%,
|
|
249
|
+
var(--foreground)
|
|
250
|
+
);
|
|
251
|
+
--a63-category-green-subtle-foreground: color-mix(
|
|
252
|
+
in oklch,
|
|
253
|
+
var(--a63-category-green) 60%,
|
|
254
|
+
var(--foreground)
|
|
255
|
+
);
|
|
256
|
+
--a63-category-emerald-subtle-foreground: color-mix(
|
|
257
|
+
in oklch,
|
|
258
|
+
var(--a63-category-emerald) 60%,
|
|
259
|
+
var(--foreground)
|
|
260
|
+
);
|
|
261
|
+
--a63-category-teal-subtle-foreground: color-mix(
|
|
262
|
+
in oklch,
|
|
263
|
+
var(--a63-category-teal) 60%,
|
|
264
|
+
var(--foreground)
|
|
265
|
+
);
|
|
266
|
+
--a63-category-cyan-subtle-foreground: color-mix(
|
|
267
|
+
in oklch,
|
|
268
|
+
var(--a63-category-cyan) 60%,
|
|
269
|
+
var(--foreground)
|
|
270
|
+
);
|
|
271
|
+
--a63-category-sky-subtle-foreground: color-mix(
|
|
272
|
+
in oklch,
|
|
273
|
+
var(--a63-category-sky) 65%,
|
|
274
|
+
var(--foreground)
|
|
275
|
+
);
|
|
276
|
+
--a63-category-blue-subtle-foreground: color-mix(
|
|
277
|
+
in oklch,
|
|
278
|
+
var(--a63-category-blue) 70%,
|
|
279
|
+
var(--foreground)
|
|
280
|
+
);
|
|
281
|
+
--a63-category-indigo-subtle-foreground: color-mix(
|
|
282
|
+
in oklch,
|
|
283
|
+
var(--a63-category-indigo) 70%,
|
|
284
|
+
var(--foreground)
|
|
285
|
+
);
|
|
286
|
+
--a63-category-violet-subtle-foreground: color-mix(
|
|
287
|
+
in oklch,
|
|
288
|
+
var(--a63-category-violet) 70%,
|
|
289
|
+
var(--foreground)
|
|
290
|
+
);
|
|
291
|
+
--a63-category-purple-subtle-foreground: color-mix(
|
|
292
|
+
in oklch,
|
|
293
|
+
var(--a63-category-purple) 70%,
|
|
294
|
+
var(--foreground)
|
|
295
|
+
);
|
|
296
|
+
--a63-category-fuchsia-subtle-foreground: color-mix(
|
|
297
|
+
in oklch,
|
|
298
|
+
var(--a63-category-fuchsia) 70%,
|
|
299
|
+
var(--foreground)
|
|
300
|
+
);
|
|
301
|
+
--a63-category-pink-subtle-foreground: color-mix(
|
|
302
|
+
in oklch,
|
|
303
|
+
var(--a63-category-pink) 70%,
|
|
304
|
+
var(--foreground)
|
|
305
|
+
);
|
|
306
|
+
--a63-category-rose-subtle-foreground: color-mix(
|
|
307
|
+
in oklch,
|
|
308
|
+
var(--a63-category-rose) 70%,
|
|
309
|
+
var(--foreground)
|
|
310
|
+
);
|
|
311
|
+
--a63-category-neutral-subtle-foreground: color-mix(
|
|
312
|
+
in oklch,
|
|
313
|
+
var(--a63-category-neutral) 60%,
|
|
314
|
+
var(--foreground)
|
|
315
|
+
);
|
|
316
|
+
|
|
317
|
+
/* Flat surface and overlay archetype: no gloss, texture or backdrop blur. */
|
|
318
|
+
--a63-surface-backdrop: none;
|
|
319
|
+
--a63-surface-gloss: none;
|
|
320
|
+
--a63-surface-texture-image: none;
|
|
321
|
+
--a63-surface-texture-blend: normal;
|
|
322
|
+
--a63-surface-border-style: solid;
|
|
323
|
+
--a63-surface-border-width: 1px;
|
|
324
|
+
--a63-surface-raised-shadow: var(--a63-overlay-shadow);
|
|
325
|
+
--a63-overlay-backdrop: none;
|
|
326
|
+
--a63-overlay-gloss: none;
|
|
327
|
+
--a63-overlay-texture-image: none;
|
|
328
|
+
--a63-overlay-texture-blend: normal;
|
|
329
|
+
--a63-overlay-border-style: solid;
|
|
330
|
+
--a63-overlay-border-width: 1px;
|
|
331
|
+
--a63-menu-highlight-gloss: none;
|
|
332
|
+
--a63-menu-highlight-shadow: none;
|
|
333
|
+
--a63-menu-disabled-opacity: 0.56;
|
|
334
|
+
--a63-trigger-open-shadow: 0 0 #0000;
|
|
335
|
+
--a63-trigger-focus-ring-width: var(--a63-control-focus-ring-width);
|
|
336
|
+
--a63-trigger-feedback-duration: var(--a63-control-feedback-duration);
|
|
337
|
+
--a63-trigger-feedback-ease: var(--a63-control-feedback-ease);
|
|
338
|
+
|
|
339
|
+
/* Control details. */
|
|
340
|
+
--a63-control-text-shadow: none;
|
|
341
|
+
--a63-control-shadow-tint: 0%;
|
|
342
|
+
--a63-control-press-transform: translateY(1px);
|
|
343
|
+
--a63-control-feedback-duration: var(--a63-motion-duration-fast);
|
|
344
|
+
--a63-control-feedback-ease: var(--a63-motion-ease-standard);
|
|
345
|
+
--a63-control-icon-size-xs: 0.75rem;
|
|
346
|
+
--a63-control-icon-size-sm: 0.875rem;
|
|
347
|
+
--a63-control-icon-size-md: 1rem;
|
|
348
|
+
--a63-control-icon-size-lg: 1.125rem;
|
|
349
|
+
--a63-control-icon-size-xl: 1.25rem;
|
|
350
|
+
--a63-control-icon-only-size-xs: 0.875rem;
|
|
351
|
+
--a63-control-icon-only-size-sm: 1rem;
|
|
352
|
+
--a63-control-icon-only-size-md: 1.125rem;
|
|
353
|
+
--a63-control-icon-only-size-lg: 1.25rem;
|
|
354
|
+
--a63-control-icon-only-size-xl: 1.375rem;
|
|
355
|
+
--a63-switch-thumb-size: 1rem;
|
|
356
|
+
--a63-row-padding-block-xs: var(--a63-space-2);
|
|
357
|
+
--a63-row-padding-block-sm: var(--a63-space-3);
|
|
358
|
+
--a63-row-padding-block-md: var(--a63-space-4);
|
|
359
|
+
--a63-inset-row-min-size: calc(var(--a63-space-unit) * 13);
|
|
360
|
+
|
|
361
|
+
/* Space half steps, type and motion. */
|
|
362
|
+
--a63-space-0_5: 0.125rem;
|
|
363
|
+
--a63-space-1_5: 0.375rem;
|
|
364
|
+
--a63-space-2_5: 0.625rem;
|
|
365
|
+
--a63-space-3_5: 0.875rem;
|
|
366
|
+
--a63-font-app: inherit;
|
|
367
|
+
--a63-type-display-font-size: 2.5rem;
|
|
368
|
+
--a63-type-display-line-height: 2.75rem;
|
|
369
|
+
--a63-type-display-font-weight: 600;
|
|
370
|
+
--a63-type-display-font-weight-strong: 700;
|
|
371
|
+
--a63-type-display-large-font-size: 3.5rem;
|
|
372
|
+
--a63-type-display-large-line-height: 3.75rem;
|
|
373
|
+
--a63-type-display-large-font-weight: 600;
|
|
374
|
+
--a63-type-display-large-font-weight-strong: 700;
|
|
375
|
+
--a63-motion-duration-fast: 150ms;
|
|
376
|
+
--a63-motion-duration-overlay: 450ms;
|
|
377
|
+
--a63-motion-duration-swipe-dismiss: 400ms;
|
|
378
|
+
--a63-motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
379
|
+
--a63-motion-ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
|
|
380
|
+
--a63-motion-ease-overlay: cubic-bezier(0.22, 1, 0.36, 1);
|
|
381
|
+
--a63-motion-ease-scrim: cubic-bezier(0.32, 0.72, 0, 1);
|
|
382
|
+
--a63-motion-skeleton-shimmer-duration: 1500ms;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@media (prefers-reduced-motion: reduce) {
|
|
386
|
+
:root {
|
|
387
|
+
--a63-motion-duration-fast: 0ms;
|
|
388
|
+
--a63-motion-duration-overlay: 0ms;
|
|
389
|
+
--a63-motion-duration-swipe-dismiss: 0ms;
|
|
390
|
+
--a63-motion-skeleton-shimmer-duration: 0ms;
|
|
391
|
+
}
|
|
128
392
|
}
|
|
129
393
|
|
|
130
394
|
@media (pointer: coarse) {
|
package/src/compat/shadcn.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
/* Borders and focus */
|
|
34
34
|
--border: var(--a63-border-subtle);
|
|
35
|
-
--input: var(--a63-border-
|
|
35
|
+
--input: var(--a63-border-input);
|
|
36
36
|
--ring: var(--a63-focus-ring);
|
|
37
37
|
|
|
38
38
|
/* Actions */
|
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
/* Selection */
|
|
63
63
|
--selected: var(--a63-selected-background);
|
|
64
64
|
--selected-foreground: var(--a63-selected-foreground);
|
|
65
|
+
--selected-accent: var(--a63-selected-accent-background);
|
|
66
|
+
--selected-accent-foreground: var(--a63-selected-accent-foreground);
|
|
65
67
|
|
|
66
68
|
/* Charts */
|
|
67
69
|
--chart-1: var(--a63-chart-1);
|
|
@@ -138,6 +140,18 @@
|
|
|
138
140
|
--category-stone-subtle: var(--a63-category-stone-subtle);
|
|
139
141
|
--category-stone-subtle-foreground: var(--a63-category-stone-subtle-foreground);
|
|
140
142
|
|
|
143
|
+
/* Media */
|
|
144
|
+
--media-stage: var(--a63-media-stage);
|
|
145
|
+
--media-surface: var(--a63-media-surface);
|
|
146
|
+
--media-scrim: var(--a63-media-scrim);
|
|
147
|
+
--on-media-foreground: var(--a63-on-media-foreground);
|
|
148
|
+
--on-media-surface: var(--a63-on-media-surface);
|
|
149
|
+
--on-media-surface-strong: var(--a63-on-media-surface-strong);
|
|
150
|
+
--on-media-border: var(--a63-on-media-border);
|
|
151
|
+
--on-media-ring: var(--a63-on-media-ring);
|
|
152
|
+
--on-media-veil: var(--a63-on-media-veil);
|
|
153
|
+
--on-media-veil-strong: var(--a63-on-media-veil-strong);
|
|
154
|
+
|
|
141
155
|
/* Sidebar */
|
|
142
156
|
--sidebar: var(--a63-surface-sidebar);
|
|
143
157
|
--sidebar-foreground: var(--a63-text-primary);
|
package/src/contracts/choice.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Axis-dependent colour hooks are resolved at the recipe use-site:
|
|
12
12
|
* --a63-choice-accent -> var(--a63-action-primary)
|
|
13
|
-
* --a63-choice-border -> var(--a63-border-
|
|
13
|
+
* --a63-choice-border -> var(--a63-border-input)
|
|
14
14
|
* --a63-choice-track-off -> var(--a63-surface-control)
|
|
15
15
|
* --a63-choice-focus-ring -> var(--a63-focus-ring)
|
|
16
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$description": "Choice contract — form controls that expose checked/selected value state.\n\nCovers Checkbox, Radio, and Switch. This is the visual home for indicators,\ndots, thumbs, and on/off tracks. It aliases the older `selection` namespace so\ncurrent recipes keep working while new recipes can use the clearer name.\n\nAxis-dependent colour hooks are resolved at the recipe use-site:\n --a63-choice-accent -> var(--a63-action-primary)\n --a63-choice-border -> var(--a63-border-
|
|
2
|
+
"$description": "Choice contract — form controls that expose checked/selected value state.\n\nCovers Checkbox, Radio, and Switch. This is the visual home for indicators,\ndots, thumbs, and on/off tracks. It aliases the older `selection` namespace so\ncurrent recipes keep working while new recipes can use the clearer name.\n\nAxis-dependent colour hooks are resolved at the recipe use-site:\n --a63-choice-accent -> var(--a63-action-primary)\n --a63-choice-border -> var(--a63-border-input)\n --a63-choice-track-off -> var(--a63-surface-control)\n --a63-choice-focus-ring -> var(--a63-focus-ring)\n\nMaterial hooks are axis-independent defaults. Themes override them to express\nglass, bevel, or phosphor treatment without making choice controls inherit the\nfull Button chrome. Switch maps the box shadows to its track and the indicator\ngloss to its checked fill; Checkbox and Radio use the same hooks on their\nboxes and indicators.",
|
|
3
3
|
"a63": {
|
|
4
4
|
"choice": {
|
|
5
5
|
"thumb": {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
/* Height ramp (xs..xl) — web defaults (desktop density: 24/28/32/36/40, to
|
|
16
16
|
match production @atom63/ui). iOS overrides in environment.css. */
|
|
17
|
-
--a63-control-height-xs: calc(var(--a63-space-unit) * 6);
|
|
18
|
-
--a63-control-height-sm: calc(var(--a63-space-unit) * 7);
|
|
19
|
-
--a63-control-height-md: calc(var(--a63-space-unit) * 8);
|
|
20
|
-
--a63-control-height-lg: calc(var(--a63-space-unit) * 9);
|
|
21
|
-
--a63-control-height-xl: calc(var(--a63-space-unit) * 10);
|
|
17
|
+
--a63-control-height-xs: round(nearest, calc(var(--a63-space-unit) * 6), 1px);
|
|
18
|
+
--a63-control-height-sm: round(nearest, calc(var(--a63-space-unit) * 7), 1px);
|
|
19
|
+
--a63-control-height-md: round(nearest, calc(var(--a63-space-unit) * 8), 1px);
|
|
20
|
+
--a63-control-height-lg: round(nearest, calc(var(--a63-space-unit) * 9), 1px);
|
|
21
|
+
--a63-control-height-xl: round(nearest, calc(var(--a63-space-unit) * 10), 1px);
|
|
22
22
|
/* Recipes resolve rendered size at their own use-site:
|
|
23
23
|
max(calc(height * density), size-appropriate min-SIZE)
|
|
24
24
|
Do not cache that formula in a :root custom property. Input, density, and
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
--a63-control-icon-size-md: 1rem;
|
|
60
60
|
--a63-control-icon-size-lg: 1.125rem;
|
|
61
61
|
--a63-control-icon-size-xl: 1.25rem;
|
|
62
|
+
/* The glyph of an icon-only control (24/14, 28/16, 32/18, 36/20, 40/22): about 0.56 of the box, where an icon beside a label keeps the size ramp above. The iOS design language and the phone form factor already draw that ramp at these values on their taller boxes, so they need no override. */
|
|
63
|
+
--a63-control-icon-only-size-xs: 0.875rem;
|
|
64
|
+
--a63-control-icon-only-size-sm: 1rem;
|
|
65
|
+
--a63-control-icon-only-size-md: 1.125rem;
|
|
66
|
+
--a63-control-icon-only-size-lg: 1.25rem;
|
|
67
|
+
--a63-control-icon-only-size-xl: 1.375rem;
|
|
62
68
|
--a63-control-gap: var(--a63-space-2);
|
|
63
69
|
--a63-control-radius: var(--a63-radius-control);
|
|
64
70
|
--a63-control-border-width: 1px;
|
|
@@ -87,7 +93,7 @@
|
|
|
87
93
|
than in the recipe
|
|
88
94
|
because the design-language axis has to retune it (contracts/environment.css)
|
|
89
95
|
and axes own tokens; recipes only read them. */
|
|
90
|
-
--a63-row-padding-block-xs: var(--a63-space-2);
|
|
91
|
-
--a63-row-padding-block-sm: var(--a63-space-3);
|
|
92
|
-
--a63-row-padding-block-md: var(--a63-space-4);
|
|
96
|
+
--a63-row-padding-block-xs: round(nearest, var(--a63-space-2), 1px);
|
|
97
|
+
--a63-row-padding-block-sm: round(nearest, var(--a63-space-3), 1px);
|
|
98
|
+
--a63-row-padding-block-md: round(nearest, var(--a63-space-4), 1px);
|
|
93
99
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"$type": "dimension",
|
|
8
8
|
"$value": "{a63.space.unit}",
|
|
9
9
|
"$extensions": {
|
|
10
|
-
"io.atom63.derive": "calc({a63.space.unit} * 6)"
|
|
10
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 6), 1px)"
|
|
11
11
|
},
|
|
12
12
|
"$description": "Height ramp (xs..xl) — web defaults (desktop density: 24/28/32/36/40, to\n match production @atom63/ui). iOS overrides in environment.css."
|
|
13
13
|
},
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"$type": "dimension",
|
|
16
16
|
"$value": "{a63.space.unit}",
|
|
17
17
|
"$extensions": {
|
|
18
|
-
"io.atom63.derive": "calc({a63.space.unit} * 7)"
|
|
18
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 7), 1px)"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"md": {
|
|
22
22
|
"$type": "dimension",
|
|
23
23
|
"$value": "{a63.space.unit}",
|
|
24
24
|
"$extensions": {
|
|
25
|
-
"io.atom63.derive": "calc({a63.space.unit} * 8)"
|
|
25
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 8), 1px)"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"lg": {
|
|
29
29
|
"$type": "dimension",
|
|
30
30
|
"$value": "{a63.space.unit}",
|
|
31
31
|
"$extensions": {
|
|
32
|
-
"io.atom63.derive": "calc({a63.space.unit} * 9)"
|
|
32
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 9), 1px)"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"xl": {
|
|
36
36
|
"$type": "dimension",
|
|
37
37
|
"$value": "{a63.space.unit}",
|
|
38
38
|
"$extensions": {
|
|
39
|
-
"io.atom63.derive": "calc({a63.space.unit} * 10)"
|
|
39
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 10), 1px)"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
},
|
|
@@ -145,6 +145,46 @@
|
|
|
145
145
|
"unit": "rem"
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
+
},
|
|
149
|
+
"only": {
|
|
150
|
+
"size": {
|
|
151
|
+
"xs": {
|
|
152
|
+
"$type": "dimension",
|
|
153
|
+
"$value": {
|
|
154
|
+
"value": 0.875,
|
|
155
|
+
"unit": "rem"
|
|
156
|
+
},
|
|
157
|
+
"$description": "The glyph of an icon-only control (24/14, 28/16, 32/18, 36/20, 40/22): about 0.56 of the box, where an icon beside a label keeps the size ramp above. The iOS design language and the phone form factor already draw that ramp at these values on their taller boxes, so they need no override."
|
|
158
|
+
},
|
|
159
|
+
"sm": {
|
|
160
|
+
"$type": "dimension",
|
|
161
|
+
"$value": {
|
|
162
|
+
"value": 1,
|
|
163
|
+
"unit": "rem"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"md": {
|
|
167
|
+
"$type": "dimension",
|
|
168
|
+
"$value": {
|
|
169
|
+
"value": 1.125,
|
|
170
|
+
"unit": "rem"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"lg": {
|
|
174
|
+
"$type": "dimension",
|
|
175
|
+
"$value": {
|
|
176
|
+
"value": 1.25,
|
|
177
|
+
"unit": "rem"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"xl": {
|
|
181
|
+
"$type": "dimension",
|
|
182
|
+
"$value": {
|
|
183
|
+
"value": 1.375,
|
|
184
|
+
"unit": "rem"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
148
188
|
}
|
|
149
189
|
},
|
|
150
190
|
"gap": {
|
|
@@ -223,15 +263,24 @@
|
|
|
223
263
|
"xs": {
|
|
224
264
|
"$type": "dimension",
|
|
225
265
|
"$value": "{a63.space.2}",
|
|
226
|
-
"$description": "Row block padding. Rows (Item today; Menu/Command rows are the intended\n next tenants) take their height from content + this padding, floored by the\n control ramp, so a single-line row lands on ~44pt and a two-line row on\n ~59pt. Those targets come from our own measurement of shipping iOS apps\n (docs/design-system/web-ios-token-parity.md) — Apple publishes no iOS row\n height, so do not cite UIKit cell metrics for them. It lives here rather\n than in the recipe\n because the design-language axis has to retune it (contracts/environment.css)\n and axes own tokens; recipes only read them."
|
|
266
|
+
"$description": "Row block padding. Rows (Item today; Menu/Command rows are the intended\n next tenants) take their height from content + this padding, floored by the\n control ramp, so a single-line row lands on ~44pt and a two-line row on\n ~59pt. Those targets come from our own measurement of shipping iOS apps\n (docs/design-system/web-ios-token-parity.md) — Apple publishes no iOS row\n height, so do not cite UIKit cell metrics for them. It lives here rather\n than in the recipe\n because the design-language axis has to retune it (contracts/environment.css)\n and axes own tokens; recipes only read them.",
|
|
267
|
+
"$extensions": {
|
|
268
|
+
"io.atom63.derive": "round(nearest, {a63.space.2}, 1px)"
|
|
269
|
+
}
|
|
227
270
|
},
|
|
228
271
|
"sm": {
|
|
229
272
|
"$type": "dimension",
|
|
230
|
-
"$value": "{a63.space.3}"
|
|
273
|
+
"$value": "{a63.space.3}",
|
|
274
|
+
"$extensions": {
|
|
275
|
+
"io.atom63.derive": "round(nearest, {a63.space.3}, 1px)"
|
|
276
|
+
}
|
|
231
277
|
},
|
|
232
278
|
"md": {
|
|
233
279
|
"$type": "dimension",
|
|
234
|
-
"$value": "{a63.space.4}"
|
|
280
|
+
"$value": "{a63.space.4}",
|
|
281
|
+
"$extensions": {
|
|
282
|
+
"io.atom63.derive": "round(nearest, {a63.space.4}, 1px)"
|
|
283
|
+
}
|
|
235
284
|
}
|
|
236
285
|
}
|
|
237
286
|
}
|