@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.
Files changed (104) hide show
  1. package/README.md +14 -8
  2. package/generated/atom63.figma-sync.json +3764 -1109
  3. package/generated/atom63.tokens.json +3811 -831
  4. package/package.json +14 -7
  5. package/src/compat/a63-from-shadcn.css +10 -0
  6. package/src/contracts/action.css +4 -3
  7. package/src/contracts/action.native.css +11 -0
  8. package/src/contracts/action.tokens.json +66 -0
  9. package/src/contracts/badge.css +28 -19
  10. package/src/contracts/badge.resolver.json +366 -0
  11. package/src/contracts/choice.css +4 -1
  12. package/src/contracts/choice.native.css +9 -0
  13. package/src/contracts/choice.tokens.json +66 -0
  14. package/src/contracts/control.css +43 -52
  15. package/src/contracts/control.native.css +13 -0
  16. package/src/contracts/control.tokens.json +245 -0
  17. package/src/contracts/environment.css +45 -49
  18. package/src/contracts/environment.native.css +23 -0
  19. package/src/contracts/environment.resolver.json +569 -0
  20. package/src/contracts/field.css +3 -1
  21. package/src/contracts/field.tokens.json +40 -0
  22. package/src/contracts/marker.css +6 -4
  23. package/src/contracts/marker.tokens.json +15 -0
  24. package/src/contracts/menu.css +25 -61
  25. package/src/contracts/menu.native.css +10 -0
  26. package/src/contracts/menu.resolver.json +122 -0
  27. package/src/contracts/overlay.css +11 -13
  28. package/src/contracts/overlay.native.css +13 -0
  29. package/src/contracts/overlay.tokens.json +103 -0
  30. package/src/contracts/segment.css +22 -68
  31. package/src/contracts/segment.tokens.json +19 -0
  32. package/src/contracts/selection.css +3 -1
  33. package/src/contracts/selection.tokens.json +37 -0
  34. package/src/contracts/skeleton.css +3 -0
  35. package/src/contracts/skeleton.resolver.json +66 -0
  36. package/src/contracts/surface.css +13 -24
  37. package/src/contracts/surface.native.css +17 -0
  38. package/src/contracts/surface.tokens.json +97 -0
  39. package/src/contracts/toggle.css +3 -1
  40. package/src/contracts/toggle.tokens.json +49 -0
  41. package/src/contracts/track.css +3 -1
  42. package/src/contracts/track.tokens.json +39 -0
  43. package/src/contracts/trigger.css +5 -2
  44. package/src/contracts/trigger.native.css +9 -0
  45. package/src/contracts/trigger.tokens.json +58 -0
  46. package/src/contracts/widget.css +41 -51
  47. package/src/contracts/widget.native.css +23 -0
  48. package/src/contracts/widget.resolver.json +1104 -0
  49. package/src/tailwind/theme.css +0 -2
  50. package/src/themes/aqua.css +24 -89
  51. package/src/themes/aqua.native.css +80 -0
  52. package/src/themes/aqua.resolver.json +1292 -0
  53. package/src/themes/modern.css +10 -14
  54. package/src/themes/modern.native.css +16 -0
  55. package/src/themes/modern.resolver.json +350 -0
  56. package/src/themes/retro.css +21 -26
  57. package/src/themes/retro.native.css +16 -0
  58. package/src/themes/retro.resolver.json +788 -0
  59. package/src/themes/terminal.css +34 -41
  60. package/src/themes/terminal.native.css +22 -0
  61. package/src/themes/terminal.resolver.json +517 -0
  62. package/src/tokens/brand-action.css +50 -0
  63. package/src/tokens/brand-action.resolver.json +118 -0
  64. package/src/tokens/brand-ramp.css +108 -0
  65. package/src/tokens/brand-ramp.resolver.json +418 -0
  66. package/src/tokens/brand.css +6 -146
  67. package/src/tokens/color-mix-space.browser.test.ts +79 -0
  68. package/src/tokens/contrast.browser.test.ts +47 -3
  69. package/src/tokens/figma-parity.browser.test.ts +257 -0
  70. package/src/tokens/font.css +6 -0
  71. package/src/tokens/font.resolver.json +107 -0
  72. package/src/tokens/foundation/effects.css +13 -13
  73. package/src/tokens/foundation/effects.resolver.json +433 -0
  74. package/src/tokens/foundation/fonts.css +11 -5
  75. package/src/tokens/foundation/fonts.tokens.json +45 -0
  76. package/src/tokens/foundation/motion.css +3 -0
  77. package/src/tokens/foundation/motion.tokens.json +53 -0
  78. package/src/tokens/foundation/palette.css +3 -0
  79. package/src/tokens/foundation/palette.tokens.json +1743 -0
  80. package/src/tokens/foundation/primitives.css +20 -13
  81. package/src/tokens/foundation/primitives.tokens.json +3470 -0
  82. package/src/tokens/foundation/radius.css +6 -9
  83. package/src/tokens/foundation/radius.tokens.json +100 -0
  84. package/src/tokens/foundation/typography.css +25 -12
  85. package/src/tokens/foundation/typography.native.css +11 -0
  86. package/src/tokens/foundation/typography.resolver.json +936 -0
  87. package/src/tokens/foundation.css +0 -1
  88. package/src/tokens/motion.css +3 -1
  89. package/src/tokens/motion.resolver.json +135 -0
  90. package/src/tokens/native-values.json +38 -0
  91. package/src/tokens/personalization-axes.browser.test.ts +5 -3
  92. package/src/tokens/radius.css +12 -8
  93. package/src/tokens/radius.resolver.json +138 -0
  94. package/src/tokens/semantics.css +62 -34
  95. package/src/tokens/semantics.resolver.json +402 -0
  96. package/src/tokens/space.css +8 -6
  97. package/src/tokens/space.tokens.json +78 -0
  98. package/src/tokens/surface.css +5 -19
  99. package/src/tokens/surface.resolver.json +657 -0
  100. package/src/tokens/swift-parity.browser.test.ts +137 -0
  101. package/src/tokens/type-scale.css +6 -0
  102. package/src/tokens/type-scale.resolver.json +67 -0
  103. package/generated/atom63.figma-tokens.json +0 -21661
  104. package/src/tokens/foundation/aliases.css +0 -28
