@atom63/styles 0.1.0-beta.4 → 0.1.0-beta.6
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 +14 -8
- package/generated/atom63.figma-sync.json +3764 -1109
- package/generated/atom63.tokens.json +3811 -831
- package/package.json +14 -7
- package/src/compat/a63-from-shadcn.css +10 -0
- package/src/contracts/action.css +4 -3
- package/src/contracts/action.native.css +11 -0
- package/src/contracts/action.tokens.json +66 -0
- package/src/contracts/badge.css +28 -19
- package/src/contracts/badge.resolver.json +366 -0
- package/src/contracts/choice.css +4 -1
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +43 -52
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +245 -0
- package/src/contracts/environment.css +45 -49
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +569 -0
- package/src/contracts/field.css +3 -1
- package/src/contracts/field.tokens.json +40 -0
- package/src/contracts/marker.css +6 -4
- package/src/contracts/marker.tokens.json +15 -0
- package/src/contracts/menu.css +25 -61
- package/src/contracts/menu.native.css +10 -0
- package/src/contracts/menu.resolver.json +122 -0
- package/src/contracts/overlay.css +11 -13
- package/src/contracts/overlay.native.css +13 -0
- package/src/contracts/overlay.tokens.json +103 -0
- package/src/contracts/segment.css +22 -68
- package/src/contracts/segment.tokens.json +19 -0
- package/src/contracts/selection.css +3 -1
- package/src/contracts/selection.tokens.json +37 -0
- package/src/contracts/skeleton.css +3 -0
- package/src/contracts/skeleton.resolver.json +66 -0
- package/src/contracts/surface.css +13 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +97 -0
- package/src/contracts/toggle.css +3 -1
- package/src/contracts/toggle.tokens.json +49 -0
- package/src/contracts/track.css +3 -1
- package/src/contracts/track.tokens.json +39 -0
- package/src/contracts/trigger.css +5 -2
- package/src/contracts/trigger.native.css +9 -0
- package/src/contracts/trigger.tokens.json +58 -0
- package/src/contracts/widget.css +41 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1104 -0
- package/src/tailwind/theme.css +0 -2
- package/src/themes/aqua.css +24 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1292 -0
- package/src/themes/modern.css +10 -14
- package/src/themes/modern.native.css +16 -0
- package/src/themes/modern.resolver.json +350 -0
- package/src/themes/retro.css +21 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +788 -0
- package/src/themes/terminal.css +34 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +517 -0
- package/src/tokens/brand-action.css +50 -0
- package/src/tokens/brand-action.resolver.json +118 -0
- package/src/tokens/brand-ramp.css +108 -0
- package/src/tokens/brand-ramp.resolver.json +418 -0
- package/src/tokens/brand.css +6 -146
- package/src/tokens/color-mix-space.browser.test.ts +79 -0
- package/src/tokens/contrast.browser.test.ts +47 -3
- package/src/tokens/figma-parity.browser.test.ts +257 -0
- package/src/tokens/font.css +6 -0
- package/src/tokens/font.resolver.json +107 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +11 -5
- package/src/tokens/foundation/fonts.tokens.json +45 -0
- package/src/tokens/foundation/motion.css +3 -0
- package/src/tokens/foundation/motion.tokens.json +53 -0
- package/src/tokens/foundation/palette.css +3 -0
- package/src/tokens/foundation/palette.tokens.json +1743 -0
- package/src/tokens/foundation/primitives.css +20 -13
- package/src/tokens/foundation/primitives.tokens.json +3470 -0
- package/src/tokens/foundation/radius.css +6 -9
- package/src/tokens/foundation/radius.tokens.json +100 -0
- package/src/tokens/foundation/typography.css +25 -12
- package/src/tokens/foundation/typography.native.css +11 -0
- package/src/tokens/foundation/typography.resolver.json +936 -0
- package/src/tokens/foundation.css +0 -1
- package/src/tokens/motion.css +3 -1
- package/src/tokens/motion.resolver.json +135 -0
- package/src/tokens/native-values.json +38 -0
- package/src/tokens/personalization-axes.browser.test.ts +5 -3
- package/src/tokens/radius.css +12 -8
- package/src/tokens/radius.resolver.json +138 -0
- package/src/tokens/semantics.css +62 -34
- package/src/tokens/semantics.resolver.json +402 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/surface.css +5 -19
- package/src/tokens/surface.resolver.json +657 -0
- package/src/tokens/swift-parity.browser.test.ts +137 -0
- package/src/tokens/type-scale.css +6 -0
- package/src/tokens/type-scale.resolver.json +67 -0
- package/generated/atom63.figma-tokens.json +0 -21661
- package/src/tokens/foundation/aliases.css +0 -28
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.6",
|
|
4
4
|
"description": "CSS tokens, themes, contracts, and utilities for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -66,12 +66,15 @@
|
|
|
66
66
|
"./tokens": "./src/tokens/index.css",
|
|
67
67
|
"./tokens/brand": "./src/tokens/brand.css",
|
|
68
68
|
"./tokens/foundation": "./src/tokens/foundation.css",
|
|
69
|
-
"./tokens/foundation/aliases": "./src/tokens/foundation/aliases.css",
|
|
70
69
|
"./tokens/foundation/effects": "./src/tokens/foundation/effects.css",
|
|
71
70
|
"./tokens/foundation/fonts": "./src/tokens/foundation/fonts.css",
|
|
71
|
+
"./tokens/foundation/fonts.tokens.json": "./src/tokens/foundation/fonts.tokens.json",
|
|
72
72
|
"./tokens/foundation/motion": "./src/tokens/foundation/motion.css",
|
|
73
|
+
"./tokens/foundation/motion.tokens.json": "./src/tokens/foundation/motion.tokens.json",
|
|
73
74
|
"./tokens/foundation/palette": "./src/tokens/foundation/palette.css",
|
|
75
|
+
"./tokens/foundation/palette.tokens.json": "./src/tokens/foundation/palette.tokens.json",
|
|
74
76
|
"./tokens/foundation/primitives": "./src/tokens/foundation/primitives.css",
|
|
77
|
+
"./tokens/foundation/primitives.tokens.json": "./src/tokens/foundation/primitives.tokens.json",
|
|
75
78
|
"./tokens/foundation/radius": "./src/tokens/foundation/radius.css",
|
|
76
79
|
"./tokens/foundation/typography": "./src/tokens/foundation/typography.css",
|
|
77
80
|
"./tokens/motion": "./src/tokens/motion.css",
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
"./tokens/semantics": "./src/tokens/semantics.css",
|
|
80
83
|
"./tokens/space": "./src/tokens/space.css",
|
|
81
84
|
"./tokens/surface": "./src/tokens/surface.css",
|
|
85
|
+
"./tokens/surface.resolver.json": "./src/tokens/surface.resolver.json",
|
|
82
86
|
"./utils": "./src/utils/index.css",
|
|
83
87
|
"./utils/code-highlighting": "./src/utils/code-highlighting.css",
|
|
84
88
|
"./utils/debug": "./src/utils/debug.css",
|
|
@@ -92,6 +96,7 @@
|
|
|
92
96
|
},
|
|
93
97
|
"files": [
|
|
94
98
|
"generated",
|
|
99
|
+
"!generated/atom63.computed-values.json",
|
|
95
100
|
"src"
|
|
96
101
|
],
|
|
97
102
|
"sideEffects": [
|
|
@@ -101,21 +106,23 @@
|
|
|
101
106
|
"tw-animate-css": "1.4.0"
|
|
102
107
|
},
|
|
103
108
|
"devDependencies": {
|
|
104
|
-
"@vitest/browser": "4.1.
|
|
105
|
-
"@vitest/browser-playwright": "4.1.
|
|
109
|
+
"@vitest/browser": "4.1.11",
|
|
110
|
+
"@vitest/browser-playwright": "4.1.11",
|
|
106
111
|
"eslint": "10.7.0",
|
|
107
112
|
"playwright": "1.61.1",
|
|
108
|
-
"vitest": "4.1.
|
|
113
|
+
"vitest": "4.1.11",
|
|
109
114
|
"@atom63/eslint-config": "0.1.0"
|
|
110
115
|
},
|
|
111
116
|
"scripts": {
|
|
112
|
-
"generate:tokens": "node scripts/generate-token-manifest.mjs && node scripts/generate-figma-sync.mjs && node scripts/generate-z-layers.mjs",
|
|
117
|
+
"generate:tokens": "node scripts/build-css-from-dtcg.mjs && node scripts/generate-token-manifest.mjs && node scripts/generate-figma-sync.mjs && node scripts/generate-z-layers.mjs",
|
|
113
118
|
"check:tokens": "node scripts/check-token-manifest.mjs",
|
|
114
119
|
"lint": "eslint . --cache --max-warnings 0",
|
|
115
120
|
"test": "vitest run",
|
|
116
121
|
"generate:figma": "node scripts/generate-figma-sync.mjs",
|
|
117
122
|
"check:figma": "node scripts/generate-figma-sync.mjs --check",
|
|
118
123
|
"generate:z-layers": "node scripts/generate-z-layers.mjs",
|
|
119
|
-
"check:z-layers": "node scripts/generate-z-layers.mjs --check"
|
|
124
|
+
"check:z-layers": "node scripts/generate-z-layers.mjs --check",
|
|
125
|
+
"check:dtcg": "node scripts/build-css-from-dtcg.mjs --check",
|
|
126
|
+
"tokens:apply": "node scripts/apply-token-patch.mjs"
|
|
120
127
|
}
|
|
121
128
|
}
|
|
@@ -42,6 +42,16 @@
|
|
|
42
42
|
--a63-status-warning-foreground: white;
|
|
43
43
|
|
|
44
44
|
--a63-scrim: color-mix(in oklch, black 40%, transparent);
|
|
45
|
+
/* Media and on-media colors hold in every theme; same values as semantics.css. */
|
|
46
|
+
--a63-media-stage: rgb(0 0 0);
|
|
47
|
+
--a63-media-scrim: rgb(0 0 0 / 0.7);
|
|
48
|
+
--a63-on-media-foreground: rgb(255 255 255);
|
|
49
|
+
--a63-on-media-surface: rgb(0 0 0 / 0.6);
|
|
50
|
+
--a63-on-media-surface-strong: rgb(0 0 0 / 0.7);
|
|
51
|
+
--a63-on-media-border: rgb(255 255 255 / 0.2);
|
|
52
|
+
--a63-on-media-ring: rgb(255 255 255 / 0.9);
|
|
53
|
+
--a63-on-media-veil: rgb(0 0 0 / 0.1);
|
|
54
|
+
--a63-on-media-veil-strong: rgb(0 0 0 / 0.2);
|
|
45
55
|
--a63-focus-ring: var(--ring);
|
|
46
56
|
|
|
47
57
|
/* ── Tactile archetype tokens → FLAT (shadcn has no bevel/gloss system) ── */
|
package/src/contracts/action.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/action.tokens.json by scripts/build-css-from-dtcg.mjs. Do not edit;
|
|
3
|
+
* change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
|
|
4
|
+
*
|
|
2
5
|
* Action contract — momentary controls that perform an action now.
|
|
3
6
|
*
|
|
4
7
|
* Covers Button, IconButton, SplitButton, and ButtonGroup. Action controls share
|
|
@@ -13,14 +16,12 @@
|
|
|
13
16
|
* --a63-action-primary-background -> var(--a63-action-primary)
|
|
14
17
|
* --a63-action-danger-background -> var(--a63-action-danger)
|
|
15
18
|
*/
|
|
19
|
+
@import './action.native.css';
|
|
16
20
|
|
|
17
21
|
:root {
|
|
18
22
|
--a63-action-control-border-width: var(--a63-control-border-width);
|
|
19
23
|
--a63-action-control-focus-ring-width: var(--a63-control-focus-ring-width);
|
|
20
24
|
--a63-action-control-gap: var(--a63-control-gap);
|
|
21
|
-
--a63-action-control-gloss: var(--a63-control-gloss);
|
|
22
|
-
--a63-action-control-highlight: var(--a63-control-highlight);
|
|
23
|
-
--a63-action-control-press-transform: var(--a63-control-press-transform);
|
|
24
25
|
--a63-action-control-radius: var(--a63-control-radius);
|
|
25
26
|
--a63-action-control-shadow: var(--a63-control-shadow);
|
|
26
27
|
--a63-action-control-shadow-active: var(--a63-control-shadow-active);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of the action contract: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from action.tokens.json. Each declaration here is listed
|
|
4
|
+
* in native-values.json; see docs/design-system/token-single-source.md.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--a63-action-control-gloss: var(--a63-control-gloss);
|
|
9
|
+
--a63-action-control-highlight: var(--a63-control-highlight);
|
|
10
|
+
--a63-action-control-press-transform: var(--a63-control-press-transform);
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Action contract — momentary controls that perform an action now.\n\nCovers Button, IconButton, SplitButton, and ButtonGroup. Action controls share\nthe physical CONTROL substrate (height, padding, focus ring, press feedback),\nbut get their own namespace so momentary \"pressed\" styling never has to stand\nin for persistent selected/on styling (Toggle/Segment).\n\nAxis-dependent colour hooks are intentionally not declared at :root. Recipes\nshould consume them at the use-site with live semantic fallbacks, e.g.\n --a63-action-control-background -> var(--a63-action-neutral)\n --a63-action-control-foreground -> var(--a63-action-neutral-foreground)\n --a63-action-primary-background -> var(--a63-action-primary)\n --a63-action-danger-background -> var(--a63-action-danger)",
|
|
3
|
+
"a63": {
|
|
4
|
+
"action": {
|
|
5
|
+
"control": {
|
|
6
|
+
"border": {
|
|
7
|
+
"width": {
|
|
8
|
+
"$type": "dimension",
|
|
9
|
+
"$value": "{a63.control.border.width}"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"focus": {
|
|
13
|
+
"ring": {
|
|
14
|
+
"width": {
|
|
15
|
+
"$type": "dimension",
|
|
16
|
+
"$value": "{a63.control.focus.ring.width}"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"gap": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{a63.control.gap}"
|
|
23
|
+
},
|
|
24
|
+
"radius": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"$value": "{a63.control.radius}"
|
|
27
|
+
},
|
|
28
|
+
"shadow": {
|
|
29
|
+
"$root": {
|
|
30
|
+
"$type": "shadow",
|
|
31
|
+
"$value": "{a63.control.shadow}"
|
|
32
|
+
},
|
|
33
|
+
"active": {
|
|
34
|
+
"$type": "shadow",
|
|
35
|
+
"$value": "{a63.control.shadow.active}"
|
|
36
|
+
},
|
|
37
|
+
"flat": {
|
|
38
|
+
"$type": "shadow",
|
|
39
|
+
"$value": "{a63.control.shadow.flat}"
|
|
40
|
+
},
|
|
41
|
+
"tint": {
|
|
42
|
+
"$type": "shadow",
|
|
43
|
+
"$value": "{a63.control.shadow.tint}"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"text": {
|
|
47
|
+
"shadow": {
|
|
48
|
+
"$type": "shadow",
|
|
49
|
+
"$value": "{a63.control.text.shadow}"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"disabled": {
|
|
54
|
+
"opacity": {
|
|
55
|
+
"$type": "number",
|
|
56
|
+
"$value": 0.56
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$extensions": {
|
|
62
|
+
"io.atom63.css": {
|
|
63
|
+
"imports": ["./action.native.css"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/src/contracts/badge.css
CHANGED
|
@@ -1,49 +1,55 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/badge.resolver.json by scripts/build-css-from-dtcg.mjs. Do not edit;
|
|
3
|
+
* change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
|
|
4
|
+
*
|
|
2
5
|
* Badge palette contract — category/tag hues owned by @atom63/styles.
|
|
3
6
|
*
|
|
4
7
|
* Recipes read --a63-badge-*-accent / --a63-badge-*-foreground only. Accent
|
|
5
8
|
* references foundation primitives; foreground flips for dark mode contrast.
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
10
|
:root,
|
|
9
11
|
.light,
|
|
10
12
|
[data-a63-mode='light'] {
|
|
11
13
|
--a63-badge-red-accent: var(--color-red-500);
|
|
12
|
-
--a63-badge-red-foreground: var(--color-red-
|
|
14
|
+
--a63-badge-red-foreground: var(--color-red-700);
|
|
13
15
|
--a63-badge-orange-accent: var(--color-orange-500);
|
|
14
|
-
--a63-badge-orange-foreground: var(--color-orange-
|
|
16
|
+
--a63-badge-orange-foreground: var(--color-orange-800);
|
|
15
17
|
--a63-badge-amber-accent: var(--color-amber-500);
|
|
16
|
-
--a63-badge-amber-foreground: var(--color-amber-
|
|
18
|
+
--a63-badge-amber-foreground: var(--color-amber-800);
|
|
17
19
|
--a63-badge-yellow-accent: var(--color-yellow-500);
|
|
18
|
-
--a63-badge-yellow-foreground: var(--color-yellow-
|
|
20
|
+
--a63-badge-yellow-foreground: var(--color-yellow-800);
|
|
19
21
|
--a63-badge-lime-accent: var(--color-lime-500);
|
|
20
|
-
--a63-badge-lime-foreground: var(--color-lime-
|
|
22
|
+
--a63-badge-lime-foreground: var(--color-lime-800);
|
|
21
23
|
--a63-badge-green-accent: var(--color-green-500);
|
|
22
|
-
--a63-badge-green-foreground: var(--color-green-
|
|
24
|
+
--a63-badge-green-foreground: var(--color-green-800);
|
|
23
25
|
--a63-badge-emerald-accent: var(--color-emerald-500);
|
|
24
|
-
--a63-badge-emerald-foreground: var(--color-emerald-
|
|
26
|
+
--a63-badge-emerald-foreground: var(--color-emerald-800);
|
|
25
27
|
--a63-badge-teal-accent: var(--color-teal-500);
|
|
26
|
-
--a63-badge-teal-foreground: var(--color-teal-
|
|
28
|
+
--a63-badge-teal-foreground: var(--color-teal-800);
|
|
27
29
|
--a63-badge-cyan-accent: var(--color-cyan-500);
|
|
28
|
-
--a63-badge-cyan-foreground: var(--color-cyan-
|
|
30
|
+
--a63-badge-cyan-foreground: var(--color-cyan-800);
|
|
29
31
|
--a63-badge-sky-accent: var(--color-sky-500);
|
|
30
|
-
--a63-badge-sky-foreground: var(--color-sky-
|
|
32
|
+
--a63-badge-sky-foreground: var(--color-sky-700);
|
|
31
33
|
--a63-badge-blue-accent: var(--color-blue-500);
|
|
32
|
-
--a63-badge-blue-foreground: var(--color-blue-
|
|
34
|
+
--a63-badge-blue-foreground: var(--color-blue-700);
|
|
33
35
|
--a63-badge-indigo-accent: var(--color-indigo-500);
|
|
34
|
-
--a63-badge-indigo-foreground: var(--color-indigo-
|
|
36
|
+
--a63-badge-indigo-foreground: var(--color-indigo-700);
|
|
35
37
|
--a63-badge-violet-accent: var(--color-violet-500);
|
|
36
|
-
--a63-badge-violet-foreground: var(--color-violet-
|
|
38
|
+
--a63-badge-violet-foreground: var(--color-violet-700);
|
|
37
39
|
--a63-badge-purple-accent: var(--color-purple-500);
|
|
38
|
-
--a63-badge-purple-foreground: var(--color-purple-
|
|
40
|
+
--a63-badge-purple-foreground: var(--color-purple-700);
|
|
39
41
|
--a63-badge-fuchsia-accent: var(--color-fuchsia-500);
|
|
40
|
-
--a63-badge-fuchsia-foreground: var(--color-fuchsia-
|
|
42
|
+
--a63-badge-fuchsia-foreground: var(--color-fuchsia-700);
|
|
41
43
|
--a63-badge-pink-accent: var(--color-pink-500);
|
|
42
|
-
--a63-badge-pink-foreground: var(--color-pink-
|
|
44
|
+
--a63-badge-pink-foreground: var(--color-pink-700);
|
|
43
45
|
--a63-badge-rose-accent: var(--color-rose-500);
|
|
44
|
-
--a63-badge-rose-foreground: var(--color-rose-
|
|
46
|
+
--a63-badge-rose-foreground: var(--color-rose-700);
|
|
45
47
|
--a63-badge-neutral-accent: var(--color-neutral-500);
|
|
46
|
-
--a63-badge-neutral-foreground: var(--color-neutral-
|
|
48
|
+
--a63-badge-neutral-foreground: var(--color-neutral-700);
|
|
49
|
+
/* Status chips: the status color itself is too light for text on its tint. */
|
|
50
|
+
--a63-badge-info-foreground: var(--color-info-700);
|
|
51
|
+
--a63-badge-success-foreground: var(--color-success-700);
|
|
52
|
+
--a63-badge-warning-foreground: var(--color-warning-800);
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
:is(.dark, [data-a63-mode='dark']) {
|
|
@@ -65,4 +71,7 @@
|
|
|
65
71
|
--a63-badge-pink-foreground: var(--color-pink-400);
|
|
66
72
|
--a63-badge-rose-foreground: var(--color-rose-400);
|
|
67
73
|
--a63-badge-neutral-foreground: var(--color-neutral-400);
|
|
74
|
+
--a63-badge-info-foreground: var(--color-info-400);
|
|
75
|
+
--a63-badge-success-foreground: var(--color-success-400);
|
|
76
|
+
--a63-badge-warning-foreground: var(--color-warning-400);
|
|
68
77
|
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Badge palette contract — category/tag hues owned by @atom63/styles.\n\nRecipes read --a63-badge-*-accent / --a63-badge-*-foreground only. Accent\nreferences foundation primitives; foreground flips for dark mode contrast.",
|
|
4
|
+
"modifiers": {
|
|
5
|
+
"mode": {
|
|
6
|
+
"default": "light",
|
|
7
|
+
"contexts": {
|
|
8
|
+
"light": [
|
|
9
|
+
{
|
|
10
|
+
"a63": {
|
|
11
|
+
"badge": {
|
|
12
|
+
"red": {
|
|
13
|
+
"accent": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "{color.red.500}"
|
|
16
|
+
},
|
|
17
|
+
"foreground": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "{color.red.700}"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"orange": {
|
|
23
|
+
"accent": {
|
|
24
|
+
"$type": "color",
|
|
25
|
+
"$value": "{color.orange.500}"
|
|
26
|
+
},
|
|
27
|
+
"foreground": {
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"$value": "{color.orange.800}"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"amber": {
|
|
33
|
+
"accent": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{color.amber.500}"
|
|
36
|
+
},
|
|
37
|
+
"foreground": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": "{color.amber.800}"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"yellow": {
|
|
43
|
+
"accent": {
|
|
44
|
+
"$type": "color",
|
|
45
|
+
"$value": "{color.yellow.500}"
|
|
46
|
+
},
|
|
47
|
+
"foreground": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": "{color.yellow.800}"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"lime": {
|
|
53
|
+
"accent": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "{color.lime.500}"
|
|
56
|
+
},
|
|
57
|
+
"foreground": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "{color.lime.800}"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"green": {
|
|
63
|
+
"accent": {
|
|
64
|
+
"$type": "color",
|
|
65
|
+
"$value": "{color.green.500}"
|
|
66
|
+
},
|
|
67
|
+
"foreground": {
|
|
68
|
+
"$type": "color",
|
|
69
|
+
"$value": "{color.green.800}"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"emerald": {
|
|
73
|
+
"accent": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "{color.emerald.500}"
|
|
76
|
+
},
|
|
77
|
+
"foreground": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "{color.emerald.800}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"teal": {
|
|
83
|
+
"accent": {
|
|
84
|
+
"$type": "color",
|
|
85
|
+
"$value": "{color.teal.500}"
|
|
86
|
+
},
|
|
87
|
+
"foreground": {
|
|
88
|
+
"$type": "color",
|
|
89
|
+
"$value": "{color.teal.800}"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"cyan": {
|
|
93
|
+
"accent": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{color.cyan.500}"
|
|
96
|
+
},
|
|
97
|
+
"foreground": {
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$value": "{color.cyan.800}"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"sky": {
|
|
103
|
+
"accent": {
|
|
104
|
+
"$type": "color",
|
|
105
|
+
"$value": "{color.sky.500}"
|
|
106
|
+
},
|
|
107
|
+
"foreground": {
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$value": "{color.sky.700}"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"blue": {
|
|
113
|
+
"accent": {
|
|
114
|
+
"$type": "color",
|
|
115
|
+
"$value": "{color.blue.500}"
|
|
116
|
+
},
|
|
117
|
+
"foreground": {
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$value": "{color.blue.700}"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"indigo": {
|
|
123
|
+
"accent": {
|
|
124
|
+
"$type": "color",
|
|
125
|
+
"$value": "{color.indigo.500}"
|
|
126
|
+
},
|
|
127
|
+
"foreground": {
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$value": "{color.indigo.700}"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"violet": {
|
|
133
|
+
"accent": {
|
|
134
|
+
"$type": "color",
|
|
135
|
+
"$value": "{color.violet.500}"
|
|
136
|
+
},
|
|
137
|
+
"foreground": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "{color.violet.700}"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"purple": {
|
|
143
|
+
"accent": {
|
|
144
|
+
"$type": "color",
|
|
145
|
+
"$value": "{color.purple.500}"
|
|
146
|
+
},
|
|
147
|
+
"foreground": {
|
|
148
|
+
"$type": "color",
|
|
149
|
+
"$value": "{color.purple.700}"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"fuchsia": {
|
|
153
|
+
"accent": {
|
|
154
|
+
"$type": "color",
|
|
155
|
+
"$value": "{color.fuchsia.500}"
|
|
156
|
+
},
|
|
157
|
+
"foreground": {
|
|
158
|
+
"$type": "color",
|
|
159
|
+
"$value": "{color.fuchsia.700}"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"pink": {
|
|
163
|
+
"accent": {
|
|
164
|
+
"$type": "color",
|
|
165
|
+
"$value": "{color.pink.500}"
|
|
166
|
+
},
|
|
167
|
+
"foreground": {
|
|
168
|
+
"$type": "color",
|
|
169
|
+
"$value": "{color.pink.700}"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"rose": {
|
|
173
|
+
"accent": {
|
|
174
|
+
"$type": "color",
|
|
175
|
+
"$value": "{color.rose.500}"
|
|
176
|
+
},
|
|
177
|
+
"foreground": {
|
|
178
|
+
"$type": "color",
|
|
179
|
+
"$value": "{color.rose.700}"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"neutral": {
|
|
183
|
+
"accent": {
|
|
184
|
+
"$type": "color",
|
|
185
|
+
"$value": "{color.neutral.500}"
|
|
186
|
+
},
|
|
187
|
+
"foreground": {
|
|
188
|
+
"$type": "color",
|
|
189
|
+
"$value": "{color.neutral.700}"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"info": {
|
|
193
|
+
"foreground": {
|
|
194
|
+
"$type": "color",
|
|
195
|
+
"$value": "{color.info.700}",
|
|
196
|
+
"$description": "Status chips: the status color itself is too light for text on its tint."
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"success": {
|
|
200
|
+
"foreground": {
|
|
201
|
+
"$type": "color",
|
|
202
|
+
"$value": "{color.success.700}"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"warning": {
|
|
206
|
+
"foreground": {
|
|
207
|
+
"$type": "color",
|
|
208
|
+
"$value": "{color.warning.800}"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"dark": [
|
|
216
|
+
{
|
|
217
|
+
"a63": {
|
|
218
|
+
"badge": {
|
|
219
|
+
"red": {
|
|
220
|
+
"foreground": {
|
|
221
|
+
"$type": "color",
|
|
222
|
+
"$value": "{color.red.400}"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"orange": {
|
|
226
|
+
"foreground": {
|
|
227
|
+
"$type": "color",
|
|
228
|
+
"$value": "{color.orange.400}"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"amber": {
|
|
232
|
+
"foreground": {
|
|
233
|
+
"$type": "color",
|
|
234
|
+
"$value": "{color.amber.400}"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"yellow": {
|
|
238
|
+
"foreground": {
|
|
239
|
+
"$type": "color",
|
|
240
|
+
"$value": "{color.yellow.400}"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"lime": {
|
|
244
|
+
"foreground": {
|
|
245
|
+
"$type": "color",
|
|
246
|
+
"$value": "{color.lime.400}"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"green": {
|
|
250
|
+
"foreground": {
|
|
251
|
+
"$type": "color",
|
|
252
|
+
"$value": "{color.green.400}"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"emerald": {
|
|
256
|
+
"foreground": {
|
|
257
|
+
"$type": "color",
|
|
258
|
+
"$value": "{color.emerald.400}"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"teal": {
|
|
262
|
+
"foreground": {
|
|
263
|
+
"$type": "color",
|
|
264
|
+
"$value": "{color.teal.400}"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"cyan": {
|
|
268
|
+
"foreground": {
|
|
269
|
+
"$type": "color",
|
|
270
|
+
"$value": "{color.cyan.400}"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"sky": {
|
|
274
|
+
"foreground": {
|
|
275
|
+
"$type": "color",
|
|
276
|
+
"$value": "{color.sky.400}"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"blue": {
|
|
280
|
+
"foreground": {
|
|
281
|
+
"$type": "color",
|
|
282
|
+
"$value": "{color.blue.400}"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"indigo": {
|
|
286
|
+
"foreground": {
|
|
287
|
+
"$type": "color",
|
|
288
|
+
"$value": "{color.indigo.400}"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"violet": {
|
|
292
|
+
"foreground": {
|
|
293
|
+
"$type": "color",
|
|
294
|
+
"$value": "{color.violet.400}"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"purple": {
|
|
298
|
+
"foreground": {
|
|
299
|
+
"$type": "color",
|
|
300
|
+
"$value": "{color.purple.400}"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"fuchsia": {
|
|
304
|
+
"foreground": {
|
|
305
|
+
"$type": "color",
|
|
306
|
+
"$value": "{color.fuchsia.400}"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"pink": {
|
|
310
|
+
"foreground": {
|
|
311
|
+
"$type": "color",
|
|
312
|
+
"$value": "{color.pink.400}"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"rose": {
|
|
316
|
+
"foreground": {
|
|
317
|
+
"$type": "color",
|
|
318
|
+
"$value": "{color.rose.400}"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"neutral": {
|
|
322
|
+
"foreground": {
|
|
323
|
+
"$type": "color",
|
|
324
|
+
"$value": "{color.neutral.400}"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"info": {
|
|
328
|
+
"foreground": {
|
|
329
|
+
"$type": "color",
|
|
330
|
+
"$value": "{color.info.400}"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"success": {
|
|
334
|
+
"foreground": {
|
|
335
|
+
"$type": "color",
|
|
336
|
+
"$value": "{color.success.400}"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"warning": {
|
|
340
|
+
"foreground": {
|
|
341
|
+
"$type": "color",
|
|
342
|
+
"$value": "{color.warning.400}"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"resolutionOrder": [
|
|
353
|
+
{
|
|
354
|
+
"$ref": "#/modifiers/mode"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"$extensions": {
|
|
358
|
+
"io.atom63.css": {
|
|
359
|
+
"attribute": "data-a63-mode",
|
|
360
|
+
"selectors": {
|
|
361
|
+
"light": ":root,\n.light,\n[data-a63-mode='light']",
|
|
362
|
+
"dark": ":is(.dark, [data-a63-mode='dark'])"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
package/src/contracts/choice.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/choice.tokens.json by scripts/build-css-from-dtcg.mjs. Do not edit;
|
|
3
|
+
* change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
|
|
4
|
+
*
|
|
2
5
|
* Choice contract — form controls that expose checked/selected value state.
|
|
3
6
|
*
|
|
4
7
|
* Covers Checkbox, Radio, and Switch. This is the visual home for indicators,
|
|
@@ -17,6 +20,7 @@
|
|
|
17
20
|
* gloss to its checked fill; Checkbox and Radio use the same hooks on their
|
|
18
21
|
* boxes and indicators.
|
|
19
22
|
*/
|
|
23
|
+
@import './choice.native.css';
|
|
20
24
|
|
|
21
25
|
:root {
|
|
22
26
|
--a63-choice-thumb: var(--a63-selection-thumb);
|
|
@@ -28,5 +32,4 @@
|
|
|
28
32
|
--a63-choice-feedback-ease: var(--a63-control-feedback-ease);
|
|
29
33
|
--a63-choice-box-shadow: none;
|
|
30
34
|
--a63-choice-box-shadow-checked: none;
|
|
31
|
-
--a63-choice-indicator-gloss: none;
|
|
32
35
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of the choice contract: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from choice.tokens.json. Each declaration here is listed
|
|
4
|
+
* in native-values.json; see docs/design-system/token-single-source.md.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--a63-choice-indicator-gloss: none;
|
|
9
|
+
}
|