@atom63/styles 0.1.0-beta.6 → 0.1.0-beta.8
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 +7 -4
- package/generated/atom63.figma-sync.json +10559 -5138
- package/generated/atom63.tokens.json +13034 -7792
- package/package.json +6 -4
- package/src/compat/a63-from-shadcn.css +5 -1
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +133 -17
- package/src/contracts/badge.css +81 -65
- package/src/contracts/badge.resolver.json +145 -62
- 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/surface.css +4 -0
- package/src/contracts/surface.tokens.json +57 -0
- package/src/tailwind/roles.json +189 -0
- package/src/tailwind/theme.css +210 -22
- 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 +8 -0
- package/src/themes/terminal.resolver.json +37 -0
- package/src/tokens/brand-action.css +16 -1
- package/src/tokens/brand-action.resolver.json +42 -5
- package/src/tokens/contrast.browser.test.ts +59 -0
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/figma-parity.browser.test.ts +27 -14
- 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 +251 -4
- package/src/tokens/semantics.resolver.json +1148 -12
- package/src/tokens/surface.css +8 -0
- package/src/tokens/surface.resolver.json +49 -0
- package/src/tokens/swift-parity.browser.test.ts +4 -0
- package/src/tokens/type-roles.css +75 -0
- package/src/tokens/type-roles.resolver.json +366 -0
package/src/contracts/field.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* mode-independent (static inset), so it's safe to declare at :root and let
|
|
15
15
|
* themes override it on their shell. The OTHER hooks resolve at the recipe
|
|
16
16
|
* use-site against mode/theme/brand-dependent semantics (--a63-surface-control,
|
|
17
|
-
* --a63-border-
|
|
17
|
+
* --a63-border-input, --a63-control-radius, --a63-focus-ring,
|
|
18
18
|
* --a63-action-primary); declaring THOSE at :root would freeze their var()s to
|
|
19
19
|
* the root's mode/theme and inherit the wrong value down — the
|
|
20
20
|
* resolve-at-declaration trap. So they stay UNSET here and the recipe reads
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$description": "Field contract — the RECESSED control (text inputs), the inset counterpart to\nthe raised control (buttons) in control.css.\n\nA field is a control: it reuses the control SIZING ramp\n(--a63-control-height/padding-inline/font-size/radius), so it inherits\ndesign-language (iOS taller) sizing for free.\n\nTheme-overridable hooks: --a63-field-{background,border,radius,shadow,\nfocus-ring,focus-border}. Only --a63-field-shadow gets a default here — it is\nmode-independent (static inset), so it's safe to declare at :root and let\nthemes override it on their shell. The OTHER hooks resolve at the recipe\nuse-site against mode/theme/brand-dependent semantics (--a63-surface-control,\n--a63-border-
|
|
2
|
+
"$description": "Field contract — the RECESSED control (text inputs), the inset counterpart to\nthe raised control (buttons) in control.css.\n\nA field is a control: it reuses the control SIZING ramp\n(--a63-control-height/padding-inline/font-size/radius), so it inherits\ndesign-language (iOS taller) sizing for free.\n\nTheme-overridable hooks: --a63-field-{background,border,radius,shadow,\nfocus-ring,focus-border}. Only --a63-field-shadow gets a default here — it is\nmode-independent (static inset), so it's safe to declare at :root and let\nthemes override it on their shell. The OTHER hooks resolve at the recipe\nuse-site against mode/theme/brand-dependent semantics (--a63-surface-control,\n--a63-border-input, --a63-control-radius, --a63-focus-ring,\n--a63-action-primary); declaring THOSE at :root would freeze their var()s to\nthe root's mode/theme and inherit the wrong value down — the\nresolve-at-declaration trap. So they stay UNSET here and the recipe reads\n`var(--a63-field-X, <semantic>)`: a theme override wins, else the live\nsemantic resolves per the field's own scope. A theme sets --a63-field-shadow\n(all four) and, where it re-skins the fill, --a63-field-background (terminal).",
|
|
3
3
|
"a63": {
|
|
4
4
|
"field": {
|
|
5
5
|
"shadow": {
|
|
@@ -20,4 +20,6 @@
|
|
|
20
20
|
--a63-selection-thumb-fg: color-mix(in oklch, black 78%, transparent);
|
|
21
21
|
/* Drives the switch track geometry; iOS enlarges it in environment.css. */
|
|
22
22
|
--a63-switch-thumb-size: 1rem;
|
|
23
|
+
/* The thumb's width over its height: 1 is a round knob. The track is the thumb plus one thumb height of travel, so a wider thumb lengthens the track. The phone form factor widens it (environment.css). */
|
|
24
|
+
--a63-switch-thumb-aspect: 1;
|
|
23
25
|
}
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"unit": "rem"
|
|
31
31
|
},
|
|
32
32
|
"$description": "Drives the switch track geometry; iOS enlarges it in environment.css."
|
|
33
|
+
},
|
|
34
|
+
"aspect": {
|
|
35
|
+
"$type": "number",
|
|
36
|
+
"$value": 1,
|
|
37
|
+
"$description": "The thumb's width over its height: 1 is a round knob. The track is the thumb plus one thumb height of travel, so a wider thumb lengthens the track. The phone form factor widens it (environment.css)."
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
}
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
is only legal as the sole value — it invalidates the whole declaration and
|
|
39
39
|
silently drops the surface's elevation. */
|
|
40
40
|
--a63-surface-inner-shadow: 0 0 #0000;
|
|
41
|
+
/* Soft lift for a borderless surface that sits above its ground: the elevated Card and the raised Button. Themes point it at their own surface treatment. */
|
|
42
|
+
--a63-surface-raised-shadow:
|
|
43
|
+
0 1px 3px color-mix(in oklch, black 8%, transparent),
|
|
44
|
+
0 4px 12px -2px color-mix(in oklch, black 10%, transparent);
|
|
41
45
|
--a63-surface-highlight-opacity: 1;
|
|
42
46
|
/* Bevel controls. */
|
|
43
47
|
--a63-surface-border-style: solid;
|
|
@@ -67,6 +67,63 @@
|
|
|
67
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
68
|
}
|
|
69
69
|
},
|
|
70
|
+
"raised": {
|
|
71
|
+
"shadow": {
|
|
72
|
+
"$type": "shadow",
|
|
73
|
+
"$value": [
|
|
74
|
+
{
|
|
75
|
+
"color": {
|
|
76
|
+
"colorSpace": "srgb",
|
|
77
|
+
"components": [0, 0, 0],
|
|
78
|
+
"alpha": 0.08
|
|
79
|
+
},
|
|
80
|
+
"offsetX": {
|
|
81
|
+
"value": 0,
|
|
82
|
+
"unit": "px"
|
|
83
|
+
},
|
|
84
|
+
"offsetY": {
|
|
85
|
+
"value": 1,
|
|
86
|
+
"unit": "px"
|
|
87
|
+
},
|
|
88
|
+
"blur": {
|
|
89
|
+
"value": 3,
|
|
90
|
+
"unit": "px"
|
|
91
|
+
},
|
|
92
|
+
"spread": {
|
|
93
|
+
"value": 0,
|
|
94
|
+
"unit": "px"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"color": {
|
|
99
|
+
"colorSpace": "srgb",
|
|
100
|
+
"components": [0, 0, 0],
|
|
101
|
+
"alpha": 0.1
|
|
102
|
+
},
|
|
103
|
+
"offsetX": {
|
|
104
|
+
"value": 0,
|
|
105
|
+
"unit": "px"
|
|
106
|
+
},
|
|
107
|
+
"offsetY": {
|
|
108
|
+
"value": 4,
|
|
109
|
+
"unit": "px"
|
|
110
|
+
},
|
|
111
|
+
"blur": {
|
|
112
|
+
"value": 12,
|
|
113
|
+
"unit": "px"
|
|
114
|
+
},
|
|
115
|
+
"spread": {
|
|
116
|
+
"value": -2,
|
|
117
|
+
"unit": "px"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"$extensions": {
|
|
122
|
+
"io.atom63.derive": "0 1px 3px color-mix(in oklch, black 8%, transparent), 0 4px 12px -2px color-mix(in oklch, black 10%, transparent)"
|
|
123
|
+
},
|
|
124
|
+
"$description": "Soft lift for a borderless surface that sits above its ground: the elevated Card and the raised Button. Themes point it at their own surface treatment."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
70
127
|
"highlight": {
|
|
71
128
|
"opacity": {
|
|
72
129
|
"$type": "number",
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Semantic color roles: the shadcn role names, kept verbatim, mapped onto the canonical --a63-* tokens. scripts/generate-role-bridges.mjs writes the semantic block of tailwind/theme.css (as --color-<role>) and compat/shadcn.css (as --<role>) from this file. `accent` is the neutral hover and highlight plate, not the brand color.",
|
|
3
|
+
"groups": [
|
|
4
|
+
{
|
|
5
|
+
"label": "Surfaces and text",
|
|
6
|
+
"roles": {
|
|
7
|
+
"background": "--a63-surface-page",
|
|
8
|
+
"foreground": "--a63-text-primary",
|
|
9
|
+
"card": "--a63-surface-panel",
|
|
10
|
+
"card-foreground": "--a63-text-primary",
|
|
11
|
+
"popover": "--a63-surface-overlay",
|
|
12
|
+
"popover-foreground": "--a63-text-primary",
|
|
13
|
+
"muted": "--a63-surface-muted",
|
|
14
|
+
"muted-foreground": "--a63-text-secondary",
|
|
15
|
+
"secondary": "--a63-surface-muted",
|
|
16
|
+
"secondary-foreground": "--a63-text-secondary",
|
|
17
|
+
"accent": "--a63-surface-control-hover",
|
|
18
|
+
"accent-foreground": "--a63-text-primary",
|
|
19
|
+
"surface-sunken": "--a63-surface-control"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"label": "Borders and focus",
|
|
24
|
+
"roles": {
|
|
25
|
+
"border": "--a63-border-subtle",
|
|
26
|
+
"input": "--a63-border-input",
|
|
27
|
+
"ring": "--a63-focus-ring"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "Actions",
|
|
32
|
+
"roles": {
|
|
33
|
+
"primary": "--a63-action-primary",
|
|
34
|
+
"primary-foreground": "--a63-action-primary-foreground",
|
|
35
|
+
"destructive": "--a63-action-danger",
|
|
36
|
+
"destructive-foreground": "--a63-action-danger-foreground"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"label": "Status",
|
|
41
|
+
"roles": {
|
|
42
|
+
"info": "--a63-status-info",
|
|
43
|
+
"info-foreground": "--a63-status-info-foreground",
|
|
44
|
+
"success": "--a63-status-success",
|
|
45
|
+
"success-foreground": "--a63-status-success-foreground",
|
|
46
|
+
"warning": "--a63-status-warning",
|
|
47
|
+
"warning-foreground": "--a63-status-warning-foreground"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"label": "Tints",
|
|
52
|
+
"roles": {
|
|
53
|
+
"destructive-subtle": "--a63-action-danger-subtle",
|
|
54
|
+
"destructive-subtle-foreground": "--a63-action-danger-subtle-foreground",
|
|
55
|
+
"info-subtle": "--a63-status-info-subtle",
|
|
56
|
+
"info-subtle-foreground": "--a63-status-info-subtle-foreground",
|
|
57
|
+
"success-subtle": "--a63-status-success-subtle",
|
|
58
|
+
"success-subtle-foreground": "--a63-status-success-subtle-foreground",
|
|
59
|
+
"warning-subtle": "--a63-status-warning-subtle",
|
|
60
|
+
"warning-subtle-foreground": "--a63-status-warning-subtle-foreground"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "Selection",
|
|
65
|
+
"roles": {
|
|
66
|
+
"selected": "--a63-selected-background",
|
|
67
|
+
"selected-foreground": "--a63-selected-foreground",
|
|
68
|
+
"selected-accent": "--a63-selected-accent-background",
|
|
69
|
+
"selected-accent-foreground": "--a63-selected-accent-foreground"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"label": "Charts",
|
|
74
|
+
"roles": {
|
|
75
|
+
"chart-1": "--a63-chart-1",
|
|
76
|
+
"chart-2": "--a63-chart-2",
|
|
77
|
+
"chart-3": "--a63-chart-3",
|
|
78
|
+
"chart-4": "--a63-chart-4",
|
|
79
|
+
"chart-5": "--a63-chart-5"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "Categories",
|
|
84
|
+
"roles": {
|
|
85
|
+
"category-red": "--a63-category-red",
|
|
86
|
+
"category-red-subtle": "--a63-category-red-subtle",
|
|
87
|
+
"category-red-subtle-foreground": "--a63-category-red-subtle-foreground",
|
|
88
|
+
"category-orange": "--a63-category-orange",
|
|
89
|
+
"category-orange-subtle": "--a63-category-orange-subtle",
|
|
90
|
+
"category-orange-subtle-foreground": "--a63-category-orange-subtle-foreground",
|
|
91
|
+
"category-amber": "--a63-category-amber",
|
|
92
|
+
"category-amber-subtle": "--a63-category-amber-subtle",
|
|
93
|
+
"category-amber-subtle-foreground": "--a63-category-amber-subtle-foreground",
|
|
94
|
+
"category-yellow": "--a63-category-yellow",
|
|
95
|
+
"category-yellow-subtle": "--a63-category-yellow-subtle",
|
|
96
|
+
"category-yellow-subtle-foreground": "--a63-category-yellow-subtle-foreground",
|
|
97
|
+
"category-lime": "--a63-category-lime",
|
|
98
|
+
"category-lime-subtle": "--a63-category-lime-subtle",
|
|
99
|
+
"category-lime-subtle-foreground": "--a63-category-lime-subtle-foreground",
|
|
100
|
+
"category-green": "--a63-category-green",
|
|
101
|
+
"category-green-subtle": "--a63-category-green-subtle",
|
|
102
|
+
"category-green-subtle-foreground": "--a63-category-green-subtle-foreground",
|
|
103
|
+
"category-emerald": "--a63-category-emerald",
|
|
104
|
+
"category-emerald-subtle": "--a63-category-emerald-subtle",
|
|
105
|
+
"category-emerald-subtle-foreground": "--a63-category-emerald-subtle-foreground",
|
|
106
|
+
"category-teal": "--a63-category-teal",
|
|
107
|
+
"category-teal-subtle": "--a63-category-teal-subtle",
|
|
108
|
+
"category-teal-subtle-foreground": "--a63-category-teal-subtle-foreground",
|
|
109
|
+
"category-cyan": "--a63-category-cyan",
|
|
110
|
+
"category-cyan-subtle": "--a63-category-cyan-subtle",
|
|
111
|
+
"category-cyan-subtle-foreground": "--a63-category-cyan-subtle-foreground",
|
|
112
|
+
"category-sky": "--a63-category-sky",
|
|
113
|
+
"category-sky-subtle": "--a63-category-sky-subtle",
|
|
114
|
+
"category-sky-subtle-foreground": "--a63-category-sky-subtle-foreground",
|
|
115
|
+
"category-blue": "--a63-category-blue",
|
|
116
|
+
"category-blue-subtle": "--a63-category-blue-subtle",
|
|
117
|
+
"category-blue-subtle-foreground": "--a63-category-blue-subtle-foreground",
|
|
118
|
+
"category-indigo": "--a63-category-indigo",
|
|
119
|
+
"category-indigo-subtle": "--a63-category-indigo-subtle",
|
|
120
|
+
"category-indigo-subtle-foreground": "--a63-category-indigo-subtle-foreground",
|
|
121
|
+
"category-violet": "--a63-category-violet",
|
|
122
|
+
"category-violet-subtle": "--a63-category-violet-subtle",
|
|
123
|
+
"category-violet-subtle-foreground": "--a63-category-violet-subtle-foreground",
|
|
124
|
+
"category-purple": "--a63-category-purple",
|
|
125
|
+
"category-purple-subtle": "--a63-category-purple-subtle",
|
|
126
|
+
"category-purple-subtle-foreground": "--a63-category-purple-subtle-foreground",
|
|
127
|
+
"category-fuchsia": "--a63-category-fuchsia",
|
|
128
|
+
"category-fuchsia-subtle": "--a63-category-fuchsia-subtle",
|
|
129
|
+
"category-fuchsia-subtle-foreground": "--a63-category-fuchsia-subtle-foreground",
|
|
130
|
+
"category-pink": "--a63-category-pink",
|
|
131
|
+
"category-pink-subtle": "--a63-category-pink-subtle",
|
|
132
|
+
"category-pink-subtle-foreground": "--a63-category-pink-subtle-foreground",
|
|
133
|
+
"category-rose": "--a63-category-rose",
|
|
134
|
+
"category-rose-subtle": "--a63-category-rose-subtle",
|
|
135
|
+
"category-rose-subtle-foreground": "--a63-category-rose-subtle-foreground",
|
|
136
|
+
"category-slate": "--a63-category-slate",
|
|
137
|
+
"category-slate-subtle": "--a63-category-slate-subtle",
|
|
138
|
+
"category-slate-subtle-foreground": "--a63-category-slate-subtle-foreground",
|
|
139
|
+
"category-gray": "--a63-category-gray",
|
|
140
|
+
"category-gray-subtle": "--a63-category-gray-subtle",
|
|
141
|
+
"category-gray-subtle-foreground": "--a63-category-gray-subtle-foreground",
|
|
142
|
+
"category-zinc": "--a63-category-zinc",
|
|
143
|
+
"category-zinc-subtle": "--a63-category-zinc-subtle",
|
|
144
|
+
"category-zinc-subtle-foreground": "--a63-category-zinc-subtle-foreground",
|
|
145
|
+
"category-neutral": "--a63-category-neutral",
|
|
146
|
+
"category-neutral-subtle": "--a63-category-neutral-subtle",
|
|
147
|
+
"category-neutral-subtle-foreground": "--a63-category-neutral-subtle-foreground",
|
|
148
|
+
"category-stone": "--a63-category-stone",
|
|
149
|
+
"category-stone-subtle": "--a63-category-stone-subtle",
|
|
150
|
+
"category-stone-subtle-foreground": "--a63-category-stone-subtle-foreground"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"label": "Media",
|
|
155
|
+
"roles": {
|
|
156
|
+
"media-stage": "--a63-media-stage",
|
|
157
|
+
"media-surface": "--a63-media-surface",
|
|
158
|
+
"media-scrim": "--a63-media-scrim",
|
|
159
|
+
"on-media-foreground": "--a63-on-media-foreground",
|
|
160
|
+
"on-media-surface": "--a63-on-media-surface",
|
|
161
|
+
"on-media-surface-strong": "--a63-on-media-surface-strong",
|
|
162
|
+
"on-media-border": "--a63-on-media-border",
|
|
163
|
+
"on-media-ring": "--a63-on-media-ring",
|
|
164
|
+
"on-media-veil": "--a63-on-media-veil",
|
|
165
|
+
"on-media-veil-strong": "--a63-on-media-veil-strong"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"label": "Sidebar",
|
|
170
|
+
"roles": {
|
|
171
|
+
"sidebar": "--a63-surface-sidebar",
|
|
172
|
+
"sidebar-foreground": "--a63-text-primary",
|
|
173
|
+
"sidebar-primary": "--a63-action-primary",
|
|
174
|
+
"sidebar-primary-foreground": "--a63-action-primary-foreground",
|
|
175
|
+
"sidebar-accent": "--a63-surface-control-hover",
|
|
176
|
+
"sidebar-accent-foreground": "--a63-text-primary",
|
|
177
|
+
"sidebar-border": "--a63-border-subtle",
|
|
178
|
+
"sidebar-ring": "--a63-focus-ring"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"label": "Fixed mode references",
|
|
183
|
+
"roles": {
|
|
184
|
+
"light": "--surface-light-1",
|
|
185
|
+
"dark": "--surface-dark-1"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
package/src/tailwind/theme.css
CHANGED
|
@@ -340,39 +340,137 @@
|
|
|
340
340
|
--surface-light-9: var(--surface-light-9);
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
/*
|
|
343
|
+
/* Semantic roles — generated from src/tailwind/roles.json by scripts/generate-role-bridges.mjs; do not edit. */
|
|
344
344
|
@theme inline {
|
|
345
|
-
--color-accent: var(--a63-surface-control-hover);
|
|
346
|
-
--color-accent-foreground: var(--a63-text-primary);
|
|
347
345
|
--color-background: var(--a63-surface-page);
|
|
348
|
-
--color-
|
|
346
|
+
--color-foreground: var(--a63-text-primary);
|
|
349
347
|
--color-card: var(--a63-surface-panel);
|
|
350
348
|
--color-card-foreground: var(--a63-text-primary);
|
|
351
|
-
--color-dark: var(--surface-dark-1);
|
|
352
|
-
--color-destructive: var(--a63-action-danger);
|
|
353
|
-
--color-foreground: var(--a63-text-primary);
|
|
354
|
-
--color-info: var(--a63-status-info);
|
|
355
|
-
--color-input: var(--a63-border-control);
|
|
356
|
-
--color-light: var(--surface-light-1);
|
|
357
|
-
--color-muted: var(--a63-surface-muted);
|
|
358
|
-
--color-muted-foreground: var(--a63-text-secondary);
|
|
359
349
|
--color-popover: var(--a63-surface-overlay);
|
|
360
350
|
--color-popover-foreground: var(--a63-text-primary);
|
|
361
|
-
--color-
|
|
362
|
-
--color-
|
|
363
|
-
--color-ring: var(--a63-focus-ring);
|
|
351
|
+
--color-muted: var(--a63-surface-muted);
|
|
352
|
+
--color-muted-foreground: var(--a63-text-secondary);
|
|
364
353
|
--color-secondary: var(--a63-surface-muted);
|
|
365
354
|
--color-secondary-foreground: var(--a63-text-secondary);
|
|
366
|
-
--color-
|
|
367
|
-
--color-
|
|
368
|
-
--color-
|
|
369
|
-
--color-
|
|
355
|
+
--color-accent: var(--a63-surface-control-hover);
|
|
356
|
+
--color-accent-foreground: var(--a63-text-primary);
|
|
357
|
+
--color-surface-sunken: var(--a63-surface-control);
|
|
358
|
+
--color-border: var(--a63-border-subtle);
|
|
359
|
+
--color-input: var(--a63-border-input);
|
|
360
|
+
--color-ring: var(--a63-focus-ring);
|
|
361
|
+
--color-primary: var(--a63-action-primary);
|
|
362
|
+
--color-primary-foreground: var(--a63-action-primary-foreground);
|
|
363
|
+
--color-destructive: var(--a63-action-danger);
|
|
364
|
+
--color-destructive-foreground: var(--a63-action-danger-foreground);
|
|
365
|
+
--color-info: var(--a63-status-info);
|
|
366
|
+
--color-info-foreground: var(--a63-status-info-foreground);
|
|
367
|
+
--color-success: var(--a63-status-success);
|
|
368
|
+
--color-success-foreground: var(--a63-status-success-foreground);
|
|
369
|
+
--color-warning: var(--a63-status-warning);
|
|
370
|
+
--color-warning-foreground: var(--a63-status-warning-foreground);
|
|
371
|
+
--color-destructive-subtle: var(--a63-action-danger-subtle);
|
|
372
|
+
--color-destructive-subtle-foreground: var(--a63-action-danger-subtle-foreground);
|
|
373
|
+
--color-info-subtle: var(--a63-status-info-subtle);
|
|
374
|
+
--color-info-subtle-foreground: var(--a63-status-info-subtle-foreground);
|
|
375
|
+
--color-success-subtle: var(--a63-status-success-subtle);
|
|
376
|
+
--color-success-subtle-foreground: var(--a63-status-success-subtle-foreground);
|
|
377
|
+
--color-warning-subtle: var(--a63-status-warning-subtle);
|
|
378
|
+
--color-warning-subtle-foreground: var(--a63-status-warning-subtle-foreground);
|
|
379
|
+
--color-selected: var(--a63-selected-background);
|
|
380
|
+
--color-selected-foreground: var(--a63-selected-foreground);
|
|
381
|
+
--color-selected-accent: var(--a63-selected-accent-background);
|
|
382
|
+
--color-selected-accent-foreground: var(--a63-selected-accent-foreground);
|
|
383
|
+
--color-chart-1: var(--a63-chart-1);
|
|
384
|
+
--color-chart-2: var(--a63-chart-2);
|
|
385
|
+
--color-chart-3: var(--a63-chart-3);
|
|
386
|
+
--color-chart-4: var(--a63-chart-4);
|
|
387
|
+
--color-chart-5: var(--a63-chart-5);
|
|
388
|
+
--color-category-red: var(--a63-category-red);
|
|
389
|
+
--color-category-red-subtle: var(--a63-category-red-subtle);
|
|
390
|
+
--color-category-red-subtle-foreground: var(--a63-category-red-subtle-foreground);
|
|
391
|
+
--color-category-orange: var(--a63-category-orange);
|
|
392
|
+
--color-category-orange-subtle: var(--a63-category-orange-subtle);
|
|
393
|
+
--color-category-orange-subtle-foreground: var(--a63-category-orange-subtle-foreground);
|
|
394
|
+
--color-category-amber: var(--a63-category-amber);
|
|
395
|
+
--color-category-amber-subtle: var(--a63-category-amber-subtle);
|
|
396
|
+
--color-category-amber-subtle-foreground: var(--a63-category-amber-subtle-foreground);
|
|
397
|
+
--color-category-yellow: var(--a63-category-yellow);
|
|
398
|
+
--color-category-yellow-subtle: var(--a63-category-yellow-subtle);
|
|
399
|
+
--color-category-yellow-subtle-foreground: var(--a63-category-yellow-subtle-foreground);
|
|
400
|
+
--color-category-lime: var(--a63-category-lime);
|
|
401
|
+
--color-category-lime-subtle: var(--a63-category-lime-subtle);
|
|
402
|
+
--color-category-lime-subtle-foreground: var(--a63-category-lime-subtle-foreground);
|
|
403
|
+
--color-category-green: var(--a63-category-green);
|
|
404
|
+
--color-category-green-subtle: var(--a63-category-green-subtle);
|
|
405
|
+
--color-category-green-subtle-foreground: var(--a63-category-green-subtle-foreground);
|
|
406
|
+
--color-category-emerald: var(--a63-category-emerald);
|
|
407
|
+
--color-category-emerald-subtle: var(--a63-category-emerald-subtle);
|
|
408
|
+
--color-category-emerald-subtle-foreground: var(--a63-category-emerald-subtle-foreground);
|
|
409
|
+
--color-category-teal: var(--a63-category-teal);
|
|
410
|
+
--color-category-teal-subtle: var(--a63-category-teal-subtle);
|
|
411
|
+
--color-category-teal-subtle-foreground: var(--a63-category-teal-subtle-foreground);
|
|
412
|
+
--color-category-cyan: var(--a63-category-cyan);
|
|
413
|
+
--color-category-cyan-subtle: var(--a63-category-cyan-subtle);
|
|
414
|
+
--color-category-cyan-subtle-foreground: var(--a63-category-cyan-subtle-foreground);
|
|
415
|
+
--color-category-sky: var(--a63-category-sky);
|
|
416
|
+
--color-category-sky-subtle: var(--a63-category-sky-subtle);
|
|
417
|
+
--color-category-sky-subtle-foreground: var(--a63-category-sky-subtle-foreground);
|
|
418
|
+
--color-category-blue: var(--a63-category-blue);
|
|
419
|
+
--color-category-blue-subtle: var(--a63-category-blue-subtle);
|
|
420
|
+
--color-category-blue-subtle-foreground: var(--a63-category-blue-subtle-foreground);
|
|
421
|
+
--color-category-indigo: var(--a63-category-indigo);
|
|
422
|
+
--color-category-indigo-subtle: var(--a63-category-indigo-subtle);
|
|
423
|
+
--color-category-indigo-subtle-foreground: var(--a63-category-indigo-subtle-foreground);
|
|
424
|
+
--color-category-violet: var(--a63-category-violet);
|
|
425
|
+
--color-category-violet-subtle: var(--a63-category-violet-subtle);
|
|
426
|
+
--color-category-violet-subtle-foreground: var(--a63-category-violet-subtle-foreground);
|
|
427
|
+
--color-category-purple: var(--a63-category-purple);
|
|
428
|
+
--color-category-purple-subtle: var(--a63-category-purple-subtle);
|
|
429
|
+
--color-category-purple-subtle-foreground: var(--a63-category-purple-subtle-foreground);
|
|
430
|
+
--color-category-fuchsia: var(--a63-category-fuchsia);
|
|
431
|
+
--color-category-fuchsia-subtle: var(--a63-category-fuchsia-subtle);
|
|
432
|
+
--color-category-fuchsia-subtle-foreground: var(--a63-category-fuchsia-subtle-foreground);
|
|
433
|
+
--color-category-pink: var(--a63-category-pink);
|
|
434
|
+
--color-category-pink-subtle: var(--a63-category-pink-subtle);
|
|
435
|
+
--color-category-pink-subtle-foreground: var(--a63-category-pink-subtle-foreground);
|
|
436
|
+
--color-category-rose: var(--a63-category-rose);
|
|
437
|
+
--color-category-rose-subtle: var(--a63-category-rose-subtle);
|
|
438
|
+
--color-category-rose-subtle-foreground: var(--a63-category-rose-subtle-foreground);
|
|
439
|
+
--color-category-slate: var(--a63-category-slate);
|
|
440
|
+
--color-category-slate-subtle: var(--a63-category-slate-subtle);
|
|
441
|
+
--color-category-slate-subtle-foreground: var(--a63-category-slate-subtle-foreground);
|
|
442
|
+
--color-category-gray: var(--a63-category-gray);
|
|
443
|
+
--color-category-gray-subtle: var(--a63-category-gray-subtle);
|
|
444
|
+
--color-category-gray-subtle-foreground: var(--a63-category-gray-subtle-foreground);
|
|
445
|
+
--color-category-zinc: var(--a63-category-zinc);
|
|
446
|
+
--color-category-zinc-subtle: var(--a63-category-zinc-subtle);
|
|
447
|
+
--color-category-zinc-subtle-foreground: var(--a63-category-zinc-subtle-foreground);
|
|
448
|
+
--color-category-neutral: var(--a63-category-neutral);
|
|
449
|
+
--color-category-neutral-subtle: var(--a63-category-neutral-subtle);
|
|
450
|
+
--color-category-neutral-subtle-foreground: var(--a63-category-neutral-subtle-foreground);
|
|
451
|
+
--color-category-stone: var(--a63-category-stone);
|
|
452
|
+
--color-category-stone-subtle: var(--a63-category-stone-subtle);
|
|
453
|
+
--color-category-stone-subtle-foreground: var(--a63-category-stone-subtle-foreground);
|
|
454
|
+
--color-media-stage: var(--a63-media-stage);
|
|
455
|
+
--color-media-surface: var(--a63-media-surface);
|
|
456
|
+
--color-media-scrim: var(--a63-media-scrim);
|
|
457
|
+
--color-on-media-foreground: var(--a63-on-media-foreground);
|
|
458
|
+
--color-on-media-surface: var(--a63-on-media-surface);
|
|
459
|
+
--color-on-media-surface-strong: var(--a63-on-media-surface-strong);
|
|
460
|
+
--color-on-media-border: var(--a63-on-media-border);
|
|
461
|
+
--color-on-media-ring: var(--a63-on-media-ring);
|
|
462
|
+
--color-on-media-veil: var(--a63-on-media-veil);
|
|
463
|
+
--color-on-media-veil-strong: var(--a63-on-media-veil-strong);
|
|
464
|
+
--color-sidebar: var(--a63-surface-sidebar);
|
|
370
465
|
--color-sidebar-foreground: var(--a63-text-primary);
|
|
371
466
|
--color-sidebar-primary: var(--a63-action-primary);
|
|
372
467
|
--color-sidebar-primary-foreground: var(--a63-action-primary-foreground);
|
|
468
|
+
--color-sidebar-accent: var(--a63-surface-control-hover);
|
|
469
|
+
--color-sidebar-accent-foreground: var(--a63-text-primary);
|
|
470
|
+
--color-sidebar-border: var(--a63-border-subtle);
|
|
373
471
|
--color-sidebar-ring: var(--a63-focus-ring);
|
|
374
|
-
--color-
|
|
375
|
-
--color-
|
|
472
|
+
--color-light: var(--surface-light-1);
|
|
473
|
+
--color-dark: var(--surface-dark-1);
|
|
376
474
|
}
|
|
377
475
|
|
|
378
476
|
/* tokens/foundation/effects.css */
|
|
@@ -412,7 +510,13 @@
|
|
|
412
510
|
--radius-2xl: var(--radius-2xl);
|
|
413
511
|
--radius-3xl: var(--radius-3xl);
|
|
414
512
|
--radius-4xl: var(--radius-4xl);
|
|
415
|
-
--radius-
|
|
513
|
+
--radius-pill: var(--radius-pill);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@theme inline reference {
|
|
517
|
+
/* `rounded-full` is a true circle: it draws --radius-pill. Reference-only, so
|
|
518
|
+
Tailwind does not redeclare --radius-full, which stays the soft 2× xl step. */
|
|
519
|
+
--radius-full: var(--radius-pill);
|
|
416
520
|
}
|
|
417
521
|
|
|
418
522
|
/* tokens/foundation/fonts.css */
|
|
@@ -428,6 +532,8 @@
|
|
|
428
532
|
|
|
429
533
|
@theme inline {
|
|
430
534
|
--typography-scale: 1;
|
|
535
|
+
--text-2xs: var(--typography-2xs-font-size);
|
|
536
|
+
--text-2xs--line-height: var(--typography-2xs-line-height);
|
|
431
537
|
--text-xs: var(--typography-xs-font-size);
|
|
432
538
|
--text-xs--line-height: var(--typography-xs-line-height);
|
|
433
539
|
--text-sm: var(--typography-sm-font-size);
|
|
@@ -512,3 +618,85 @@
|
|
|
512
618
|
}
|
|
513
619
|
}
|
|
514
620
|
}
|
|
621
|
+
|
|
622
|
+
/* Text roles — generated from src/tokens/type-roles.resolver.json by scripts/generate-role-bridges.mjs; do not edit. */
|
|
623
|
+
@theme inline {
|
|
624
|
+
--text-display-large: var(--a63-type-display-large-font-size);
|
|
625
|
+
--text-display-large--line-height: var(--a63-type-display-large-line-height);
|
|
626
|
+
--text-display-large--font-weight: var(--a63-type-display-large-font-weight);
|
|
627
|
+
--text-display-large-strong: var(--a63-type-display-large-font-size);
|
|
628
|
+
--text-display-large-strong--line-height: var(--a63-type-display-large-line-height);
|
|
629
|
+
--text-display-large-strong--font-weight: var(--a63-type-display-large-font-weight-strong);
|
|
630
|
+
--text-display: var(--a63-type-display-font-size);
|
|
631
|
+
--text-display--line-height: var(--a63-type-display-line-height);
|
|
632
|
+
--text-display--font-weight: var(--a63-type-display-font-weight);
|
|
633
|
+
--text-display-strong: var(--a63-type-display-font-size);
|
|
634
|
+
--text-display-strong--line-height: var(--a63-type-display-line-height);
|
|
635
|
+
--text-display-strong--font-weight: var(--a63-type-display-font-weight-strong);
|
|
636
|
+
--text-large-title: var(--a63-type-large-title-font-size);
|
|
637
|
+
--text-large-title--line-height: var(--a63-type-large-title-line-height);
|
|
638
|
+
--text-large-title--font-weight: var(--a63-type-large-title-font-weight);
|
|
639
|
+
--text-large-title-strong: var(--a63-type-large-title-font-size);
|
|
640
|
+
--text-large-title-strong--line-height: var(--a63-type-large-title-line-height);
|
|
641
|
+
--text-large-title-strong--font-weight: var(--a63-type-large-title-font-weight-strong);
|
|
642
|
+
--text-title-1: var(--a63-type-title-1-font-size);
|
|
643
|
+
--text-title-1--line-height: var(--a63-type-title-1-line-height);
|
|
644
|
+
--text-title-1--font-weight: var(--a63-type-title-1-font-weight);
|
|
645
|
+
--text-title-1-strong: var(--a63-type-title-1-font-size);
|
|
646
|
+
--text-title-1-strong--line-height: var(--a63-type-title-1-line-height);
|
|
647
|
+
--text-title-1-strong--font-weight: var(--a63-type-title-1-font-weight-strong);
|
|
648
|
+
--text-title-2: var(--a63-type-title-2-font-size);
|
|
649
|
+
--text-title-2--line-height: var(--a63-type-title-2-line-height);
|
|
650
|
+
--text-title-2--font-weight: var(--a63-type-title-2-font-weight);
|
|
651
|
+
--text-title-2-strong: var(--a63-type-title-2-font-size);
|
|
652
|
+
--text-title-2-strong--line-height: var(--a63-type-title-2-line-height);
|
|
653
|
+
--text-title-2-strong--font-weight: var(--a63-type-title-2-font-weight-strong);
|
|
654
|
+
--text-title-3: var(--a63-type-title-3-font-size);
|
|
655
|
+
--text-title-3--line-height: var(--a63-type-title-3-line-height);
|
|
656
|
+
--text-title-3--font-weight: var(--a63-type-title-3-font-weight);
|
|
657
|
+
--text-title-3-strong: var(--a63-type-title-3-font-size);
|
|
658
|
+
--text-title-3-strong--line-height: var(--a63-type-title-3-line-height);
|
|
659
|
+
--text-title-3-strong--font-weight: var(--a63-type-title-3-font-weight-strong);
|
|
660
|
+
--text-headline: var(--a63-type-headline-font-size);
|
|
661
|
+
--text-headline--line-height: var(--a63-type-headline-line-height);
|
|
662
|
+
--text-headline--font-weight: var(--a63-type-headline-font-weight);
|
|
663
|
+
--text-headline-strong: var(--a63-type-headline-font-size);
|
|
664
|
+
--text-headline-strong--line-height: var(--a63-type-headline-line-height);
|
|
665
|
+
--text-headline-strong--font-weight: var(--a63-type-headline-font-weight-strong);
|
|
666
|
+
--text-body: var(--a63-type-body-font-size);
|
|
667
|
+
--text-body--line-height: var(--a63-type-body-line-height);
|
|
668
|
+
--text-body--font-weight: var(--a63-type-body-font-weight);
|
|
669
|
+
--text-body-strong: var(--a63-type-body-font-size);
|
|
670
|
+
--text-body-strong--line-height: var(--a63-type-body-line-height);
|
|
671
|
+
--text-body-strong--font-weight: var(--a63-type-body-font-weight-strong);
|
|
672
|
+
--text-callout: var(--a63-type-callout-font-size);
|
|
673
|
+
--text-callout--line-height: var(--a63-type-callout-line-height);
|
|
674
|
+
--text-callout--font-weight: var(--a63-type-callout-font-weight);
|
|
675
|
+
--text-callout-strong: var(--a63-type-callout-font-size);
|
|
676
|
+
--text-callout-strong--line-height: var(--a63-type-callout-line-height);
|
|
677
|
+
--text-callout-strong--font-weight: var(--a63-type-callout-font-weight-strong);
|
|
678
|
+
--text-subhead: var(--a63-type-subhead-font-size);
|
|
679
|
+
--text-subhead--line-height: var(--a63-type-subhead-line-height);
|
|
680
|
+
--text-subhead--font-weight: var(--a63-type-subhead-font-weight);
|
|
681
|
+
--text-subhead-strong: var(--a63-type-subhead-font-size);
|
|
682
|
+
--text-subhead-strong--line-height: var(--a63-type-subhead-line-height);
|
|
683
|
+
--text-subhead-strong--font-weight: var(--a63-type-subhead-font-weight-strong);
|
|
684
|
+
--text-footnote: var(--a63-type-footnote-font-size);
|
|
685
|
+
--text-footnote--line-height: var(--a63-type-footnote-line-height);
|
|
686
|
+
--text-footnote--font-weight: var(--a63-type-footnote-font-weight);
|
|
687
|
+
--text-footnote-strong: var(--a63-type-footnote-font-size);
|
|
688
|
+
--text-footnote-strong--line-height: var(--a63-type-footnote-line-height);
|
|
689
|
+
--text-footnote-strong--font-weight: var(--a63-type-footnote-font-weight-strong);
|
|
690
|
+
--text-caption-1: var(--a63-type-caption-1-font-size);
|
|
691
|
+
--text-caption-1--line-height: var(--a63-type-caption-1-line-height);
|
|
692
|
+
--text-caption-1--font-weight: var(--a63-type-caption-1-font-weight);
|
|
693
|
+
--text-caption-1-strong: var(--a63-type-caption-1-font-size);
|
|
694
|
+
--text-caption-1-strong--line-height: var(--a63-type-caption-1-line-height);
|
|
695
|
+
--text-caption-1-strong--font-weight: var(--a63-type-caption-1-font-weight-strong);
|
|
696
|
+
--text-caption-2: var(--a63-type-caption-2-font-size);
|
|
697
|
+
--text-caption-2--line-height: var(--a63-type-caption-2-line-height);
|
|
698
|
+
--text-caption-2--font-weight: var(--a63-type-caption-2-font-weight);
|
|
699
|
+
--text-caption-2-strong: var(--a63-type-caption-2-font-size);
|
|
700
|
+
--text-caption-2-strong--line-height: var(--a63-type-caption-2-line-height);
|
|
701
|
+
--text-caption-2-strong--font-weight: var(--a63-type-caption-2-font-weight-strong);
|
|
702
|
+
}
|
|
@@ -39,3 +39,20 @@
|
|
|
39
39
|
--scroll-mask-fade-from-r: --value(percentage);
|
|
40
40
|
--scroll-mask-fade-from-r: --value([length], [percentage]);
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
/* The fraction of a display amount ("$13.25" with ".25" small and raised), as
|
|
44
|
+
banking and pricing screens draw balances. Wrap the fraction in it and keep the
|
|
45
|
+
whole amount in one text-display span with tabular-nums. */
|
|
46
|
+
@utility amount-fraction {
|
|
47
|
+
font-size: 0.5em;
|
|
48
|
+
line-height: 0;
|
|
49
|
+
vertical-align: 0.8em;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* The same fraction kept on the baseline of the integer digits ("$13.25" with
|
|
53
|
+
".25" small and level with the bottom of "13"), as some banking apps draw a balance. */
|
|
54
|
+
@utility amount-fraction-baseline {
|
|
55
|
+
font-size: 0.5em;
|
|
56
|
+
line-height: 0;
|
|
57
|
+
vertical-align: baseline;
|
|
58
|
+
}
|
package/src/themes/aqua.css
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
--a63-surface-backdrop: saturate(1.4) blur(var(--blur-lg));
|
|
57
57
|
--a63-surface-highlight: color-mix(in oklch, white 55%, transparent);
|
|
58
58
|
--a63-surface-highlight-opacity: 0.75;
|
|
59
|
+
--a63-surface-raised-shadow: var(--a63-surface-shadow);
|
|
59
60
|
/* Menus need a quieter, more even backplate than larger Aqua overlays so
|
|
60
61
|
dense rows remain legible from top to bottom. */
|
|
61
62
|
--a63-menu-popup-background: color-mix(in oklab, var(--a63-surface-overlay) 92%, white);
|
package/src/themes/retro.css
CHANGED
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
square corners via the radius personalization axis (not hardcoded here). */
|
|
60
60
|
--a63-surface-border-style: outset;
|
|
61
61
|
--a63-surface-border-width: 2px;
|
|
62
|
+
--a63-surface-raised-shadow: var(--a63-surface-shadow);
|
|
62
63
|
--a63-track-shadow:
|
|
63
64
|
inset 1px 1px 0 color-mix(in oklch, black 22%, transparent),
|
|
64
65
|
inset -1px -1px 0 color-mix(in oklch, white 40%, transparent);
|