@atom63/styles 0.1.0-beta.5 → 0.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -8
- package/generated/atom63.figma-sync.json +3763 -1108
- package/generated/atom63.tokens.json +3809 -829
- package/package.json +5 -6
- package/src/compat/a63-from-shadcn.css +10 -0
- package/src/contracts/action.css +4 -3
- package/src/contracts/action.native.css +11 -0
- package/src/contracts/action.tokens.json +66 -0
- package/src/contracts/badge.css +28 -19
- package/src/contracts/badge.resolver.json +366 -0
- package/src/contracts/choice.css +4 -1
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +43 -52
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +245 -0
- package/src/contracts/environment.css +45 -49
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +569 -0
- package/src/contracts/field.css +3 -1
- package/src/contracts/field.tokens.json +40 -0
- package/src/contracts/marker.css +6 -4
- package/src/contracts/marker.tokens.json +15 -0
- package/src/contracts/menu.css +25 -61
- package/src/contracts/menu.native.css +10 -0
- package/src/contracts/menu.resolver.json +122 -0
- package/src/contracts/overlay.css +11 -13
- package/src/contracts/overlay.native.css +13 -0
- package/src/contracts/overlay.tokens.json +103 -0
- package/src/contracts/segment.css +22 -68
- package/src/contracts/segment.tokens.json +19 -0
- package/src/contracts/selection.css +3 -1
- package/src/contracts/selection.tokens.json +37 -0
- package/src/contracts/skeleton.css +3 -0
- package/src/contracts/skeleton.resolver.json +66 -0
- package/src/contracts/surface.css +13 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +97 -0
- package/src/contracts/toggle.css +3 -1
- package/src/contracts/toggle.tokens.json +49 -0
- package/src/contracts/track.css +3 -1
- package/src/contracts/track.tokens.json +39 -0
- package/src/contracts/trigger.css +5 -2
- package/src/contracts/trigger.native.css +9 -0
- package/src/contracts/trigger.tokens.json +58 -0
- package/src/contracts/widget.css +41 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1104 -0
- package/src/tailwind/theme.css +0 -2
- package/src/themes/aqua.css +24 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1292 -0
- package/src/themes/modern.css +10 -14
- package/src/themes/modern.native.css +16 -0
- package/src/themes/modern.resolver.json +350 -0
- package/src/themes/retro.css +21 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +788 -0
- package/src/themes/terminal.css +34 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +517 -0
- package/src/tokens/brand-action.css +50 -0
- package/src/tokens/brand-action.resolver.json +118 -0
- package/src/tokens/brand-ramp.css +108 -0
- package/src/tokens/brand-ramp.resolver.json +418 -0
- package/src/tokens/brand.css +6 -146
- package/src/tokens/color-mix-space.browser.test.ts +79 -0
- package/src/tokens/contrast.browser.test.ts +47 -3
- package/src/tokens/figma-parity.browser.test.ts +257 -0
- package/src/tokens/font.css +6 -0
- package/src/tokens/font.resolver.json +107 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +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 +59 -43
- package/src/tokens/semantics.resolver.json +402 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/swift-parity.browser.test.ts +137 -0
- package/src/tokens/type-scale.css +6 -0
- package/src/tokens/type-scale.resolver.json +67 -0
- package/generated/atom63.figma-tokens.json +0 -21661
- package/src/tokens/foundation/aliases.css +0 -32
- package/src/tokens/foundation/aliases.tokens.json +0 -105
package/src/themes/modern.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/themes/modern.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
|
* Modern theme — the default.
|
|
3
6
|
*
|
|
4
7
|
* Otherwise the identity theme (base --a63-* values ship in tokens/semantics.css),
|
|
@@ -8,35 +11,28 @@
|
|
|
8
11
|
*
|
|
9
12
|
* Material stacks are theme-private under this selector (not foundation).
|
|
10
13
|
*/
|
|
14
|
+
@import './modern.native.css';
|
|
11
15
|
|
|
12
16
|
[data-a63-theme='modern'] {
|
|
13
17
|
--a63-control-shadow: inset 0 1px 0 color-mix(in oklch, white 16%, transparent);
|
|
14
18
|
--a63-control-shadow-active: inset 0 1px 0 color-mix(in oklch, black 8%, transparent);
|
|
15
19
|
--a63-control-shadow-tint: 24%;
|
|
16
20
|
/* Flat/bordered controls (outline, and field-like triggers built on it) drop the
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
bright top rim — it reads as a raised plate on something that should sit flush,
|
|
22
|
+
and outline already nulls the other two raised cues (gloss, highlight). The
|
|
23
|
+
recipe's tinted inset + drop still supply the gentle lift. */
|
|
20
24
|
--a63-control-shadow-flat: 0 0 #0000;
|
|
21
25
|
/* Recessed field — a restrained inset, the inverse of the raised highlight. */
|
|
22
26
|
--a63-field-shadow: inset 0 1px 2px color-mix(in oklch, black 8%, transparent);
|
|
23
|
-
/* Rim: a soft directional frame, light top-left to firm bottom-right. */
|
|
24
|
-
--a63-widget-rim-image: linear-gradient(
|
|
25
|
-
135deg,
|
|
26
|
-
color-mix(in oklch, var(--a63-border-subtle) 50%, transparent),
|
|
27
|
-
color-mix(in oklch, var(--a63-border-subtle) 90%, transparent)
|
|
28
|
-
);
|
|
29
27
|
/* SegmentedControl track + ToggleGroup outline cells. */
|
|
30
28
|
--a63-segment-track-background: var(--a63-surface-muted);
|
|
31
29
|
--a63-segment-track-border: var(--a63-border-subtle);
|
|
32
30
|
--a63-segment-background: var(--a63-surface-muted);
|
|
33
31
|
--a63-segment-foreground: var(--a63-text-secondary);
|
|
34
|
-
--a63-segment-gloss: none;
|
|
35
32
|
--a63-segment-selected-background: var(--a63-surface-overlay);
|
|
36
33
|
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
37
|
-
--a63-segment-selected-gloss: none;
|
|
38
34
|
/* Quiet raised plate on the muted track — inset-only control shadow vanishes
|
|
39
|
-
|
|
35
|
+
on a light fill, so the selected cell needs a soft drop. */
|
|
40
36
|
--a63-segment-selected-shadow:
|
|
41
37
|
inset 0 1px 0 color-mix(in oklch, white 70%, transparent),
|
|
42
38
|
0 1px 2px color-mix(in oklch, black 12%, transparent),
|
|
@@ -50,6 +46,6 @@
|
|
|
50
46
|
|
|
51
47
|
[data-a63-theme='modern']:is(.dark, [data-a63-mode='dark']) {
|
|
52
48
|
/* Keep the expressive directional rim, but seat the face on the darker panel
|
|
53
|
-
|
|
54
|
-
--a63-widget-background-color: color-mix(in
|
|
49
|
+
tier so modern widgets do not read as luminous slabs in dark mode. */
|
|
50
|
+
--a63-widget-background-color: color-mix(in oklab, var(--a63-surface-panel) 90%, transparent);
|
|
55
51
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of modern.css: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from modern.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='modern'] {
|
|
8
|
+
/* Rim: a soft directional frame, light top-left to firm bottom-right. */
|
|
9
|
+
--a63-widget-rim-image: linear-gradient(
|
|
10
|
+
135deg,
|
|
11
|
+
color-mix(in oklch, var(--a63-border-subtle) 50%, transparent),
|
|
12
|
+
color-mix(in oklch, var(--a63-border-subtle) 90%, transparent)
|
|
13
|
+
);
|
|
14
|
+
--a63-segment-gloss: none;
|
|
15
|
+
--a63-segment-selected-gloss: none;
|
|
16
|
+
}
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Modern theme — the default.\n\nOtherwise the identity theme (base --a63-* values ship in tokens/semantics.css),\nmodern adds one restrained tactile touch to filled controls: a hairline white\ntop highlight + a faint drop tinted by the button's own fill (via the recipe's\nshadow-tint); on press the highlight flips to a subtle dark inset.\n\nMaterial stacks are theme-private under this selector (not foundation).",
|
|
4
|
+
"sets": {
|
|
5
|
+
"01-data-a63-theme-modern": {
|
|
6
|
+
"sources": [
|
|
7
|
+
{
|
|
8
|
+
"a63": {
|
|
9
|
+
"control": {
|
|
10
|
+
"shadow": {
|
|
11
|
+
"$root": {
|
|
12
|
+
"$type": "shadow",
|
|
13
|
+
"$value": [
|
|
14
|
+
{
|
|
15
|
+
"color": {
|
|
16
|
+
"colorSpace": "srgb",
|
|
17
|
+
"components": [1, 1, 1],
|
|
18
|
+
"alpha": 0.16
|
|
19
|
+
},
|
|
20
|
+
"offsetX": {
|
|
21
|
+
"value": 0,
|
|
22
|
+
"unit": "px"
|
|
23
|
+
},
|
|
24
|
+
"offsetY": {
|
|
25
|
+
"value": 1,
|
|
26
|
+
"unit": "px"
|
|
27
|
+
},
|
|
28
|
+
"blur": {
|
|
29
|
+
"value": 0,
|
|
30
|
+
"unit": "px"
|
|
31
|
+
},
|
|
32
|
+
"spread": {
|
|
33
|
+
"value": 0,
|
|
34
|
+
"unit": "px"
|
|
35
|
+
},
|
|
36
|
+
"inset": true
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"$extensions": {
|
|
40
|
+
"io.atom63.derive": "inset 0 1px 0 color-mix(in oklch, white 16%, transparent)"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"active": {
|
|
44
|
+
"$type": "shadow",
|
|
45
|
+
"$value": [
|
|
46
|
+
{
|
|
47
|
+
"color": {
|
|
48
|
+
"colorSpace": "srgb",
|
|
49
|
+
"components": [0, 0, 0],
|
|
50
|
+
"alpha": 0.08
|
|
51
|
+
},
|
|
52
|
+
"offsetX": {
|
|
53
|
+
"value": 0,
|
|
54
|
+
"unit": "px"
|
|
55
|
+
},
|
|
56
|
+
"offsetY": {
|
|
57
|
+
"value": 1,
|
|
58
|
+
"unit": "px"
|
|
59
|
+
},
|
|
60
|
+
"blur": {
|
|
61
|
+
"value": 0,
|
|
62
|
+
"unit": "px"
|
|
63
|
+
},
|
|
64
|
+
"spread": {
|
|
65
|
+
"value": 0,
|
|
66
|
+
"unit": "px"
|
|
67
|
+
},
|
|
68
|
+
"inset": true
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"$extensions": {
|
|
72
|
+
"io.atom63.derive": "inset 0 1px 0 color-mix(in oklch, black 8%, transparent)"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"tint": {
|
|
76
|
+
"$type": "number",
|
|
77
|
+
"$value": 24,
|
|
78
|
+
"$extensions": {
|
|
79
|
+
"io.atom63.derive": "24%"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"flat": {
|
|
83
|
+
"$type": "shadow",
|
|
84
|
+
"$value": [],
|
|
85
|
+
"$extensions": {
|
|
86
|
+
"io.atom63.derive": "0 0 #0000"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Flat/bordered controls (outline, and field-like triggers built on it) drop the\n bright top rim — it reads as a raised plate on something that should sit flush,\n and outline already nulls the other two raised cues (gloss, highlight). The\n recipe's tinted inset + drop still supply the gentle lift."
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"field": {
|
|
93
|
+
"shadow": {
|
|
94
|
+
"$type": "shadow",
|
|
95
|
+
"$value": [
|
|
96
|
+
{
|
|
97
|
+
"color": {
|
|
98
|
+
"colorSpace": "srgb",
|
|
99
|
+
"components": [0, 0, 0],
|
|
100
|
+
"alpha": 0.08
|
|
101
|
+
},
|
|
102
|
+
"offsetX": {
|
|
103
|
+
"value": 0,
|
|
104
|
+
"unit": "px"
|
|
105
|
+
},
|
|
106
|
+
"offsetY": {
|
|
107
|
+
"value": 1,
|
|
108
|
+
"unit": "px"
|
|
109
|
+
},
|
|
110
|
+
"blur": {
|
|
111
|
+
"value": 2,
|
|
112
|
+
"unit": "px"
|
|
113
|
+
},
|
|
114
|
+
"spread": {
|
|
115
|
+
"value": 0,
|
|
116
|
+
"unit": "px"
|
|
117
|
+
},
|
|
118
|
+
"inset": true
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"$extensions": {
|
|
122
|
+
"io.atom63.derive": "inset 0 1px 2px color-mix(in oklch, black 8%, transparent)"
|
|
123
|
+
},
|
|
124
|
+
"$description": "Recessed field — a restrained inset, the inverse of the raised highlight."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"segment": {
|
|
128
|
+
"track": {
|
|
129
|
+
"background": {
|
|
130
|
+
"$type": "color",
|
|
131
|
+
"$value": "{a63.surface.muted}",
|
|
132
|
+
"$description": "SegmentedControl track + ToggleGroup outline cells."
|
|
133
|
+
},
|
|
134
|
+
"border": {
|
|
135
|
+
"$type": "dimension",
|
|
136
|
+
"$value": "{a63.border.subtle}"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"background": {
|
|
140
|
+
"$type": "color",
|
|
141
|
+
"$value": "{a63.surface.muted}"
|
|
142
|
+
},
|
|
143
|
+
"foreground": {
|
|
144
|
+
"$type": "color",
|
|
145
|
+
"$value": "{a63.text.secondary}"
|
|
146
|
+
},
|
|
147
|
+
"selected": {
|
|
148
|
+
"background": {
|
|
149
|
+
"$type": "color",
|
|
150
|
+
"$value": "{a63.surface.overlay}"
|
|
151
|
+
},
|
|
152
|
+
"foreground": {
|
|
153
|
+
"$type": "color",
|
|
154
|
+
"$value": "{a63.text.primary}"
|
|
155
|
+
},
|
|
156
|
+
"shadow": {
|
|
157
|
+
"$type": "shadow",
|
|
158
|
+
"$value": [
|
|
159
|
+
{
|
|
160
|
+
"color": {
|
|
161
|
+
"colorSpace": "srgb",
|
|
162
|
+
"components": [1, 1, 1],
|
|
163
|
+
"alpha": 0.7
|
|
164
|
+
},
|
|
165
|
+
"offsetX": {
|
|
166
|
+
"value": 0,
|
|
167
|
+
"unit": "px"
|
|
168
|
+
},
|
|
169
|
+
"offsetY": {
|
|
170
|
+
"value": 1,
|
|
171
|
+
"unit": "px"
|
|
172
|
+
},
|
|
173
|
+
"blur": {
|
|
174
|
+
"value": 0,
|
|
175
|
+
"unit": "px"
|
|
176
|
+
},
|
|
177
|
+
"spread": {
|
|
178
|
+
"value": 0,
|
|
179
|
+
"unit": "px"
|
|
180
|
+
},
|
|
181
|
+
"inset": true
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"color": {
|
|
185
|
+
"colorSpace": "srgb",
|
|
186
|
+
"components": [0, 0, 0],
|
|
187
|
+
"alpha": 0.12
|
|
188
|
+
},
|
|
189
|
+
"offsetX": {
|
|
190
|
+
"value": 0,
|
|
191
|
+
"unit": "px"
|
|
192
|
+
},
|
|
193
|
+
"offsetY": {
|
|
194
|
+
"value": 1,
|
|
195
|
+
"unit": "px"
|
|
196
|
+
},
|
|
197
|
+
"blur": {
|
|
198
|
+
"value": 2,
|
|
199
|
+
"unit": "px"
|
|
200
|
+
},
|
|
201
|
+
"spread": {
|
|
202
|
+
"value": 0,
|
|
203
|
+
"unit": "px"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"color": {
|
|
208
|
+
"colorSpace": "srgb",
|
|
209
|
+
"components": [0, 0, 0],
|
|
210
|
+
"alpha": 0.06
|
|
211
|
+
},
|
|
212
|
+
"offsetX": {
|
|
213
|
+
"value": 0,
|
|
214
|
+
"unit": "px"
|
|
215
|
+
},
|
|
216
|
+
"offsetY": {
|
|
217
|
+
"value": 1,
|
|
218
|
+
"unit": "px"
|
|
219
|
+
},
|
|
220
|
+
"blur": {
|
|
221
|
+
"value": 1,
|
|
222
|
+
"unit": "px"
|
|
223
|
+
},
|
|
224
|
+
"spread": {
|
|
225
|
+
"value": 0,
|
|
226
|
+
"unit": "px"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"$extensions": {
|
|
231
|
+
"io.atom63.derive": "inset 0 1px 0 color-mix(in oklch, white 70%, transparent), 0 1px 2px color-mix(in oklch, black 12%, transparent), 0 1px 1px color-mix(in oklch, black 6%, transparent)"
|
|
232
|
+
},
|
|
233
|
+
"$description": "Quiet raised plate on the muted track — inset-only control shadow vanishes\n on a light fill, so the selected cell needs a soft drop."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"primary": {
|
|
237
|
+
"background": {
|
|
238
|
+
"$type": "color",
|
|
239
|
+
"$value": "{a63.action.primary}"
|
|
240
|
+
},
|
|
241
|
+
"foreground": {
|
|
242
|
+
"$type": "color",
|
|
243
|
+
"$value": "{a63.action.primary.foreground}"
|
|
244
|
+
},
|
|
245
|
+
"shadow": {
|
|
246
|
+
"$type": "shadow",
|
|
247
|
+
"$value": [
|
|
248
|
+
{
|
|
249
|
+
"color": {
|
|
250
|
+
"colorSpace": "srgb",
|
|
251
|
+
"components": [1, 1, 1],
|
|
252
|
+
"alpha": 0.3
|
|
253
|
+
},
|
|
254
|
+
"offsetX": {
|
|
255
|
+
"value": 0,
|
|
256
|
+
"unit": "px"
|
|
257
|
+
},
|
|
258
|
+
"offsetY": {
|
|
259
|
+
"value": 1,
|
|
260
|
+
"unit": "px"
|
|
261
|
+
},
|
|
262
|
+
"blur": {
|
|
263
|
+
"value": 0,
|
|
264
|
+
"unit": "px"
|
|
265
|
+
},
|
|
266
|
+
"spread": {
|
|
267
|
+
"value": 0,
|
|
268
|
+
"unit": "px"
|
|
269
|
+
},
|
|
270
|
+
"inset": true
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"color": {
|
|
274
|
+
"colorSpace": "srgb",
|
|
275
|
+
"components": [0, 0, 0],
|
|
276
|
+
"alpha": 0.16
|
|
277
|
+
},
|
|
278
|
+
"offsetX": {
|
|
279
|
+
"value": 0,
|
|
280
|
+
"unit": "px"
|
|
281
|
+
},
|
|
282
|
+
"offsetY": {
|
|
283
|
+
"value": 1,
|
|
284
|
+
"unit": "px"
|
|
285
|
+
},
|
|
286
|
+
"blur": {
|
|
287
|
+
"value": 2,
|
|
288
|
+
"unit": "px"
|
|
289
|
+
},
|
|
290
|
+
"spread": {
|
|
291
|
+
"value": 0,
|
|
292
|
+
"unit": "px"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"$extensions": {
|
|
297
|
+
"io.atom63.derive": "inset 0 1px 0 color-mix(in oklch, white 30%, transparent), 0 1px 2px color-mix(in oklch, black 16%, transparent)"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"$extensions": {
|
|
306
|
+
"io.atom63.css": {
|
|
307
|
+
"selector": "[data-a63-theme='modern']"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"02-data-a63-theme-modern-is-dark-data-a63-mode-dark": {
|
|
312
|
+
"sources": [
|
|
313
|
+
{
|
|
314
|
+
"a63": {
|
|
315
|
+
"widget": {
|
|
316
|
+
"background": {
|
|
317
|
+
"color": {
|
|
318
|
+
"$type": "color",
|
|
319
|
+
"$value": "{a63.surface.panel}",
|
|
320
|
+
"$extensions": {
|
|
321
|
+
"io.atom63.derive": "color-mix(in oklab, {a63.surface.panel} 90%, transparent)"
|
|
322
|
+
},
|
|
323
|
+
"$description": "Keep the expressive directional rim, but seat the face on the darker panel\n tier so modern widgets do not read as luminous slabs in dark mode."
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"$extensions": {
|
|
331
|
+
"io.atom63.css": {
|
|
332
|
+
"selector": "[data-a63-theme='modern']:is(.dark, [data-a63-mode='dark'])"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"resolutionOrder": [
|
|
338
|
+
{
|
|
339
|
+
"$ref": "#/sets/01-data-a63-theme-modern"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"$ref": "#/sets/02-data-a63-theme-modern-is-dark-data-a63-mode-dark"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"$extensions": {
|
|
346
|
+
"io.atom63.css": {
|
|
347
|
+
"imports": ["./modern.native.css"]
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
package/src/themes/retro.css
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/themes/retro.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
|
* Retro theme — early-web / Windows-98 chrome: thick beveled edges and hard
|
|
3
6
|
* offset shadows.
|
|
4
7
|
*
|
|
5
8
|
* Value-overrides only. Bevel stacks are theme-private under this selector.
|
|
6
9
|
* Boxier radius and chunky borders complete the physical look.
|
|
7
10
|
*/
|
|
11
|
+
@import './retro.native.css';
|
|
8
12
|
|
|
9
13
|
[data-a63-theme='retro'] {
|
|
10
14
|
/* Theme-private helpers reused across contract knobs. */
|
|
@@ -12,8 +16,6 @@
|
|
|
12
16
|
--retro-bevel-drop-md: 3px 3px 0 color-mix(in oklch, black 30%, transparent);
|
|
13
17
|
--retro-bevel-drop-lg: 4px 4px 0 color-mix(in oklch, black 34%, transparent);
|
|
14
18
|
--retro-bevel-drop-soft: 2px 2px 0 color-mix(in oklch, black 16%, transparent);
|
|
15
|
-
|
|
16
|
-
--a63-control-gloss: none;
|
|
17
19
|
--a63-control-radius: var(--radius-sm);
|
|
18
20
|
--a63-control-border-width: 2px;
|
|
19
21
|
--a63-control-focus-ring-width: 2px;
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
inset 2px 2px 0 color-mix(in oklch, white 55%, transparent),
|
|
22
24
|
inset -2px -2px 0 color-mix(in oklch, black 28%, transparent), var(--retro-bevel-drop);
|
|
23
25
|
/* Pressed: the bevel inverts (recessed) and the hard drop collapses — the
|
|
24
|
-
|
|
26
|
+
button physically pushes in. Pairs with the default translateY(1px) press. */
|
|
25
27
|
--a63-control-shadow-active:
|
|
26
28
|
inset 2px 2px 0 color-mix(in oklch, black 30%, transparent),
|
|
27
29
|
inset -1px -1px 0 color-mix(in oklch, white 22%, transparent);
|
|
@@ -31,33 +33,32 @@
|
|
|
31
33
|
--a63-overlay-shadow:
|
|
32
34
|
inset 1px 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
33
35
|
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-md);
|
|
36
|
+
--a63-overlay-border-style: outset;
|
|
37
|
+
--a63-overlay-border-width: 2px;
|
|
38
|
+
--a63-overlay-drag-shadow:
|
|
39
|
+
inset 1px 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
40
|
+
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-lg);
|
|
34
41
|
/* Win98 bevel as real geometry: light on top + left, dark on bottom + right.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
Per-side BORDER colors, so the bevel mitres around the corner arc and holds
|
|
43
|
+
at any radius — radius is a personalization axis, not a per-theme constant.
|
|
44
|
+
Order: top right bottom left. */
|
|
38
45
|
--a63-widget-rim-width: 2px;
|
|
39
|
-
--a63-widget-rim-backdrop: none;
|
|
40
46
|
--a63-widget-rim-border-color: color-mix(in oklch, white 50%, transparent)
|
|
41
47
|
color-mix(in oklch, black 22%, transparent) color-mix(in oklch, black 22%, transparent)
|
|
42
48
|
color-mix(in oklch, white 50%, transparent);
|
|
43
49
|
/* Bevel moved to the rim; keep only the hard drop. */
|
|
44
50
|
--a63-widget-shadow: var(--retro-bevel-drop-md);
|
|
45
51
|
/* Opaque face. The contract's 82% default lets the rim gradient bleed through,
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
which turns the bevel's hard diagonal stop into a seam across the whole card.
|
|
53
|
+
Win98 plastic is not glass — the face should be solid regardless. */
|
|
48
54
|
--a63-widget-background-color: var(--a63-surface-overlay);
|
|
49
55
|
--a63-surface-shadow:
|
|
50
56
|
inset 1px 1px 0 color-mix(in oklch, white 55%, transparent),
|
|
51
57
|
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-soft);
|
|
52
58
|
/* Retro surfaces/overlays are chunky beveled frames: 2px outset border, hard
|
|
53
|
-
|
|
59
|
+
square corners via the radius personalization axis (not hardcoded here). */
|
|
54
60
|
--a63-surface-border-style: outset;
|
|
55
|
-
--a63-overlay-border-style: outset;
|
|
56
61
|
--a63-surface-border-width: 2px;
|
|
57
|
-
--a63-overlay-border-width: 2px;
|
|
58
|
-
--a63-overlay-drag-shadow:
|
|
59
|
-
inset 1px 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
60
|
-
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-lg);
|
|
61
62
|
--a63-track-shadow:
|
|
62
63
|
inset 1px 1px 0 color-mix(in oklch, black 22%, transparent),
|
|
63
64
|
inset -1px -1px 0 color-mix(in oklch, white 40%, transparent);
|
|
@@ -71,16 +72,13 @@
|
|
|
71
72
|
--a63-choice-box-shadow-checked:
|
|
72
73
|
inset 1px 1px 0 color-mix(in oklch, white 38%, transparent),
|
|
73
74
|
inset -1px -1px 0 color-mix(in oklch, black 24%, transparent);
|
|
74
|
-
--a63-choice-indicator-gloss: none;
|
|
75
75
|
/* Segmented controls — welded Win98 cells; selected = pressed-in bevel. */
|
|
76
76
|
--a63-segment-track-background: var(--a63-surface-panel);
|
|
77
77
|
--a63-segment-track-border: var(--a63-border-control);
|
|
78
78
|
--a63-segment-background: var(--a63-surface-panel);
|
|
79
79
|
--a63-segment-foreground: var(--a63-text-secondary);
|
|
80
|
-
--a63-segment-gloss: none;
|
|
81
80
|
--a63-segment-selected-background: var(--a63-surface-muted);
|
|
82
81
|
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
83
|
-
--a63-segment-selected-gloss: none;
|
|
84
82
|
--a63-segment-selected-shadow: var(--a63-control-shadow-active);
|
|
85
83
|
--a63-segment-primary-background: var(--a63-action-primary);
|
|
86
84
|
--a63-segment-primary-foreground: var(--a63-action-primary-foreground);
|
|
@@ -90,23 +88,20 @@
|
|
|
90
88
|
--a63-weather-divider-color: color-mix(in oklch, white 32%, transparent);
|
|
91
89
|
--a63-weather-text-shadow: 1px 1px 0 color-mix(in oklch, black 34%, transparent);
|
|
92
90
|
--a63-weather-border-color: color-mix(
|
|
93
|
-
in
|
|
91
|
+
in oklab,
|
|
94
92
|
var(--a63-action-primary) 44%,
|
|
95
93
|
var(--a63-border-subtle)
|
|
96
94
|
);
|
|
97
95
|
--a63-weather-background-color: color-mix(
|
|
98
|
-
in
|
|
96
|
+
in oklab,
|
|
99
97
|
var(--a63-action-primary) 48%,
|
|
100
98
|
var(--a63-surface-panel)
|
|
101
99
|
);
|
|
102
100
|
--a63-weather-background-image:
|
|
103
|
-
linear-gradient(135deg, color-mix(in
|
|
101
|
+
linear-gradient(135deg, color-mix(in oklab, white 22%, transparent), transparent 44%),
|
|
104
102
|
linear-gradient(
|
|
105
103
|
135deg,
|
|
106
|
-
color-mix(in
|
|
107
|
-
color-mix(in
|
|
104
|
+
color-mix(in oklab, var(--a63-action-primary) 58%, var(--a63-surface-panel)),
|
|
105
|
+
color-mix(in oklab, var(--a63-action-primary) 68%, var(--a63-text-primary))
|
|
108
106
|
);
|
|
109
|
-
/* No --a63-weather-shadow: the retro weather tile throws the same hard drop
|
|
110
|
-
as every other retro widget, and the bevel edge lives on the rim. */
|
|
111
|
-
--a63-weather-backdrop: none;
|
|
112
107
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of retro.css: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from retro.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='retro'] {
|
|
8
|
+
--a63-control-gloss: none;
|
|
9
|
+
--a63-widget-rim-backdrop: none;
|
|
10
|
+
--a63-choice-indicator-gloss: none;
|
|
11
|
+
--a63-segment-gloss: none;
|
|
12
|
+
--a63-segment-selected-gloss: none;
|
|
13
|
+
/* No --a63-weather-shadow: the retro weather tile throws the same hard drop
|
|
14
|
+
as every other retro widget, and the bevel edge lives on the rim. */
|
|
15
|
+
--a63-weather-backdrop: none;
|
|
16
|
+
}
|