@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
package/src/themes/terminal.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/themes/terminal.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
|
* Terminal theme — flat monochrome phosphor CRT.
|
|
3
6
|
*
|
|
4
7
|
* Value-overrides only. CRT glow recipes are theme-private under this selector
|
|
@@ -11,21 +14,27 @@
|
|
|
11
14
|
* each mode is declared twice: on the theme element itself (theme + mode class/
|
|
12
15
|
* attr co-located) AND as a descendant re-assertion so a nested [data-a63-mode]
|
|
13
16
|
* can't clobber the phosphor palette.
|
|
17
|
+
*
|
|
18
|
+
* ── Light terminal — dark-green phosphor on a light paper surface ────────
|
|
19
|
+
*
|
|
20
|
+
* No --a63-weather-shadow: the phosphor ring is the rim's job now, and the
|
|
21
|
+
* tile keeps the shared --terminal-overlay-glow like every other widget.
|
|
22
|
+
*
|
|
23
|
+
* ── Dark terminal — bright phosphor on near-black ───────────────────────
|
|
14
24
|
*/
|
|
25
|
+
@import './terminal.native.css';
|
|
15
26
|
|
|
16
27
|
[data-a63-theme='terminal'] {
|
|
17
28
|
/* Theme-private helper reused by overlay + widget. */
|
|
18
29
|
--terminal-overlay-glow: 0 0 20px -4px
|
|
19
30
|
color-mix(in oklch, var(--a63-action-primary) 40%, transparent);
|
|
20
|
-
|
|
21
|
-
--a63-control-gloss: none;
|
|
22
31
|
--a63-control-radius: var(--radius-sm);
|
|
23
32
|
/* Monospace label + a soft phosphor text-glow — the CRT terminal signature. */
|
|
24
33
|
--a63-control-font-family: var(--font-family-mono);
|
|
25
34
|
--a63-control-text-shadow: 0 0 6px color-mix(in oklch, var(--a63-action-primary) 45%, transparent);
|
|
26
35
|
/* Monochrome phosphor glow (accent) — terminal is intentionally single-colour.
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
Uses --a63-action-primary (resolvable on the theme scope), not the per-button
|
|
37
|
+
tint, which a theme-declared shadow can't see. */
|
|
29
38
|
--a63-control-shadow:
|
|
30
39
|
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 32%, transparent),
|
|
31
40
|
0 0 14px -2px color-mix(in oklch, var(--a63-action-primary) 45%, transparent);
|
|
@@ -39,18 +48,12 @@
|
|
|
39
48
|
--a63-overlay-shadow:
|
|
40
49
|
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 30%, transparent),
|
|
41
50
|
var(--terminal-overlay-glow);
|
|
42
|
-
/* Phosphor edge as a real rim; the outer neon glow stays a shadow. */
|
|
43
|
-
--a63-widget-rim-image: linear-gradient(
|
|
44
|
-
180deg,
|
|
45
|
-
color-mix(in oklch, var(--a63-action-primary) 30%, transparent),
|
|
46
|
-
color-mix(in oklch, var(--a63-action-primary) 10%, transparent)
|
|
47
|
-
);
|
|
48
51
|
/* Phosphor edge moved to the rim; keep only the outer glow. */
|
|
49
52
|
--a63-widget-shadow: var(--terminal-overlay-glow);
|
|
50
53
|
--a63-surface-shadow: inset 0 0 0 1px
|
|
51
54
|
color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
52
55
|
/* Terminal surfaces/overlays get a faint CRT scanline texture. Square look
|
|
53
|
-
|
|
56
|
+
comes from the radius personalization axis, not hardcoded radii here. */
|
|
54
57
|
--a63-surface-texture-image: repeating-linear-gradient(
|
|
55
58
|
to bottom,
|
|
56
59
|
color-mix(in oklch, var(--a63-action-primary) 6%, transparent) 0px,
|
|
@@ -58,9 +61,6 @@
|
|
|
58
61
|
transparent 1px,
|
|
59
62
|
transparent 3px
|
|
60
63
|
);
|
|
61
|
-
--a63-overlay-texture-image: var(--a63-surface-texture-image);
|
|
62
|
-
--a63-surface-texture-blend: overlay;
|
|
63
|
-
--a63-overlay-texture-blend: overlay;
|
|
64
64
|
--a63-track-shadow: inset 0 0 4px -1px
|
|
65
65
|
color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
66
66
|
--a63-choice-box-shadow: inset 0 0 5px -2px
|
|
@@ -68,16 +68,13 @@
|
|
|
68
68
|
--a63-choice-box-shadow-checked:
|
|
69
69
|
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 44%, transparent),
|
|
70
70
|
0 0 10px -4px color-mix(in oklch, var(--a63-action-primary) 55%, transparent);
|
|
71
|
-
--a63-choice-indicator-gloss: none;
|
|
72
71
|
/* Segmented controls — flat phosphor cells; selected = edged glow, no gel. */
|
|
73
72
|
--a63-segment-track-background: var(--a63-field-background);
|
|
74
73
|
--a63-segment-track-border: var(--a63-border-subtle);
|
|
75
74
|
--a63-segment-background: var(--a63-surface-panel);
|
|
76
75
|
--a63-segment-foreground: var(--a63-text-secondary);
|
|
77
|
-
--a63-segment-gloss: none;
|
|
78
76
|
--a63-segment-selected-background: var(--a63-surface-muted);
|
|
79
77
|
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
80
|
-
--a63-segment-selected-gloss: none;
|
|
81
78
|
--a63-segment-selected-shadow: inset 0 0 0 1px
|
|
82
79
|
color-mix(in oklch, var(--a63-action-primary) 36%, transparent);
|
|
83
80
|
--a63-segment-primary-background: var(--a63-action-primary);
|
|
@@ -86,39 +83,37 @@
|
|
|
86
83
|
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 50%, transparent),
|
|
87
84
|
0 0 10px -3px color-mix(in oklch, var(--a63-action-primary) 40%, transparent);
|
|
88
85
|
--a63-weather-border-color: color-mix(
|
|
89
|
-
in
|
|
86
|
+
in oklab,
|
|
90
87
|
var(--a63-action-primary) 44%,
|
|
91
88
|
var(--a63-border-subtle)
|
|
92
89
|
);
|
|
93
|
-
--a63-weather-backdrop: none;
|
|
94
90
|
}
|
|
95
91
|
|
|
96
|
-
/* ── Light terminal — dark-green phosphor on a light paper surface ──────── */
|
|
97
92
|
[data-a63-theme='terminal']:is(:root, .light, [data-a63-mode='light']),
|
|
98
93
|
[data-a63-theme='terminal'] :is(.light, [data-a63-mode='light']) {
|
|
99
94
|
/* Darker phosphor ink on paper — pure brand-500 fails AA on near-white page. */
|
|
100
95
|
--a63-text-primary: color-mix(in oklch, var(--a63-action-primary) 70%, black);
|
|
101
96
|
--a63-text-secondary: color-mix(in oklch, var(--a63-action-primary) 52%, black);
|
|
102
97
|
--a63-border-control: color-mix(
|
|
103
|
-
in
|
|
98
|
+
in oklab,
|
|
104
99
|
var(--a63-action-primary) 26%,
|
|
105
|
-
color-mix(in
|
|
100
|
+
color-mix(in oklab, var(--surface-light-5) 60%, white)
|
|
106
101
|
);
|
|
107
102
|
--a63-border-subtle: color-mix(
|
|
108
|
-
in
|
|
103
|
+
in oklab,
|
|
109
104
|
var(--a63-action-primary) 16%,
|
|
110
|
-
color-mix(in
|
|
105
|
+
color-mix(in oklab, var(--surface-light-6) 50%, white)
|
|
111
106
|
);
|
|
112
|
-
--a63-surface-page: color-mix(in
|
|
113
|
-
--a63-surface-panel: color-mix(in
|
|
107
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-light-1) 60%, white);
|
|
108
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-light-2) 60%, white);
|
|
114
109
|
--a63-field-background: color-mix(
|
|
115
|
-
in
|
|
110
|
+
in oklab,
|
|
116
111
|
var(--surface-light-2) 86%,
|
|
117
112
|
var(--a63-action-primary)
|
|
118
113
|
);
|
|
119
|
-
--a63-action-neutral: color-mix(in
|
|
114
|
+
--a63-action-neutral: color-mix(in oklab, var(--surface-light-3) 60%, white);
|
|
120
115
|
--a63-action-neutral-foreground: color-mix(
|
|
121
|
-
in
|
|
116
|
+
in oklab,
|
|
122
117
|
var(--a63-action-primary) 80%,
|
|
123
118
|
var(--surface-light-12)
|
|
124
119
|
);
|
|
@@ -131,39 +126,37 @@
|
|
|
131
126
|
color-mix(in oklch, var(--a63-action-primary) 36%, white 64%)
|
|
132
127
|
);
|
|
133
128
|
--a63-weather-foreground: color-mix(
|
|
134
|
-
in
|
|
129
|
+
in oklab,
|
|
135
130
|
var(--a63-action-primary) 82%,
|
|
136
131
|
var(--surface-light-12)
|
|
137
132
|
);
|
|
138
133
|
--a63-weather-muted-foreground: color-mix(
|
|
139
|
-
in
|
|
134
|
+
in oklab,
|
|
140
135
|
var(--a63-action-primary) 58%,
|
|
141
136
|
var(--surface-light-10)
|
|
142
137
|
);
|
|
143
138
|
--a63-weather-divider-color: color-mix(in oklch, var(--a63-action-primary) 38%, transparent);
|
|
144
139
|
--a63-weather-text-shadow: 0 0 10px
|
|
145
140
|
color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
146
|
-
/* No --a63-weather-shadow: the phosphor ring is the rim's job now, and the
|
|
147
|
-
tile keeps the shared --terminal-overlay-glow like every other widget. */
|
|
148
141
|
}
|
|
149
142
|
|
|
150
|
-
/* ── Dark terminal — bright phosphor on near-black ─────────────────────── */
|
|
151
143
|
[data-a63-theme='terminal']:is(.dark, [data-a63-mode='dark']),
|
|
152
144
|
[data-a63-theme='terminal'] :is(.dark, [data-a63-mode='dark']) {
|
|
153
145
|
/* Opaque phosphor text — translucent secondary failed AA against the page. */
|
|
154
146
|
--a63-text-primary: color-mix(in oklch, var(--a63-action-primary) 62%, white);
|
|
155
|
-
|
|
147
|
+
/* Text mixes read the brand-as-text token; the primary fill is too dark here. */
|
|
148
|
+
--a63-text-secondary: color-mix(in oklab, var(--a63-text-accent) 48%, var(--surface-dark-11));
|
|
156
149
|
--a63-border-control: color-mix(in oklch, var(--a63-action-primary) 42%, transparent);
|
|
157
150
|
--a63-border-subtle: color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
158
|
-
--a63-surface-page: color-mix(in
|
|
159
|
-
--a63-surface-panel: color-mix(in
|
|
160
|
-
--a63-field-background: color-mix(in
|
|
151
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-dark-1) 92%, var(--a63-action-primary));
|
|
152
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-dark-2) 92%, var(--a63-action-primary));
|
|
153
|
+
--a63-field-background: color-mix(in oklab, var(--surface-dark-1) 90%, var(--a63-action-primary));
|
|
161
154
|
--a63-action-neutral: color-mix(
|
|
162
|
-
in
|
|
155
|
+
in oklab,
|
|
163
156
|
var(--surface-dark-3) 86%,
|
|
164
157
|
var(--a63-action-primary) 14%
|
|
165
158
|
);
|
|
166
|
-
--a63-action-neutral-foreground: var(--a63-
|
|
159
|
+
--a63-action-neutral-foreground: var(--a63-text-accent);
|
|
167
160
|
--a63-weather-background-color: color-mix(in oklch, var(--a63-action-primary) 22%, black 78%);
|
|
168
161
|
--a63-weather-background-image:
|
|
169
162
|
linear-gradient(color-mix(in oklch, var(--a63-action-primary) 12%, transparent), transparent),
|
|
@@ -173,7 +166,7 @@
|
|
|
173
166
|
color-mix(in oklch, var(--a63-action-primary) 16%, black 84%)
|
|
174
167
|
);
|
|
175
168
|
--a63-weather-foreground: color-mix(in oklch, var(--a63-action-primary) 26%, white 74%);
|
|
176
|
-
--a63-weather-muted-foreground: color-mix(in oklch, var(--a63-
|
|
169
|
+
--a63-weather-muted-foreground: color-mix(in oklch, var(--a63-text-accent) 54%, white 46%);
|
|
177
170
|
--a63-weather-divider-color: color-mix(in oklch, var(--a63-action-primary) 36%, transparent);
|
|
178
171
|
--a63-weather-text-shadow: 0 0 8px color-mix(in oklch, var(--a63-action-primary) 38%, transparent);
|
|
179
172
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of terminal.css: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from terminal.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='terminal'] {
|
|
8
|
+
--a63-control-gloss: none;
|
|
9
|
+
/* Phosphor edge as a real rim; the outer neon glow stays a shadow. */
|
|
10
|
+
--a63-widget-rim-image: linear-gradient(
|
|
11
|
+
180deg,
|
|
12
|
+
color-mix(in oklch, var(--a63-action-primary) 30%, transparent),
|
|
13
|
+
color-mix(in oklch, var(--a63-action-primary) 10%, transparent)
|
|
14
|
+
);
|
|
15
|
+
--a63-overlay-texture-image: var(--a63-surface-texture-image);
|
|
16
|
+
--a63-surface-texture-blend: overlay;
|
|
17
|
+
--a63-overlay-texture-blend: overlay;
|
|
18
|
+
--a63-choice-indicator-gloss: none;
|
|
19
|
+
--a63-segment-gloss: none;
|
|
20
|
+
--a63-segment-selected-gloss: none;
|
|
21
|
+
--a63-weather-backdrop: none;
|
|
22
|
+
}
|