@@ -0,0 +1,66 @@
1
+ {
2
+ "version": "2025.10",
3
+ "description": "Skeleton appearance contract.\n\nRenderers may use different masking primitives, but the base surface and\nhighlight emphasis remain shared design semantics.",
4
+ "sets": {
5
+ "base": {
6
+ "sources": [
7
+ {
8
+ "a63": {
9
+ "skeleton": {
10
+ "base": {
11
+ "$type": "color",
12
+ "$value": "{a63.surface.muted}"
13
+ },
14
+ "highlight": {
15
+ "$type": "color",
16
+ "$value": "{color.white.60}"
17
+ }
18
+ }
19
+ }
20
+ }
21
+ ],
22
+ "$extensions": {
23
+ "io.atom63.css": {
24
+ "selector": ":root"
25
+ }
26
+ }
27
+ }
28
+ },
29
+ "modifiers": {
30
+ "mode": {
31
+ "default": "light",
32
+ "contexts": {
33
+ "light": [],
34
+ "dark": [
35
+ {
36
+ "a63": {
37
+ "skeleton": {
38
+ "highlight": {
39
+ "$type": "color",
40
+ "$value": "{color.white.10}"
41
+ }
42
+ }
43
+ }
44
+ }
45
+ ]
46
+ }
47
+ }
48
+ },
49
+ "resolutionOrder": [
50
+ {
51
+ "$ref": "#/sets/base"
52
+ },
53
+ {
54
+ "$ref": "#/modifiers/mode"
55
+ }
56
+ ],
57
+ "$extensions": {
58
+ "io.atom63.css": {
59
+ "attribute": "data-a63-mode",
60
+ "selectors": {
61
+ "light": ":root,\n.light,\n[data-a63-mode='light']",
62
+ "dark": ":is(.dark, [data-a63-mode='dark'])"
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,4 +1,7 @@
1
1
  /*
2
+ * Generated from src/contracts/surface.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
  * Surface contract — the STATIC, in-flow container/panel (cards, panels,
3
6
  * frames, sections, accordion containers, windows). The counterpart to OVERLAY:
4
7
  * same "grouped surface" idea, but no z-stacking / elevation-above-page — it
@@ -16,41 +19,27 @@
16
19
  *
17
20
  * The contract now carries the full treatment vocabulary
18
21
  * (gloss/highlight/backdrop/border/texture/inner-shadow), not just the shadow.
22
+ *
23
+ * Radius is intentionally NOT defaulted here — recipes read
24
+ * var(--a63-surface-radius, <own default>); a theme sets it to square all
25
+ * surfaces (retro → 0). Declaring it here would flatten per-recipe radii, so
26
+ * it stays unset at :root.
19
27
  */
28
+ @import './surface.native.css';
20
29
 
21
30
  :root {
22
31
  /* Outer elevation — flush · bevel · drop · glow (existing lever, unchanged). */
23
32
  --a63-surface-shadow:
24
33
  0 1px 2px color-mix(in oklch, black 6%, transparent),
25
34
  0 1px 1px color-mix(in oklch, black 4%, transparent);
26
-
27
35
  /* Recessed/inset treatment (sunken well). `0 0 #0000` = flat.
28
- NOT `none`: this token is composed into comma-separated box-shadow lists
29
- (`var(--a63-surface-inner-shadow), var(--a63-surface-shadow)`), and `none`
30
- is only legal as the sole value — it invalidates the whole declaration and
31
- silently drops the surface's elevation. */
36
+ NOT `none`: this token is composed into comma-separated box-shadow lists
37
+ (`var(--a63-surface-inner-shadow), var(--a63-surface-shadow)`), and `none`
38
+ is only legal as the sole value — it invalidates the whole declaration and
39
+ silently drops the surface's elevation. */
32
40
  --a63-surface-inner-shadow: 0 0 #0000;
33
-
34
- /* Top-half sheen gradient (background-image layer). none = no sheen. */
35
- --a63-surface-gloss: none;
36
-
37
- /* Rim/edge specular highlight (recipe ::after or an inset shadow layer). */
38
- --a63-surface-highlight: none;
39
41
  --a63-surface-highlight-opacity: 1;
40
-
41
- /* backdrop-filter (blur/saturate) for translucent glass. none = opaque. */
42
- --a63-surface-backdrop: none;
43
-
44
42
  /* Bevel controls. */
45
43
  --a63-surface-border-style: solid;
46
44
  --a63-surface-border-width: 1px;
47
-
48
- /* Texture layer: an extra background-image (scanline/pinstripe) + its blend. */
49
- --a63-surface-texture-image: none;
50
- --a63-surface-texture-blend: normal;
51
-
52
- /* Radius is intentionally NOT defaulted here — recipes read
53
- var(--a63-surface-radius, <own default>); a theme sets it to square all
54
- surfaces (retro → 0). Declaring it here would flatten per-recipe radii, so
55
- it stays unset at :root. */
56
45
  }
@@ -0,0 +1,17 @@
1
+ /*
2
+ * CSS-native values of the surface contract: values with no DTCG type. The rest of
3
+ * the contract is generated from surface.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
+ /* Top-half sheen gradient (background-image layer). none = no sheen. */
9
+ --a63-surface-gloss: none;
10
+ /* Rim/edge specular highlight (recipe ::after or an inset shadow layer). */
11
+ --a63-surface-highlight: none;
12
+ /* backdrop-filter (blur/saturate) for translucent glass. none = opaque. */
13
+ --a63-surface-backdrop: none;
14
+ /* Texture layer: an extra background-image (scanline/pinstripe) + its blend. */
15
+ --a63-surface-texture-image: none;
16
+ --a63-surface-texture-blend: normal;
17
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$description": "Surface contract — the STATIC, in-flow container/panel (cards, panels,\nframes, sections, accordion containers, windows). The counterpart to OVERLAY:\nsame \"grouped surface\" idea, but no z-stacking / elevation-above-page — it\nsits IN the flow.\n\nLean by design (see the taxonomy spec): semantics carry the default look — the\nrecipe reads --a63-surface-panel (bg), --a63-border-subtle (border),\n--radius-* (radius), --a63-text-* (text) at the use-site. The ONE thing themes\nvary distinctly for a static surface is its FLUSH-vs-LIFT-vs-BEVEL treatment,\nso that is the only contract token here.\n\n--a63-surface-shadow is a drop/bevel (mode-independent), so it's safe to\ndefault at :root and let each theme override it on its shell (modern soft-flush,\naqua subtle glassy lift, retro hard Win98 frame bevel, terminal phosphor edge).\n\nThe contract now carries the full treatment vocabulary\n(gloss/highlight/backdrop/border/texture/inner-shadow), not just the shadow.\n\nRadius is intentionally NOT defaulted here — recipes read\n var(--a63-surface-radius, <own default>); a theme sets it to square all\n surfaces (retro → 0). Declaring it here would flatten per-recipe radii, so\n it stays unset at :root.",
3
+ "a63": {
4
+ "surface": {
5
+ "shadow": {
6
+ "$type": "shadow",
7
+ "$value": [
8
+ {
9
+ "color": {
10
+ "colorSpace": "srgb",
11
+ "components": [0, 0, 0],
12
+ "alpha": 0.06
13
+ },
14
+ "offsetX": {
15
+ "value": 0,
16
+ "unit": "px"
17
+ },
18
+ "offsetY": {
19
+ "value": 1,
20
+ "unit": "px"
21
+ },
22
+ "blur": {
23
+ "value": 2,
24
+ "unit": "px"
25
+ },
26
+ "spread": {
27
+ "value": 0,
28
+ "unit": "px"
29
+ }
30
+ },
31
+ {
32
+ "color": {
33
+ "colorSpace": "srgb",
34
+ "components": [0, 0, 0],
35
+ "alpha": 0.04
36
+ },
37
+ "offsetX": {
38
+ "value": 0,
39
+ "unit": "px"
40
+ },
41
+ "offsetY": {
42
+ "value": 1,
43
+ "unit": "px"
44
+ },
45
+ "blur": {
46
+ "value": 1,
47
+ "unit": "px"
48
+ },
49
+ "spread": {
50
+ "value": 0,
51
+ "unit": "px"
52
+ }
53
+ }
54
+ ],
55
+ "$extensions": {
56
+ "io.atom63.derive": "0 1px 2px color-mix(in oklch, black 6%, transparent), 0 1px 1px color-mix(in oklch, black 4%, transparent)"
57
+ },
58
+ "$description": "Outer elevation — flush · bevel · drop · glow (existing lever, unchanged)."
59
+ },
60
+ "inner": {
61
+ "shadow": {
62
+ "$type": "shadow",
63
+ "$value": [],
64
+ "$extensions": {
65
+ "io.atom63.derive": "0 0 #0000"
66
+ },
67
+ "$description": "Recessed/inset treatment (sunken well). `0 0 #0000` = flat.\n NOT `none`: this token is composed into comma-separated box-shadow lists\n (`var(--a63-surface-inner-shadow), var(--a63-surface-shadow)`), and `none`\n is only legal as the sole value — it invalidates the whole declaration and\n silently drops the surface's elevation."
68
+ }
69
+ },
70
+ "highlight": {
71
+ "opacity": {
72
+ "$type": "number",
73
+ "$value": 1
74
+ }
75
+ },
76
+ "border": {
77
+ "style": {
78
+ "$type": "strokeStyle",
79
+ "$value": "solid",
80
+ "$description": "Bevel controls."
81
+ },
82
+ "width": {
83
+ "$type": "dimension",
84
+ "$value": {
85
+ "value": 1,
86
+ "unit": "px"
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "$extensions": {
93
+ "io.atom63.css": {
94
+ "imports": ["./surface.native.css"]
95
+ }
96
+ }
97
+ }
@@ -1,4 +1,7 @@
1
1
  /*
2
+ * Generated from src/contracts/toggle.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
  * Toggle contract — persistent on/off controls.
3
6
  *
4
7
  * Covers standalone Toggle. ToggleGroup is always a joined segmented bar and
@@ -13,7 +16,6 @@
13
16
  * --a63-toggle-primary-background -> var(--a63-action-primary)
14
17
  * --a63-toggle-primary-foreground -> var(--a63-action-primary-foreground)
15
18
  */
16
-
17
19
  :root {
18
20
  --a63-toggle-border-width: var(--a63-segment-border-width);
19
21
  --a63-toggle-gap: var(--a63-control-gap);
@@ -0,0 +1,49 @@
1
+ {
2
+ "$description": "Toggle contract — persistent on/off controls.\n\nCovers standalone Toggle. ToggleGroup is always a joined segmented bar and\nreads the segment contract for cell chrome; it does not use a layout variant.\n\nColour hooks resolve at recipe use-sites:\n --a63-toggle-background -> transparent\n --a63-toggle-foreground -> var(--a63-text-primary)\n --a63-toggle-hover-background -> var(--a63-surface-control-hover)\n --a63-toggle-on-background -> var(--a63-surface-muted)\n --a63-toggle-on-foreground -> var(--a63-text-primary)\n --a63-toggle-primary-background -> var(--a63-action-primary)\n --a63-toggle-primary-foreground -> var(--a63-action-primary-foreground)",
3
+ "a63": {
4
+ "toggle": {
5
+ "border": {
6
+ "width": {
7
+ "$type": "dimension",
8
+ "$value": "{a63.segment.border.width}"
9
+ }
10
+ },
11
+ "gap": {
12
+ "$type": "dimension",
13
+ "$value": "{a63.control.gap}"
14
+ },
15
+ "group": {
16
+ "gap": {
17
+ "$type": "dimension",
18
+ "$value": "{a63.segment.gap}"
19
+ }
20
+ },
21
+ "radius": {
22
+ "$type": "dimension",
23
+ "$value": "{a63.control.radius}"
24
+ },
25
+ "shadow": {
26
+ "$root": {
27
+ "$type": "shadow",
28
+ "$value": []
29
+ },
30
+ "active": {
31
+ "$type": "shadow",
32
+ "$value": []
33
+ }
34
+ },
35
+ "text": {
36
+ "shadow": {
37
+ "$type": "shadow",
38
+ "$value": []
39
+ }
40
+ },
41
+ "disabled": {
42
+ "opacity": {
43
+ "$type": "number",
44
+ "$value": 0.56
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -1,4 +1,7 @@
1
1
  /*
2
+ * Generated from src/contracts/track.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
  * Track contract — the RECESSED rail that holds raised cells/thumbs
3
6
  * (segmented-control track, slider rail, tabs list). Distinct from FIELD (holds
4
7
  * text, not interactive cells) and from CONTROL (raised). The ACTIVE cell/thumb
@@ -20,7 +23,6 @@
20
23
  * valid archetype expressions: recessed-well (SegmentedControl) vs raised-bar
21
24
  * (joined ToggleGroup). Only the recessed one is `track`.
22
25
  */
23
-
24
26
  :root {
25
27
  --a63-track-shadow: inset 0 1px 1px color-mix(in oklch, black 6%, transparent);
26
28
  }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$description": "Track contract — the RECESSED rail that holds raised cells/thumbs\n(segmented-control track, slider rail, tabs list). Distinct from FIELD (holds\ntext, not interactive cells) and from CONTROL (raised). The ACTIVE cell/thumb\nthat rides in the track reuses the CONTROL contract (e.g. the segmented\nindicator reads --a63-control-shadow); the track itself is the sunken well.\n\nLean by design (see the taxonomy spec): semantics carry the default look — the\nrecipe reads --a63-surface-control (bg), --a63-control-radius (radius) and its\ninset/gap constants at the use-site. The ONE thing themes vary distinctly for a\nrecessed rail is its INSET-WELL depth, so that is the only contract token here.\n\n--a63-track-shadow is a static inset (mode-independent, like --a63-field-shadow),\nso it's safe to default at :root and let each theme override it on its shell\n(modern faint inset, aqua deeper sunken gel, retro Win98 inset well, terminal\nfaint phosphor inset).\n\nNOTE: the joined-ToggleGroup bar is intentionally a RAISED control (it reads the\nCONTROL contract — aqua gel / retro bevel), NOT a track. \"Segmented set\" has two\nvalid archetype expressions: recessed-well (SegmentedControl) vs raised-bar\n(joined ToggleGroup). Only the recessed one is `track`.",
3
+ "a63": {
4
+ "track": {
5
+ "shadow": {
6
+ "$type": "shadow",
7
+ "$value": [
8
+ {
9
+ "color": {
10
+ "colorSpace": "srgb",
11
+ "components": [0, 0, 0],
12
+ "alpha": 0.06
13
+ },
14
+ "offsetX": {
15
+ "value": 0,
16
+ "unit": "px"
17
+ },
18
+ "offsetY": {
19
+ "value": 1,
20
+ "unit": "px"
21
+ },
22
+ "blur": {
23
+ "value": 1,
24
+ "unit": "px"
25
+ },
26
+ "spread": {
27
+ "value": 0,
28
+ "unit": "px"
29
+ },
30
+ "inset": true
31
+ }
32
+ ],
33
+ "$extensions": {
34
+ "io.atom63.derive": "inset 0 1px 1px color-mix(in oklch, black 6%, transparent)"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -1,4 +1,7 @@
1
1
  /*
2
+ * Generated from src/contracts/trigger.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
  * Trigger contract — controls whose main job is to open another surface.
3
6
  *
4
7
  * Covers DropdownMenuTrigger, PopoverTrigger, SelectTrigger, NavigationMenu
@@ -12,15 +15,15 @@
12
15
  * --a63-trigger-hover-background -> var(--a63-surface-control-hover)
13
16
  * --a63-trigger-open-background -> var(--a63-surface-control-hover)
14
17
  */
18
+ @import './trigger.native.css';
15
19
 
16
20
  :root {
17
21
  --a63-trigger-border-width: var(--a63-control-border-width);
18
22
  --a63-trigger-focus-ring-width: var(--a63-control-focus-ring-width);
19
23
  --a63-trigger-gap: var(--a63-control-gap);
20
- --a63-trigger-indicator-size: 1em;
21
24
  --a63-trigger-radius: var(--a63-control-radius);
22
25
  /* `0 0 #0000` not `none` — composed into comma-separated box-shadow lists
23
- alongside the focus ring, where `none` invalidates the declaration. */
26
+ alongside the focus ring, where `none` invalidates the declaration. */
24
27
  --a63-trigger-shadow: 0 0 #0000;
25
28
  --a63-trigger-open-shadow: var(--a63-trigger-shadow);
26
29
  --a63-trigger-feedback-duration: var(--a63-control-feedback-duration);
@@ -0,0 +1,9 @@
1
+ /*
2
+ * CSS-native values of the trigger contract: values with no DTCG type. The rest of
3
+ * the contract is generated from trigger.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-trigger-indicator-size: 1em;
9
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$description": "Trigger contract — controls whose main job is to open another surface.\n\nCovers DropdownMenuTrigger, PopoverTrigger, SelectTrigger, NavigationMenu\ntrigger, Menubar trigger, and disclosure-style triggers. A trigger can render\nas button-like, field-like, or navigation-like, but it needs an explicit open\nstate so \"pressed\" is not confused with Button's momentary press.\n\nAxis-dependent hooks resolve at the recipe use-site:\n --a63-trigger-background -> transparent / field background / action fill\n --a63-trigger-foreground -> var(--a63-text-primary)\n --a63-trigger-hover-background -> var(--a63-surface-control-hover)\n --a63-trigger-open-background -> var(--a63-surface-control-hover)",
3
+ "a63": {
4
+ "trigger": {
5
+ "border": {
6
+ "width": {
7
+ "$type": "dimension",
8
+ "$value": "{a63.control.border.width}"
9
+ }
10
+ },
11
+ "focus": {
12
+ "ring": {
13
+ "width": {
14
+ "$type": "dimension",
15
+ "$value": "{a63.control.focus.ring.width}"
16
+ }
17
+ }
18
+ },
19
+ "gap": {
20
+ "$type": "dimension",
21
+ "$value": "{a63.control.gap}"
22
+ },
23
+ "radius": {
24
+ "$type": "dimension",
25
+ "$value": "{a63.control.radius}"
26
+ },
27
+ "shadow": {
28
+ "$type": "shadow",
29
+ "$value": [],
30
+ "$extensions": {
31
+ "io.atom63.derive": "0 0 #0000"
32
+ },
33
+ "$description": "`0 0 #0000` not `none` — composed into comma-separated box-shadow lists\n alongside the focus ring, where `none` invalidates the declaration."
34
+ },
35
+ "open": {
36
+ "shadow": {
37
+ "$type": "shadow",
38
+ "$value": "{a63.trigger.shadow}"
39
+ }
40
+ },
41
+ "feedback": {
42
+ "duration": {
43
+ "$type": "duration",
44
+ "$value": "{a63.control.feedback.duration}"
45
+ },
46
+ "ease": {
47
+ "$type": "duration",
48
+ "$value": "{a63.control.feedback.ease}"
49
+ }
50
+ }
51
+ }
52
+ },
53
+ "$extensions": {
54
+ "io.atom63.css": {
55
+ "imports": ["./trigger.native.css"]
56
+ }
57
+ }
58
+ }
@@ -1,77 +1,77 @@
1
1
  /*
2
+ * Generated from src/contracts/widget.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
  * Widget contract — a persistent floating surface hosted on a desktop, card
3
6
  * flow, or agent surface. Defaults compose the overlay archetype; widget kinds
4
7
  * can specialize the material without replacing surface anatomy.
8
+ *
9
+ * Raised media sitting ON a widget face — poster-fan prints, stacked cards.
10
+ *
11
+ * Deliberately heavier than --a63-widget-shadow: the tile floats above the
12
+ * desktop, but this is print stock resting on the tile, so it needs a near
13
+ * contact throw plus a far soft one to read as a physical object rather than a
14
+ * second pane. `-raised` is the focused/centered print; the base token is the
15
+ * resting one.
16
+ *
17
+ * Each stack carries its own hairline rim and specular inset, so the consumer
18
+ * paints ONE box-shadow. A separate `ring` utility is composed into box-shadow
19
+ * as well, so it would clobber the whole stack rather than sit beside it.
20
+ *
21
+ * Mode-split like semantics.css: the throw is far stronger on a dark face, and
22
+ * the hairline rim flips from a white specular edge to a dark hairline.
23
+ *
24
+ * Weather FACE material — shared by the weather tile and by Location when it
25
+ * carries a condition tone. Outer chrome (rim + drop shadow) stays on the
26
+ * shared widget defaults so every tile reads as one system; only the face
27
+ * fill / foreground specialize.
28
+ *
29
+ * Sticky note focus: lift the shared rim shadow while editing. The variable
30
+ * lives on the shell (where box-shadow is painted), so it must be set there —
31
+ * a face-only className cannot reach it.
5
32
  */
33
+ @import './widget.native.css';
6
34
 
7
35
  :root {
8
- --a63-widget-background-color: color-mix(in oklch, var(--a63-surface-overlay) 82%, transparent);
36
+ --a63-widget-background-color: color-mix(in oklab, var(--a63-surface-overlay) 82%, transparent);
9
37
  --a63-widget-background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
10
38
  --a63-widget-background-blend: normal, var(--a63-overlay-texture-blend);
11
39
  --a63-widget-foreground: var(--a63-text-primary);
12
40
  --a63-widget-border-color: var(--a63-border-subtle);
13
41
  --a63-widget-border-style: var(--a63-overlay-border-style);
14
42
  /* No border by default: the rim IS the tile's edge. A hairline on the face
15
- inside a 4px rim reads as a second concentric ring. */
43
+ inside a 4px rim reads as a second concentric ring. */
16
44
  --a63-widget-border-width: 0px;
17
45
  --a63-widget-radius: var(--a63-overlay-radius, var(--radius-xl));
18
46
  /* Flat by default: the 4px rim already separates the tile from the page, so a
19
- drop shadow on top of it reads as a second edge rather than as height. The
20
- shadow stays available as a STATE — sticky-note focus and drag both raise
21
- it — and each skin still opts into its own resting elevation (retro's hard
22
- offset, terminal's phosphor glow, aqua's gel drop) on its theme scope.
23
- `none` is safe as the sole value here; it would only be invalid if composed
24
- into a comma-separated list. */
47
+ drop shadow on top of it reads as a second edge rather than as height. The
48
+ shadow stays available as a STATE — sticky-note focus and drag both raise
49
+ it — and each skin still opts into its own resting elevation (retro's hard
50
+ offset, terminal's phosphor glow, aqua's gel drop) on its theme scope.
51
+ `none` is safe as the sole value here; it would only be invalid if composed
52
+ into a comma-separated list. */
25
53
  --a63-widget-shadow: none;
26
- --a63-widget-backdrop: var(--a63-overlay-backdrop);
27
-
28
54
  /* Rim = the padded outer shell between the tile edge and the card face. A
29
- padded rim can carry a gradient across the whole frame; a box-shadow inset
30
- cannot. Themes fill it via --a63-widget-rim-image. */
55
+ padded rim can carry a gradient across the whole frame; a box-shadow inset
56
+ cannot. Themes fill it via --a63-widget-rim-image. */
31
57
  --a63-widget-rim-width: 4px;
32
58
  --a63-widget-rim-color: var(--a63-border-subtle);
33
- --a63-widget-rim-image: none;
34
- --a63-widget-rim-backdrop: none;
35
59
  /* Per-side rim color. The rim is a border, so this mitres around the corner
36
- arc at ANY radius — which is how a bevel theme lights top+left and darkens
37
- bottom+right without breaking when the radius axis is turned up. Transparent
38
- by default so gradient rims show through from --a63-widget-rim-image. */
60
+ arc at ANY radius — which is how a bevel theme lights top+left and darkens
61
+ bottom+right without breaking when the radius axis is turned up. Transparent
62
+ by default so gradient rims show through from --a63-widget-rim-image. */
39
63
  --a63-widget-rim-border-color: transparent;
40
-
41
64
  /* Weather defaults preserve live condition color in the neutral theme. */
42
65
  --a63-weather-background-color: transparent;
43
- /* --a63-weather-background-image is intentionally optional. When a theme
44
- leaves it unset, the weather element resolves its local condition image. */
45
- --a63-weather-background-blend: normal;
46
66
  --a63-weather-foreground: white;
47
67
  --a63-weather-muted-foreground: rgb(255 255 255 / 0.7);
48
68
  --a63-weather-divider-color: rgb(255 255 255 / 0.2);
49
69
  --a63-weather-text-shadow: none;
50
70
  --a63-weather-border-color: transparent;
51
- /* No --a63-weather-shadow knob: weather specializes the FACE only. Outer
52
- chrome (rim + drop) stays on the shared widget system so every tile reads as
53
- one desktop — see the weather case in widget-chrome-signature.browser.test. */
54
- --a63-weather-backdrop: none;
55
71
  --a63-weather-condition-mode-color: transparent;
56
72
  --a63-weather-condition-color-strength: 100%;
57
73
  }
58
74
 
59
- /*
60
- * Raised media sitting ON a widget face — poster-fan prints, stacked cards.
61
- *
62
- * Deliberately heavier than --a63-widget-shadow: the tile floats above the
63
- * desktop, but this is print stock resting on the tile, so it needs a near
64
- * contact throw plus a far soft one to read as a physical object rather than a
65
- * second pane. `-raised` is the focused/centered print; the base token is the
66
- * resting one.
67
- *
68
- * Each stack carries its own hairline rim and specular inset, so the consumer
69
- * paints ONE box-shadow. A separate `ring` utility is composed into box-shadow
70
- * as well, so it would clobber the whole stack rather than sit beside it.
71
- *
72
- * Mode-split like semantics.css: the throw is far stronger on a dark face, and
73
- * the hairline rim flips from a white specular edge to a dark hairline.
74
- */
75
75
  :root,
76
76
  .light,
77
77
  [data-a63-mode='light'] {
@@ -102,12 +102,6 @@
102
102
  0 32px 48px -18px color-mix(in oklch, black 72%, transparent);
103
103
  }
104
104
 
105
- /*
106
- * Weather FACE material — shared by the weather tile and by Location when it
107
- * carries a condition tone. Outer chrome (rim + drop shadow) stays on the
108
- * shared widget defaults so every tile reads as one system; only the face
109
- * fill / foreground specialize.
110
- */
111
105
  [data-widget-kind='weather'],
112
106
  [data-widget-kind='location'][data-weather-tone] {
113
107
  --a63-widget-background-color: var(--a63-weather-background-color);
@@ -117,7 +111,6 @@
117
111
  );
118
112
  --a63-widget-background-blend: var(--a63-weather-background-blend);
119
113
  --a63-widget-foreground: var(--a63-weather-foreground);
120
- --a63-widget-backdrop: var(--a63-weather-backdrop);
121
114
  --a63-weather-condition-background-image: linear-gradient(
122
115
  135deg,
123
116
  color-mix(
@@ -188,9 +181,6 @@
188
181
  --a63-weather-condition-color-strength: 88%;
189
182
  }
190
183
 
191
- /* Sticky note focus: lift the shared rim shadow while editing. The variable
192
- lives on the shell (where box-shadow is painted), so it must be set there —
193
- a face-only className cannot reach it. */
194
184
  [data-widget-kind='sticky-note'][data-focused] {
195
185
  --a63-widget-shadow: var(--a63-overlay-drag-shadow);
196
186
  }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * CSS-native values of the widget contract: values with no DTCG type. The rest of
3
+ * the contract is generated from widget.resolver.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-widget-backdrop: var(--a63-overlay-backdrop);
9
+ --a63-widget-rim-image: none;
10
+ --a63-widget-rim-backdrop: none;
11
+ /* --a63-weather-background-image is intentionally optional. When a theme
12
+ leaves it unset, the weather element resolves its local condition image. */
13
+ --a63-weather-background-blend: normal;
14
+ /* No --a63-weather-shadow knob: weather specializes the FACE only. Outer
15
+ chrome (rim + drop) stays on the shared widget system so every tile reads as
16
+ one desktop — see the weather case in widget-chrome-signature.browser.test. */
17
+ --a63-weather-backdrop: none;
18
+ }
19
+
20
+ [data-widget-kind='weather'],
21
+ [data-widget-kind='location'][data-weather-tone] {
22
+ --a63-widget-backdrop: var(--a63-weather-backdrop);
23
+ }