@atom63/styles 0.1.0-beta.5 → 0.1.0-beta.7
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 +16 -10
- package/generated/atom63.figma-sync.json +12897 -6323
- package/generated/atom63.tokens.json +8778 -3550
- package/package.json +8 -7
- package/src/compat/a63-from-shadcn.css +10 -0
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +118 -16
- 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 +83 -58
- package/src/contracts/badge.resolver.json +449 -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/roles.json +172 -0
- package/src/tailwind/theme.css +107 -23
- 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 +61 -0
- package/src/tokens/brand-action.resolver.json +137 -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 +82 -3
- package/src/tokens/figma-parity.browser.test.ts +270 -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 +3 -1
- package/src/tokens/foundation/fonts.tokens.json +6 -1
- 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 +211 -47
- package/src/tokens/semantics.resolver.json +1296 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/swift-parity.browser.test.ts +141 -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 -32
- package/src/tokens/foundation/aliases.tokens.json +0 -105
|
@@ -0,0 +1,172 @@
|
|
|
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-control",
|
|
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
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "Charts",
|
|
72
|
+
"roles": {
|
|
73
|
+
"chart-1": "--a63-chart-1",
|
|
74
|
+
"chart-2": "--a63-chart-2",
|
|
75
|
+
"chart-3": "--a63-chart-3",
|
|
76
|
+
"chart-4": "--a63-chart-4",
|
|
77
|
+
"chart-5": "--a63-chart-5"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"label": "Categories",
|
|
82
|
+
"roles": {
|
|
83
|
+
"category-red": "--a63-category-red",
|
|
84
|
+
"category-red-subtle": "--a63-category-red-subtle",
|
|
85
|
+
"category-red-subtle-foreground": "--a63-category-red-subtle-foreground",
|
|
86
|
+
"category-orange": "--a63-category-orange",
|
|
87
|
+
"category-orange-subtle": "--a63-category-orange-subtle",
|
|
88
|
+
"category-orange-subtle-foreground": "--a63-category-orange-subtle-foreground",
|
|
89
|
+
"category-amber": "--a63-category-amber",
|
|
90
|
+
"category-amber-subtle": "--a63-category-amber-subtle",
|
|
91
|
+
"category-amber-subtle-foreground": "--a63-category-amber-subtle-foreground",
|
|
92
|
+
"category-yellow": "--a63-category-yellow",
|
|
93
|
+
"category-yellow-subtle": "--a63-category-yellow-subtle",
|
|
94
|
+
"category-yellow-subtle-foreground": "--a63-category-yellow-subtle-foreground",
|
|
95
|
+
"category-lime": "--a63-category-lime",
|
|
96
|
+
"category-lime-subtle": "--a63-category-lime-subtle",
|
|
97
|
+
"category-lime-subtle-foreground": "--a63-category-lime-subtle-foreground",
|
|
98
|
+
"category-green": "--a63-category-green",
|
|
99
|
+
"category-green-subtle": "--a63-category-green-subtle",
|
|
100
|
+
"category-green-subtle-foreground": "--a63-category-green-subtle-foreground",
|
|
101
|
+
"category-emerald": "--a63-category-emerald",
|
|
102
|
+
"category-emerald-subtle": "--a63-category-emerald-subtle",
|
|
103
|
+
"category-emerald-subtle-foreground": "--a63-category-emerald-subtle-foreground",
|
|
104
|
+
"category-teal": "--a63-category-teal",
|
|
105
|
+
"category-teal-subtle": "--a63-category-teal-subtle",
|
|
106
|
+
"category-teal-subtle-foreground": "--a63-category-teal-subtle-foreground",
|
|
107
|
+
"category-cyan": "--a63-category-cyan",
|
|
108
|
+
"category-cyan-subtle": "--a63-category-cyan-subtle",
|
|
109
|
+
"category-cyan-subtle-foreground": "--a63-category-cyan-subtle-foreground",
|
|
110
|
+
"category-sky": "--a63-category-sky",
|
|
111
|
+
"category-sky-subtle": "--a63-category-sky-subtle",
|
|
112
|
+
"category-sky-subtle-foreground": "--a63-category-sky-subtle-foreground",
|
|
113
|
+
"category-blue": "--a63-category-blue",
|
|
114
|
+
"category-blue-subtle": "--a63-category-blue-subtle",
|
|
115
|
+
"category-blue-subtle-foreground": "--a63-category-blue-subtle-foreground",
|
|
116
|
+
"category-indigo": "--a63-category-indigo",
|
|
117
|
+
"category-indigo-subtle": "--a63-category-indigo-subtle",
|
|
118
|
+
"category-indigo-subtle-foreground": "--a63-category-indigo-subtle-foreground",
|
|
119
|
+
"category-violet": "--a63-category-violet",
|
|
120
|
+
"category-violet-subtle": "--a63-category-violet-subtle",
|
|
121
|
+
"category-violet-subtle-foreground": "--a63-category-violet-subtle-foreground",
|
|
122
|
+
"category-purple": "--a63-category-purple",
|
|
123
|
+
"category-purple-subtle": "--a63-category-purple-subtle",
|
|
124
|
+
"category-purple-subtle-foreground": "--a63-category-purple-subtle-foreground",
|
|
125
|
+
"category-fuchsia": "--a63-category-fuchsia",
|
|
126
|
+
"category-fuchsia-subtle": "--a63-category-fuchsia-subtle",
|
|
127
|
+
"category-fuchsia-subtle-foreground": "--a63-category-fuchsia-subtle-foreground",
|
|
128
|
+
"category-pink": "--a63-category-pink",
|
|
129
|
+
"category-pink-subtle": "--a63-category-pink-subtle",
|
|
130
|
+
"category-pink-subtle-foreground": "--a63-category-pink-subtle-foreground",
|
|
131
|
+
"category-rose": "--a63-category-rose",
|
|
132
|
+
"category-rose-subtle": "--a63-category-rose-subtle",
|
|
133
|
+
"category-rose-subtle-foreground": "--a63-category-rose-subtle-foreground",
|
|
134
|
+
"category-slate": "--a63-category-slate",
|
|
135
|
+
"category-slate-subtle": "--a63-category-slate-subtle",
|
|
136
|
+
"category-slate-subtle-foreground": "--a63-category-slate-subtle-foreground",
|
|
137
|
+
"category-gray": "--a63-category-gray",
|
|
138
|
+
"category-gray-subtle": "--a63-category-gray-subtle",
|
|
139
|
+
"category-gray-subtle-foreground": "--a63-category-gray-subtle-foreground",
|
|
140
|
+
"category-zinc": "--a63-category-zinc",
|
|
141
|
+
"category-zinc-subtle": "--a63-category-zinc-subtle",
|
|
142
|
+
"category-zinc-subtle-foreground": "--a63-category-zinc-subtle-foreground",
|
|
143
|
+
"category-neutral": "--a63-category-neutral",
|
|
144
|
+
"category-neutral-subtle": "--a63-category-neutral-subtle",
|
|
145
|
+
"category-neutral-subtle-foreground": "--a63-category-neutral-subtle-foreground",
|
|
146
|
+
"category-stone": "--a63-category-stone",
|
|
147
|
+
"category-stone-subtle": "--a63-category-stone-subtle",
|
|
148
|
+
"category-stone-subtle-foreground": "--a63-category-stone-subtle-foreground"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"label": "Sidebar",
|
|
153
|
+
"roles": {
|
|
154
|
+
"sidebar": "--a63-surface-sidebar",
|
|
155
|
+
"sidebar-foreground": "--a63-text-primary",
|
|
156
|
+
"sidebar-primary": "--a63-action-primary",
|
|
157
|
+
"sidebar-primary-foreground": "--a63-action-primary-foreground",
|
|
158
|
+
"sidebar-accent": "--a63-surface-control-hover",
|
|
159
|
+
"sidebar-accent-foreground": "--a63-text-primary",
|
|
160
|
+
"sidebar-border": "--a63-border-subtle",
|
|
161
|
+
"sidebar-ring": "--a63-focus-ring"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"label": "Fixed mode references",
|
|
166
|
+
"roles": {
|
|
167
|
+
"light": "--surface-light-1",
|
|
168
|
+
"dark": "--surface-dark-1"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
package/src/tailwind/theme.css
CHANGED
|
@@ -305,8 +305,6 @@
|
|
|
305
305
|
--ease-spring: var(--ease-spring);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
/* tokens/foundation/aliases.css */
|
|
309
|
-
|
|
310
308
|
/* Tailwind CSS v4 @theme inline */
|
|
311
309
|
@theme inline {
|
|
312
310
|
--duration-fast: var(--duration-fast);
|
|
@@ -342,39 +340,125 @@
|
|
|
342
340
|
--surface-light-9: var(--surface-light-9);
|
|
343
341
|
}
|
|
344
342
|
|
|
345
|
-
/*
|
|
343
|
+
/* Semantic roles — generated from src/tailwind/roles.json by scripts/generate-role-bridges.mjs; do not edit. */
|
|
346
344
|
@theme inline {
|
|
347
|
-
--color-accent: var(--a63-surface-control-hover);
|
|
348
|
-
--color-accent-foreground: var(--a63-text-primary);
|
|
349
345
|
--color-background: var(--a63-surface-page);
|
|
350
|
-
--color-
|
|
346
|
+
--color-foreground: var(--a63-text-primary);
|
|
351
347
|
--color-card: var(--a63-surface-panel);
|
|
352
348
|
--color-card-foreground: var(--a63-text-primary);
|
|
353
|
-
--color-dark: var(--surface-dark-1);
|
|
354
|
-
--color-destructive: var(--a63-action-danger);
|
|
355
|
-
--color-foreground: var(--a63-text-primary);
|
|
356
|
-
--color-info: var(--a63-status-info);
|
|
357
|
-
--color-input: var(--a63-border-control);
|
|
358
|
-
--color-light: var(--surface-light-1);
|
|
359
|
-
--color-muted: var(--a63-surface-muted);
|
|
360
|
-
--color-muted-foreground: var(--a63-text-secondary);
|
|
361
349
|
--color-popover: var(--a63-surface-overlay);
|
|
362
350
|
--color-popover-foreground: var(--a63-text-primary);
|
|
363
|
-
--color-
|
|
364
|
-
--color-
|
|
365
|
-
--color-ring: var(--a63-focus-ring);
|
|
351
|
+
--color-muted: var(--a63-surface-muted);
|
|
352
|
+
--color-muted-foreground: var(--a63-text-secondary);
|
|
366
353
|
--color-secondary: var(--a63-surface-muted);
|
|
367
354
|
--color-secondary-foreground: var(--a63-text-secondary);
|
|
368
|
-
--color-
|
|
369
|
-
--color-
|
|
370
|
-
--color-
|
|
371
|
-
--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-control);
|
|
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-chart-1: var(--a63-chart-1);
|
|
382
|
+
--color-chart-2: var(--a63-chart-2);
|
|
383
|
+
--color-chart-3: var(--a63-chart-3);
|
|
384
|
+
--color-chart-4: var(--a63-chart-4);
|
|
385
|
+
--color-chart-5: var(--a63-chart-5);
|
|
386
|
+
--color-category-red: var(--a63-category-red);
|
|
387
|
+
--color-category-red-subtle: var(--a63-category-red-subtle);
|
|
388
|
+
--color-category-red-subtle-foreground: var(--a63-category-red-subtle-foreground);
|
|
389
|
+
--color-category-orange: var(--a63-category-orange);
|
|
390
|
+
--color-category-orange-subtle: var(--a63-category-orange-subtle);
|
|
391
|
+
--color-category-orange-subtle-foreground: var(--a63-category-orange-subtle-foreground);
|
|
392
|
+
--color-category-amber: var(--a63-category-amber);
|
|
393
|
+
--color-category-amber-subtle: var(--a63-category-amber-subtle);
|
|
394
|
+
--color-category-amber-subtle-foreground: var(--a63-category-amber-subtle-foreground);
|
|
395
|
+
--color-category-yellow: var(--a63-category-yellow);
|
|
396
|
+
--color-category-yellow-subtle: var(--a63-category-yellow-subtle);
|
|
397
|
+
--color-category-yellow-subtle-foreground: var(--a63-category-yellow-subtle-foreground);
|
|
398
|
+
--color-category-lime: var(--a63-category-lime);
|
|
399
|
+
--color-category-lime-subtle: var(--a63-category-lime-subtle);
|
|
400
|
+
--color-category-lime-subtle-foreground: var(--a63-category-lime-subtle-foreground);
|
|
401
|
+
--color-category-green: var(--a63-category-green);
|
|
402
|
+
--color-category-green-subtle: var(--a63-category-green-subtle);
|
|
403
|
+
--color-category-green-subtle-foreground: var(--a63-category-green-subtle-foreground);
|
|
404
|
+
--color-category-emerald: var(--a63-category-emerald);
|
|
405
|
+
--color-category-emerald-subtle: var(--a63-category-emerald-subtle);
|
|
406
|
+
--color-category-emerald-subtle-foreground: var(--a63-category-emerald-subtle-foreground);
|
|
407
|
+
--color-category-teal: var(--a63-category-teal);
|
|
408
|
+
--color-category-teal-subtle: var(--a63-category-teal-subtle);
|
|
409
|
+
--color-category-teal-subtle-foreground: var(--a63-category-teal-subtle-foreground);
|
|
410
|
+
--color-category-cyan: var(--a63-category-cyan);
|
|
411
|
+
--color-category-cyan-subtle: var(--a63-category-cyan-subtle);
|
|
412
|
+
--color-category-cyan-subtle-foreground: var(--a63-category-cyan-subtle-foreground);
|
|
413
|
+
--color-category-sky: var(--a63-category-sky);
|
|
414
|
+
--color-category-sky-subtle: var(--a63-category-sky-subtle);
|
|
415
|
+
--color-category-sky-subtle-foreground: var(--a63-category-sky-subtle-foreground);
|
|
416
|
+
--color-category-blue: var(--a63-category-blue);
|
|
417
|
+
--color-category-blue-subtle: var(--a63-category-blue-subtle);
|
|
418
|
+
--color-category-blue-subtle-foreground: var(--a63-category-blue-subtle-foreground);
|
|
419
|
+
--color-category-indigo: var(--a63-category-indigo);
|
|
420
|
+
--color-category-indigo-subtle: var(--a63-category-indigo-subtle);
|
|
421
|
+
--color-category-indigo-subtle-foreground: var(--a63-category-indigo-subtle-foreground);
|
|
422
|
+
--color-category-violet: var(--a63-category-violet);
|
|
423
|
+
--color-category-violet-subtle: var(--a63-category-violet-subtle);
|
|
424
|
+
--color-category-violet-subtle-foreground: var(--a63-category-violet-subtle-foreground);
|
|
425
|
+
--color-category-purple: var(--a63-category-purple);
|
|
426
|
+
--color-category-purple-subtle: var(--a63-category-purple-subtle);
|
|
427
|
+
--color-category-purple-subtle-foreground: var(--a63-category-purple-subtle-foreground);
|
|
428
|
+
--color-category-fuchsia: var(--a63-category-fuchsia);
|
|
429
|
+
--color-category-fuchsia-subtle: var(--a63-category-fuchsia-subtle);
|
|
430
|
+
--color-category-fuchsia-subtle-foreground: var(--a63-category-fuchsia-subtle-foreground);
|
|
431
|
+
--color-category-pink: var(--a63-category-pink);
|
|
432
|
+
--color-category-pink-subtle: var(--a63-category-pink-subtle);
|
|
433
|
+
--color-category-pink-subtle-foreground: var(--a63-category-pink-subtle-foreground);
|
|
434
|
+
--color-category-rose: var(--a63-category-rose);
|
|
435
|
+
--color-category-rose-subtle: var(--a63-category-rose-subtle);
|
|
436
|
+
--color-category-rose-subtle-foreground: var(--a63-category-rose-subtle-foreground);
|
|
437
|
+
--color-category-slate: var(--a63-category-slate);
|
|
438
|
+
--color-category-slate-subtle: var(--a63-category-slate-subtle);
|
|
439
|
+
--color-category-slate-subtle-foreground: var(--a63-category-slate-subtle-foreground);
|
|
440
|
+
--color-category-gray: var(--a63-category-gray);
|
|
441
|
+
--color-category-gray-subtle: var(--a63-category-gray-subtle);
|
|
442
|
+
--color-category-gray-subtle-foreground: var(--a63-category-gray-subtle-foreground);
|
|
443
|
+
--color-category-zinc: var(--a63-category-zinc);
|
|
444
|
+
--color-category-zinc-subtle: var(--a63-category-zinc-subtle);
|
|
445
|
+
--color-category-zinc-subtle-foreground: var(--a63-category-zinc-subtle-foreground);
|
|
446
|
+
--color-category-neutral: var(--a63-category-neutral);
|
|
447
|
+
--color-category-neutral-subtle: var(--a63-category-neutral-subtle);
|
|
448
|
+
--color-category-neutral-subtle-foreground: var(--a63-category-neutral-subtle-foreground);
|
|
449
|
+
--color-category-stone: var(--a63-category-stone);
|
|
450
|
+
--color-category-stone-subtle: var(--a63-category-stone-subtle);
|
|
451
|
+
--color-category-stone-subtle-foreground: var(--a63-category-stone-subtle-foreground);
|
|
452
|
+
--color-sidebar: var(--a63-surface-sidebar);
|
|
372
453
|
--color-sidebar-foreground: var(--a63-text-primary);
|
|
373
454
|
--color-sidebar-primary: var(--a63-action-primary);
|
|
374
455
|
--color-sidebar-primary-foreground: var(--a63-action-primary-foreground);
|
|
456
|
+
--color-sidebar-accent: var(--a63-surface-control-hover);
|
|
457
|
+
--color-sidebar-accent-foreground: var(--a63-text-primary);
|
|
458
|
+
--color-sidebar-border: var(--a63-border-subtle);
|
|
375
459
|
--color-sidebar-ring: var(--a63-focus-ring);
|
|
376
|
-
--color-
|
|
377
|
-
--color-
|
|
460
|
+
--color-light: var(--surface-light-1);
|
|
461
|
+
--color-dark: var(--surface-dark-1);
|
|
378
462
|
}
|
|
379
463
|
|
|
380
464
|
/* tokens/foundation/effects.css */
|
package/src/themes/aqua.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/themes/aqua.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
|
* Aqua theme — glossy translucent gel.
|
|
3
6
|
*
|
|
4
7
|
* Lean value-overrides — themes override VALUES, never anatomy. Captures the
|
|
@@ -9,32 +12,19 @@
|
|
|
9
12
|
*
|
|
10
13
|
* Gel material is theme-private under this selector. Shared blur ladder stops
|
|
11
14
|
* (--blur-lg) come from foundation; the 20px gel blur is skin-only.
|
|
15
|
+
*
|
|
16
|
+
* Brand-tinted halo removed: weather keeps the shared aqua drop so the tile
|
|
17
|
+
* sits on the same elevation as every other widget.
|
|
12
18
|
*/
|
|
19
|
+
@import './aqua.native.css';
|
|
13
20
|
|
|
14
21
|
[data-a63-theme='aqua'] {
|
|
15
22
|
/* Theme-private helpers reused across contract knobs. */
|
|
16
23
|
--aqua-overlay-drop:
|
|
17
24
|
0 12px 32px -8px color-mix(in oklch, black 30%, transparent),
|
|
18
25
|
0 2px 8px -3px color-mix(in oklch, black 16%, transparent);
|
|
19
|
-
|
|
20
26
|
--a63-control-radius: var(--radius-md);
|
|
21
27
|
--a63-control-focus-ring-width: 4px;
|
|
22
|
-
/* Two layers, matching production: (1) a DEFINED rounded reflection panel in the
|
|
23
|
-
top of the button (painted by the recipe ::after) — a bright white→transparent
|
|
24
|
-
glass highlight with a crisp shape and edges; (2) a subtle near-white bg dome
|
|
25
|
-
underneath for the overall convex sheen. */
|
|
26
|
-
--a63-control-highlight: linear-gradient(
|
|
27
|
-
to bottom,
|
|
28
|
-
color-mix(in oklch, white 82%, transparent) 0%,
|
|
29
|
-
color-mix(in oklch, white 30%, transparent) 55%,
|
|
30
|
-
transparent 100%
|
|
31
|
-
);
|
|
32
|
-
--a63-control-gloss: radial-gradient(
|
|
33
|
-
76% 58% at 50% -2%,
|
|
34
|
-
color-mix(in oklch, white 46%, transparent) 0%,
|
|
35
|
-
color-mix(in oklch, white 12%, transparent) 46%,
|
|
36
|
-
transparent 72%
|
|
37
|
-
);
|
|
38
28
|
--a63-control-shadow-tint: 40%;
|
|
39
29
|
--a63-control-shadow:
|
|
40
30
|
inset 0 1px 0 color-mix(in oklch, white 85%, transparent),
|
|
@@ -54,54 +44,21 @@
|
|
|
54
44
|
inset 0 -1px 0 color-mix(in oklch, white 60%, transparent);
|
|
55
45
|
--a63-overlay-shadow:
|
|
56
46
|
inset 0 1px 0 color-mix(in oklch, white 60%, transparent), var(--aqua-overlay-drop);
|
|
57
|
-
|
|
58
|
-
in --a63-overlay-shadow, now able to gradate across the whole frame. */
|
|
59
|
-
--a63-widget-rim-image: linear-gradient(
|
|
60
|
-
to bottom,
|
|
61
|
-
color-mix(in oklch, white 60%, transparent),
|
|
62
|
-
color-mix(in oklch, white 12%, transparent)
|
|
63
|
-
);
|
|
64
|
-
--a63-widget-rim-backdrop: saturate(1.6) blur(20px);
|
|
47
|
+
--a63-overlay-highlight-opacity: 0.75;
|
|
65
48
|
--a63-widget-shadow: var(--aqua-overlay-drop);
|
|
66
49
|
--a63-surface-shadow:
|
|
67
50
|
inset 0 1px 0 color-mix(in oklch, white 55%, transparent),
|
|
68
51
|
0 6px 16px -6px color-mix(in oklch, black 22%, transparent),
|
|
69
52
|
0 1px 3px -1px color-mix(in oklch, black 12%, transparent);
|
|
70
53
|
/* Aqua surfaces/overlays are glassy: translucent backdrop blur + a top gel
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
sheen + a bright specular rim. Shared frost uses --blur-lg; gel blur is
|
|
55
|
+
skin-only (between lg and xl). */
|
|
73
56
|
--a63-surface-backdrop: saturate(1.4) blur(var(--blur-lg));
|
|
74
|
-
--a63-overlay-backdrop: saturate(1.6) blur(20px);
|
|
75
|
-
--a63-surface-gloss: linear-gradient(
|
|
76
|
-
to bottom,
|
|
77
|
-
color-mix(in oklch, white 22%, transparent) 0%,
|
|
78
|
-
color-mix(in oklch, white 4%, transparent) 48%,
|
|
79
|
-
transparent 72%
|
|
80
|
-
);
|
|
81
|
-
--a63-overlay-gloss: var(--a63-surface-gloss);
|
|
82
|
-
/* Menus need a quieter, more even backplate than larger Aqua overlays so
|
|
83
|
-
dense rows remain legible from top to bottom. */
|
|
84
|
-
--a63-menu-popup-background: color-mix(in oklch, var(--a63-surface-overlay) 92%, white);
|
|
85
|
-
--a63-menu-popup-gloss: linear-gradient(
|
|
86
|
-
to bottom,
|
|
87
|
-
color-mix(in oklch, white 10%, transparent),
|
|
88
|
-
transparent 64%
|
|
89
|
-
);
|
|
90
57
|
--a63-surface-highlight: color-mix(in oklch, white 55%, transparent);
|
|
91
|
-
--a63-overlay-highlight: color-mix(in oklch, white 60%, transparent);
|
|
92
58
|
--a63-surface-highlight-opacity: 0.75;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
dialogs. Static CONTENT surfaces stay clean. */
|
|
97
|
-
--a63-overlay-texture-image: repeating-linear-gradient(
|
|
98
|
-
to bottom,
|
|
99
|
-
color-mix(in oklch, white 10%, transparent) 0px,
|
|
100
|
-
color-mix(in oklch, white 10%, transparent) 1px,
|
|
101
|
-
transparent 1px,
|
|
102
|
-
transparent 2px
|
|
103
|
-
);
|
|
104
|
-
--a63-overlay-texture-blend: soft-light;
|
|
59
|
+
/* Menus need a quieter, more even backplate than larger Aqua overlays so
|
|
60
|
+
dense rows remain legible from top to bottom. */
|
|
61
|
+
--a63-menu-popup-background: color-mix(in oklab, var(--a63-surface-overlay) 92%, white);
|
|
105
62
|
--a63-track-shadow:
|
|
106
63
|
inset 0 2px 3px color-mix(in oklch, black 14%, transparent),
|
|
107
64
|
inset 0 -1px 0 color-mix(in oklch, white 45%, transparent);
|
|
@@ -114,16 +71,10 @@
|
|
|
114
71
|
--a63-choice-box-shadow-checked:
|
|
115
72
|
inset 0 1px 0 color-mix(in oklch, white 34%, transparent),
|
|
116
73
|
inset 0 -1px 1px color-mix(in oklch, black 16%, transparent);
|
|
117
|
-
--a63-choice-indicator-gloss: linear-gradient(
|
|
118
|
-
to bottom,
|
|
119
|
-
color-mix(in oklch, white 34%, transparent),
|
|
120
|
-
transparent 58%
|
|
121
|
-
);
|
|
122
74
|
/* ── Segment / ToggleGroup (Figma A63-System 432:1335) ─────────────────────
|
|
123
|
-
|
|
124
|
-
|
|
75
|
+
Welded gel CELLS own the chrome. Resting = soft card→muted wash + quiet
|
|
76
|
+
mid-line sheen. Selected = pressed-IN plate + restrained gel + inset. */
|
|
125
77
|
--a63-segment-track-background: var(--a63-surface-muted);
|
|
126
|
-
--a63-segment-track-gloss: none;
|
|
127
78
|
--a63-segment-track-shadow: var(--a63-track-shadow);
|
|
128
79
|
--a63-segment-track-border: var(--a63-border-subtle);
|
|
129
80
|
--a63-segment-foreground: var(--a63-text-secondary);
|
|
@@ -140,13 +91,6 @@
|
|
|
140
91
|
linear-gradient(180deg, var(--a63-surface-panel) 0%, var(--a63-surface-muted) 100%);
|
|
141
92
|
--a63-segment-selected-background: var(--a63-surface-panel);
|
|
142
93
|
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
143
|
-
--a63-segment-selected-gloss: linear-gradient(
|
|
144
|
-
180deg,
|
|
145
|
-
color-mix(in oklch, white 28%, transparent) 0%,
|
|
146
|
-
color-mix(in oklch, white 10%, transparent) 42%,
|
|
147
|
-
color-mix(in oklch, black 10%, transparent) 58%,
|
|
148
|
-
color-mix(in oklch, white 4%, transparent) 100%
|
|
149
|
-
);
|
|
150
94
|
--a63-segment-selected-shadow:
|
|
151
95
|
inset 0 1px 0 color-mix(in oklch, white 35%, transparent),
|
|
152
96
|
inset 0 2px 6px color-mix(in oklch, black 14%, transparent);
|
|
@@ -162,12 +106,11 @@
|
|
|
162
106
|
--a63-weather-muted-foreground: color-mix(in oklch, white 76%, transparent);
|
|
163
107
|
--a63-weather-divider-color: color-mix(in oklch, white 24%, transparent);
|
|
164
108
|
--a63-weather-text-shadow: 0 1px 2px color-mix(in oklch, black 42%, transparent);
|
|
165
|
-
--a63-weather-backdrop: none;
|
|
166
109
|
}
|
|
167
110
|
|
|
168
111
|
[data-a63-theme='aqua']:is(:root, .light, [data-a63-mode='light']) {
|
|
169
|
-
--a63-surface-page: color-mix(in
|
|
170
|
-
--a63-surface-panel: color-mix(in
|
|
112
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-light-2) 95%, var(--color-b1-500));
|
|
113
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-light-1) 96%, var(--color-b1-500));
|
|
171
114
|
--a63-weather-border-color: color-mix(in oklch, var(--a63-action-primary) 32%, transparent);
|
|
172
115
|
--a63-weather-background-image:
|
|
173
116
|
radial-gradient(
|
|
@@ -185,32 +128,30 @@
|
|
|
185
128
|
color-mix(in oklch, var(--a63-action-primary) 78%, white 10%),
|
|
186
129
|
color-mix(in oklch, var(--a63-action-primary) 70%, var(--color-b1-900) 30%)
|
|
187
130
|
);
|
|
188
|
-
/* Brand-tinted halo removed: weather keeps the shared aqua drop so the tile
|
|
189
|
-
sits on the same elevation as every other widget. */
|
|
190
131
|
}
|
|
191
132
|
|
|
192
133
|
[data-a63-theme='aqua']:is(.dark, [data-a63-mode='dark']) {
|
|
193
|
-
--a63-surface-page: color-mix(in
|
|
194
|
-
--a63-surface-panel: color-mix(in
|
|
134
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-dark-1) 94%, var(--color-b1-500));
|
|
135
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-dark-2) 94%, var(--color-b1-500));
|
|
195
136
|
/* Lift neutral menu rows above the striped gray backplate without turning the
|
|
196
|
-
|
|
137
|
+
hover state into the stronger primary-selection treatment. */
|
|
197
138
|
--a63-menu-highlight-background: color-mix(in oklch, white 12%, transparent);
|
|
198
139
|
--a63-weather-border-color: color-mix(in oklch, white 14%, transparent);
|
|
199
140
|
--a63-weather-background-image:
|
|
200
141
|
radial-gradient(
|
|
201
142
|
120% 90% at 10% 0%,
|
|
202
|
-
color-mix(in
|
|
143
|
+
color-mix(in oklab, white 18%, transparent),
|
|
203
144
|
transparent 48%
|
|
204
145
|
),
|
|
205
146
|
radial-gradient(
|
|
206
147
|
88% 110% at 100% 0%,
|
|
207
|
-
color-mix(in
|
|
148
|
+
color-mix(in oklab, var(--a63-action-primary) 30%, transparent),
|
|
208
149
|
transparent 58%
|
|
209
150
|
),
|
|
210
151
|
linear-gradient(
|
|
211
152
|
135deg,
|
|
212
|
-
color-mix(in
|
|
213
|
-
color-mix(in
|
|
153
|
+
color-mix(in oklab, var(--a63-action-primary) 58%, var(--surface-dark-6) 42%),
|
|
154
|
+
color-mix(in oklab, var(--a63-action-primary) 36%, var(--surface-dark-3) 64%)
|
|
214
155
|
);
|
|
215
156
|
/* Dark gel: quieter sheen so the mid-line doesn't blow out to a white band. */
|
|
216
157
|
--a63-segment-gloss:
|
|
@@ -225,12 +166,6 @@
|
|
|
225
166
|
color-mix(in oklch, var(--a63-surface-panel) 88%, white) 0%,
|
|
226
167
|
var(--a63-surface-muted) 100%
|
|
227
168
|
);
|
|
228
|
-
--a63-segment-selected-gloss: linear-gradient(
|
|
229
|
-
180deg,
|
|
230
|
-
color-mix(in oklch, white 18%, transparent) 0%,
|
|
231
|
-
color-mix(in oklch, white 4%, transparent) 40%,
|
|
232
|
-
color-mix(in oklch, black 18%, transparent) 100%
|
|
233
|
-
);
|
|
234
169
|
--a63-segment-selected-shadow:
|
|
235
170
|
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
236
171
|
inset 0 3px 8px color-mix(in oklch, black 28%, transparent);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of aqua.css: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from aqua.resolver.json. Each declaration here is listed
|
|
4
|
+
* in native-values.json; see docs/design-system/token-single-source.md.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-a63-theme='aqua'] {
|
|
8
|
+
/* Two layers, matching production: (1) a DEFINED rounded reflection panel in the
|
|
9
|
+
top of the button (painted by the recipe ::after) — a bright white→transparent
|
|
10
|
+
glass highlight with a crisp shape and edges; (2) a subtle near-white bg dome
|
|
11
|
+
underneath for the overall convex sheen. */
|
|
12
|
+
--a63-control-highlight: linear-gradient(
|
|
13
|
+
to bottom,
|
|
14
|
+
color-mix(in oklch, white 82%, transparent) 0%,
|
|
15
|
+
color-mix(in oklch, white 30%, transparent) 55%,
|
|
16
|
+
transparent 100%
|
|
17
|
+
);
|
|
18
|
+
--a63-control-gloss: radial-gradient(
|
|
19
|
+
76% 58% at 50% -2%,
|
|
20
|
+
color-mix(in oklch, white 46%, transparent) 0%,
|
|
21
|
+
color-mix(in oklch, white 12%, transparent) 46%,
|
|
22
|
+
transparent 72%
|
|
23
|
+
);
|
|
24
|
+
/* Gel rim: bright specular top fading to clear — the inset that used to live
|
|
25
|
+
in --a63-overlay-shadow, now able to gradate across the whole frame. */
|
|
26
|
+
--a63-widget-rim-image: linear-gradient(
|
|
27
|
+
to bottom,
|
|
28
|
+
color-mix(in oklch, white 60%, transparent),
|
|
29
|
+
color-mix(in oklch, white 12%, transparent)
|
|
30
|
+
);
|
|
31
|
+
--a63-widget-rim-backdrop: saturate(1.6) blur(20px);
|
|
32
|
+
--a63-overlay-backdrop: saturate(1.6) blur(20px);
|
|
33
|
+
--a63-surface-gloss: linear-gradient(
|
|
34
|
+
to bottom,
|
|
35
|
+
color-mix(in oklch, white 22%, transparent) 0%,
|
|
36
|
+
color-mix(in oklch, white 4%, transparent) 48%,
|
|
37
|
+
transparent 72%
|
|
38
|
+
);
|
|
39
|
+
--a63-overlay-gloss: var(--a63-surface-gloss);
|
|
40
|
+
--a63-menu-popup-gloss: linear-gradient(
|
|
41
|
+
to bottom,
|
|
42
|
+
color-mix(in oklch, white 10%, transparent),
|
|
43
|
+
transparent 64%
|
|
44
|
+
);
|
|
45
|
+
--a63-overlay-highlight: color-mix(in oklch, white 60%, transparent);
|
|
46
|
+
/* Aqua pinstripe — faint horizontal hairlines, the Aqua signature. CHROME/
|
|
47
|
+
floating ONLY (overlay contract): window chrome, widgets, menus, popovers,
|
|
48
|
+
dialogs. Static CONTENT surfaces stay clean. */
|
|
49
|
+
--a63-overlay-texture-image: repeating-linear-gradient(
|
|
50
|
+
to bottom,
|
|
51
|
+
color-mix(in oklch, white 10%, transparent) 0px,
|
|
52
|
+
color-mix(in oklch, white 10%, transparent) 1px,
|
|
53
|
+
transparent 1px,
|
|
54
|
+
transparent 2px
|
|
55
|
+
);
|
|
56
|
+
--a63-overlay-texture-blend: soft-light;
|
|
57
|
+
--a63-choice-indicator-gloss: linear-gradient(
|
|
58
|
+
to bottom,
|
|
59
|
+
color-mix(in oklch, white 34%, transparent),
|
|
60
|
+
transparent 58%
|
|
61
|
+
);
|
|
62
|
+
--a63-segment-track-gloss: none;
|
|
63
|
+
--a63-segment-selected-gloss: linear-gradient(
|
|
64
|
+
180deg,
|
|
65
|
+
color-mix(in oklch, white 28%, transparent) 0%,
|
|
66
|
+
color-mix(in oklch, white 10%, transparent) 42%,
|
|
67
|
+
color-mix(in oklch, black 10%, transparent) 58%,
|
|
68
|
+
color-mix(in oklch, white 4%, transparent) 100%
|
|
69
|
+
);
|
|
70
|
+
--a63-weather-backdrop: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-a63-theme='aqua']:is(.dark, [data-a63-mode='dark']) {
|
|
74
|
+
--a63-segment-selected-gloss: linear-gradient(
|
|
75
|
+
180deg,
|
|
76
|
+
color-mix(in oklch, white 18%, transparent) 0%,
|
|
77
|
+
color-mix(in oklch, white 4%, transparent) 40%,
|
|
78
|
+
color-mix(in oklch, black 18%, transparent) 100%
|
|
79
|
+
);
|
|
80
|
+
}
|