@atom63/styles 0.1.0-beta.0
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 +233 -0
- package/generated/atom63.figma-tokens.json +21650 -0
- package/generated/atom63.tokens.json +21909 -0
- package/package.json +116 -0
- package/src/animations/animations.css +55 -0
- package/src/animations/index.css +1 -0
- package/src/compat/a63-from-shadcn.css +141 -0
- package/src/compat/index.css +2 -0
- package/src/compat/mdx.css +13 -0
- package/src/compat/shadcn.css +52 -0
- package/src/contracts/action.css +31 -0
- package/src/contracts/badge.css +68 -0
- package/src/contracts/choice.css +32 -0
- package/src/contracts/control.css +102 -0
- package/src/contracts/environment.css +158 -0
- package/src/contracts/field.css +26 -0
- package/src/contracts/index.css +26 -0
- package/src/contracts/marker.css +23 -0
- package/src/contracts/menu.css +100 -0
- package/src/contracts/overlay.css +44 -0
- package/src/contracts/segment.css +100 -0
- package/src/contracts/selection.css +21 -0
- package/src/contracts/skeleton.css +14 -0
- package/src/contracts/surface.css +56 -0
- package/src/contracts/toggle.css +26 -0
- package/src/contracts/track.css +26 -0
- package/src/contracts/trigger.css +28 -0
- package/src/contracts/widget.css +196 -0
- package/src/index.css +17 -0
- package/src/manifest/types.ts +61 -0
- package/src/os/index.css +2 -0
- package/src/os/macos.css +54 -0
- package/src/os/windows.css +299 -0
- package/src/tailwind/animations.css +8 -0
- package/src/tailwind/index.css +4 -0
- package/src/tailwind/theme.css +516 -0
- package/src/tailwind/utilities.css +41 -0
- package/src/tailwind/variants.css +64 -0
- package/src/test/apply-styles.ts +30 -0
- package/src/themes/aqua.css +240 -0
- package/src/themes/index.css +4 -0
- package/src/themes/modern.css +55 -0
- package/src/themes/retro.css +112 -0
- package/src/themes/terminal.css +179 -0
- package/src/tokens/brand.css +148 -0
- package/src/tokens/contrast.browser.test.ts +140 -0
- package/src/tokens/font.css +24 -0
- package/src/tokens/foundation/aliases.css +28 -0
- package/src/tokens/foundation/effects.css +31 -0
- package/src/tokens/foundation/fonts.css +11 -0
- package/src/tokens/foundation/motion.css +19 -0
- package/src/tokens/foundation/palette.css +255 -0
- package/src/tokens/foundation/primitives.css +420 -0
- package/src/tokens/foundation/radius.css +36 -0
- package/src/tokens/foundation/typography.css +191 -0
- package/src/tokens/foundation.css +15 -0
- package/src/tokens/index.css +9 -0
- package/src/tokens/motion.css +27 -0
- package/src/tokens/personalization-axes.browser.test.ts +240 -0
- package/src/tokens/radius.css +35 -0
- package/src/tokens/semantics.css +157 -0
- package/src/tokens/space.css +21 -0
- package/src/tokens/surface.css +184 -0
- package/src/tokens/theme-overrides.browser.test.ts +140 -0
- package/src/tokens/type-scale.css +20 -0
- package/src/tokens/widget-chrome-signature.browser.test.ts +225 -0
- package/src/tokens/widget-paint.browser.test.ts +98 -0
- package/src/utils/code-highlighting.css +35 -0
- package/src/utils/debug.css +453 -0
- package/src/utils/index.css +9 -0
- package/src/utils/scroll-bar.css +78 -0
- package/src/utils/scroll-mask.css +119 -0
- package/src/utils/view-transition.css +16 -0
- package/src/z-layers.ts +40 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Aqua theme — glossy translucent gel.
|
|
3
|
+
*
|
|
4
|
+
* Lean value-overrides — themes override VALUES, never anatomy. Captures the
|
|
5
|
+
* aqua gel with a handful of levers: rounder controls, a glossy top-half sheen
|
|
6
|
+
* (--a63-control-gloss, the shared capability) + specular rim + soft colored drop
|
|
7
|
+
* shadow, a wide focus halo, and a faint blue surface tint. The blue tint is
|
|
8
|
+
* inherent to aqua (fixed b1), independent of the brand accent.
|
|
9
|
+
*
|
|
10
|
+
* Gel material is theme-private under this selector. Shared blur ladder stops
|
|
11
|
+
* (--blur-lg) come from foundation; the 20px gel blur is skin-only.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
[data-a63-theme='aqua'] {
|
|
15
|
+
/* Theme-private helpers reused across contract knobs. */
|
|
16
|
+
--aqua-overlay-drop:
|
|
17
|
+
0 12px 32px -8px color-mix(in oklch, black 30%, transparent),
|
|
18
|
+
0 2px 8px -3px color-mix(in oklch, black 16%, transparent);
|
|
19
|
+
|
|
20
|
+
--a63-control-radius: var(--radius-md);
|
|
21
|
+
--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
|
+
--a63-control-shadow-tint: 40%;
|
|
39
|
+
--a63-control-shadow:
|
|
40
|
+
inset 0 1px 0 color-mix(in oklch, white 85%, transparent),
|
|
41
|
+
inset 0 -1px 1px color-mix(in oklch, black 10%, transparent),
|
|
42
|
+
0 1px 2px color-mix(in oklch, black 18%, transparent);
|
|
43
|
+
--a63-control-shadow-flat:
|
|
44
|
+
inset 0 1px 0 color-mix(in oklch, white 52%, transparent),
|
|
45
|
+
inset 0 -1px 1px color-mix(in oklch, black 7%, transparent),
|
|
46
|
+
0 1px 2px color-mix(in oklch, black 14%, transparent);
|
|
47
|
+
--a63-control-shadow-active:
|
|
48
|
+
inset 0 1px 1px color-mix(in oklch, black 14%, transparent),
|
|
49
|
+
inset 0 -1px 0 color-mix(in oklch, white 40%, transparent),
|
|
50
|
+
0 0 0 color-mix(in oklch, black 0%, transparent);
|
|
51
|
+
--a63-field-shadow:
|
|
52
|
+
inset 0 2px 3px color-mix(in oklch, black 16%, transparent),
|
|
53
|
+
inset 0 1px 0 color-mix(in oklch, black 10%, transparent),
|
|
54
|
+
inset 0 -1px 0 color-mix(in oklch, white 60%, transparent);
|
|
55
|
+
--a63-overlay-shadow:
|
|
56
|
+
inset 0 1px 0 color-mix(in oklch, white 60%, transparent), var(--aqua-overlay-drop);
|
|
57
|
+
/* Gel rim: bright specular top fading to clear — the inset that used to live
|
|
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);
|
|
65
|
+
--a63-widget-shadow: var(--aqua-overlay-drop);
|
|
66
|
+
--a63-surface-shadow:
|
|
67
|
+
inset 0 1px 0 color-mix(in oklch, white 55%, transparent),
|
|
68
|
+
0 6px 16px -6px color-mix(in oklch, black 22%, transparent),
|
|
69
|
+
0 1px 3px -1px color-mix(in oklch, black 12%, transparent);
|
|
70
|
+
/* Aqua surfaces/overlays are glassy: translucent backdrop blur + a top gel
|
|
71
|
+
sheen + a bright specular rim. Shared frost uses --blur-lg; gel blur is
|
|
72
|
+
skin-only (between lg and xl). */
|
|
73
|
+
--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
|
+
--a63-surface-highlight: color-mix(in oklch, white 55%, transparent);
|
|
91
|
+
--a63-overlay-highlight: color-mix(in oklch, white 60%, transparent);
|
|
92
|
+
--a63-surface-highlight-opacity: 0.75;
|
|
93
|
+
--a63-overlay-highlight-opacity: 0.75;
|
|
94
|
+
/* Aqua pinstripe — faint horizontal hairlines, the Aqua signature. CHROME/
|
|
95
|
+
floating ONLY (overlay contract): window chrome, widgets, menus, popovers,
|
|
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;
|
|
105
|
+
--a63-track-shadow:
|
|
106
|
+
inset 0 2px 3px color-mix(in oklch, black 14%, transparent),
|
|
107
|
+
inset 0 -1px 0 color-mix(in oklch, white 45%, transparent);
|
|
108
|
+
--a63-marker-shadow:
|
|
109
|
+
inset 0 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
110
|
+
0 1px 2px -1px color-mix(in oklch, black 15%, transparent);
|
|
111
|
+
--a63-choice-box-shadow:
|
|
112
|
+
inset 0 1px 2px color-mix(in oklch, black 14%, transparent),
|
|
113
|
+
inset 0 -1px 0 color-mix(in oklch, white 50%, transparent);
|
|
114
|
+
--a63-choice-box-shadow-checked:
|
|
115
|
+
inset 0 1px 0 color-mix(in oklch, white 34%, transparent),
|
|
116
|
+
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
|
+
/* ── Segment / ToggleGroup (Figma A63-System 432:1335) ─────────────────────
|
|
123
|
+
Welded gel CELLS own the chrome. Resting = soft card→muted wash + quiet
|
|
124
|
+
mid-line sheen. Selected = pressed-IN plate + restrained gel + inset. */
|
|
125
|
+
--a63-segment-track-background: var(--a63-surface-muted);
|
|
126
|
+
--a63-segment-track-gloss: none;
|
|
127
|
+
--a63-segment-track-shadow: var(--a63-track-shadow);
|
|
128
|
+
--a63-segment-track-border: var(--a63-border-subtle);
|
|
129
|
+
--a63-segment-foreground: var(--a63-text-secondary);
|
|
130
|
+
--a63-segment-hover-foreground: var(--a63-text-primary);
|
|
131
|
+
--a63-segment-background: var(--a63-surface-muted);
|
|
132
|
+
--a63-segment-gloss:
|
|
133
|
+
linear-gradient(
|
|
134
|
+
180deg,
|
|
135
|
+
color-mix(in oklch, white 10%, transparent) 0%,
|
|
136
|
+
color-mix(in oklch, white 4%, transparent) 46%,
|
|
137
|
+
color-mix(in oklch, black 6%, transparent) 54%,
|
|
138
|
+
color-mix(in oklch, white 2%, transparent) 100%
|
|
139
|
+
),
|
|
140
|
+
linear-gradient(180deg, var(--a63-surface-panel) 0%, var(--a63-surface-muted) 100%);
|
|
141
|
+
--a63-segment-selected-background: var(--a63-surface-panel);
|
|
142
|
+
--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
|
+
--a63-segment-selected-shadow:
|
|
151
|
+
inset 0 1px 0 color-mix(in oklch, white 35%, transparent),
|
|
152
|
+
inset 0 2px 6px color-mix(in oklch, black 14%, transparent);
|
|
153
|
+
--a63-segment-primary-background: var(--a63-action-primary);
|
|
154
|
+
--a63-segment-primary-foreground: var(--a63-action-primary-foreground);
|
|
155
|
+
--a63-segment-primary-shadow:
|
|
156
|
+
inset 0 1px 0 color-mix(in oklch, white 28%, transparent),
|
|
157
|
+
inset 0 2px 8px color-mix(in oklch, black 36%, transparent);
|
|
158
|
+
--a63-segment-disabled-opacity: 0.4;
|
|
159
|
+
/* Weather is an Aqua sky material rather than a live condition gradient. */
|
|
160
|
+
--a63-weather-background-color: transparent;
|
|
161
|
+
--a63-weather-foreground: white;
|
|
162
|
+
--a63-weather-muted-foreground: color-mix(in oklch, white 76%, transparent);
|
|
163
|
+
--a63-weather-divider-color: color-mix(in oklch, white 24%, transparent);
|
|
164
|
+
--a63-weather-text-shadow: 0 1px 2px color-mix(in oklch, black 42%, transparent);
|
|
165
|
+
--a63-weather-backdrop: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-a63-theme='aqua']:is(:root, .light, [data-a63-mode='light']) {
|
|
169
|
+
--a63-surface-page: color-mix(in oklch, var(--surface-light-2) 95%, var(--color-b1-500));
|
|
170
|
+
--a63-surface-panel: color-mix(in oklch, var(--surface-light-1) 96%, var(--color-b1-500));
|
|
171
|
+
--a63-weather-border-color: color-mix(in oklch, var(--a63-action-primary) 32%, transparent);
|
|
172
|
+
--a63-weather-background-image:
|
|
173
|
+
radial-gradient(
|
|
174
|
+
120% 90% at 10% 0%,
|
|
175
|
+
color-mix(in oklch, white 28%, transparent),
|
|
176
|
+
transparent 48%
|
|
177
|
+
),
|
|
178
|
+
radial-gradient(
|
|
179
|
+
78% 100% at 100% 0%,
|
|
180
|
+
color-mix(in oklch, var(--a63-action-primary) 32%, transparent),
|
|
181
|
+
transparent 58%
|
|
182
|
+
),
|
|
183
|
+
linear-gradient(
|
|
184
|
+
135deg,
|
|
185
|
+
color-mix(in oklch, var(--a63-action-primary) 78%, white 10%),
|
|
186
|
+
color-mix(in oklch, var(--a63-action-primary) 70%, var(--color-b1-900) 30%)
|
|
187
|
+
);
|
|
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
|
+
}
|
|
191
|
+
|
|
192
|
+
[data-a63-theme='aqua']:is(.dark, [data-a63-mode='dark']) {
|
|
193
|
+
--a63-surface-page: color-mix(in oklch, var(--surface-dark-1) 94%, var(--color-b1-500));
|
|
194
|
+
--a63-surface-panel: color-mix(in oklch, var(--surface-dark-2) 94%, var(--color-b1-500));
|
|
195
|
+
/* Lift neutral menu rows above the striped gray backplate without turning the
|
|
196
|
+
hover state into the stronger primary-selection treatment. */
|
|
197
|
+
--a63-menu-highlight-background: color-mix(in oklch, white 12%, transparent);
|
|
198
|
+
--a63-weather-border-color: color-mix(in oklch, white 14%, transparent);
|
|
199
|
+
--a63-weather-background-image:
|
|
200
|
+
radial-gradient(
|
|
201
|
+
120% 90% at 10% 0%,
|
|
202
|
+
color-mix(in oklch, white 18%, transparent),
|
|
203
|
+
transparent 48%
|
|
204
|
+
),
|
|
205
|
+
radial-gradient(
|
|
206
|
+
88% 110% at 100% 0%,
|
|
207
|
+
color-mix(in oklch, var(--a63-action-primary) 30%, transparent),
|
|
208
|
+
transparent 58%
|
|
209
|
+
),
|
|
210
|
+
linear-gradient(
|
|
211
|
+
135deg,
|
|
212
|
+
color-mix(in oklch, var(--a63-action-primary) 58%, var(--surface-dark-6) 42%),
|
|
213
|
+
color-mix(in oklch, var(--a63-action-primary) 36%, var(--surface-dark-3) 64%)
|
|
214
|
+
);
|
|
215
|
+
/* Dark gel: quieter sheen so the mid-line doesn't blow out to a white band. */
|
|
216
|
+
--a63-segment-gloss:
|
|
217
|
+
linear-gradient(
|
|
218
|
+
180deg,
|
|
219
|
+
color-mix(in oklch, white 8%, transparent) 0%,
|
|
220
|
+
color-mix(in oklch, white 2%, transparent) 48%,
|
|
221
|
+
color-mix(in oklch, black 14%, transparent) 100%
|
|
222
|
+
),
|
|
223
|
+
linear-gradient(
|
|
224
|
+
180deg,
|
|
225
|
+
color-mix(in oklch, var(--a63-surface-panel) 88%, white) 0%,
|
|
226
|
+
var(--a63-surface-muted) 100%
|
|
227
|
+
);
|
|
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
|
+
--a63-segment-selected-shadow:
|
|
235
|
+
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
236
|
+
inset 0 3px 8px color-mix(in oklch, black 28%, transparent);
|
|
237
|
+
--a63-segment-primary-shadow:
|
|
238
|
+
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
239
|
+
inset 0 3px 10px color-mix(in oklch, black 42%, transparent);
|
|
240
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Modern theme — the default.
|
|
3
|
+
*
|
|
4
|
+
* Otherwise the identity theme (base --a63-* values ship in tokens/semantics.css),
|
|
5
|
+
* modern adds one restrained tactile touch to filled controls: a hairline white
|
|
6
|
+
* top highlight + a faint drop tinted by the button's own fill (via the recipe's
|
|
7
|
+
* shadow-tint); on press the highlight flips to a subtle dark inset.
|
|
8
|
+
*
|
|
9
|
+
* Material stacks are theme-private under this selector (not foundation).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
[data-a63-theme='modern'] {
|
|
13
|
+
--a63-control-shadow: inset 0 1px 0 color-mix(in oklch, white 16%, transparent);
|
|
14
|
+
--a63-control-shadow-active: inset 0 1px 0 color-mix(in oklch, black 8%, transparent);
|
|
15
|
+
--a63-control-shadow-tint: 24%;
|
|
16
|
+
/* Flat/bordered controls (outline, and field-like triggers built on it) drop the
|
|
17
|
+
bright top rim — it reads as a raised plate on something that should sit flush,
|
|
18
|
+
and outline already nulls the other two raised cues (gloss, highlight). The
|
|
19
|
+
recipe's tinted inset + drop still supply the gentle lift. */
|
|
20
|
+
--a63-control-shadow-flat: 0 0 #0000;
|
|
21
|
+
/* Recessed field — a restrained inset, the inverse of the raised highlight. */
|
|
22
|
+
--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
|
+
/* SegmentedControl track + ToggleGroup outline cells. */
|
|
30
|
+
--a63-segment-track-background: var(--a63-surface-muted);
|
|
31
|
+
--a63-segment-track-border: var(--a63-border-subtle);
|
|
32
|
+
--a63-segment-background: var(--a63-surface-muted);
|
|
33
|
+
--a63-segment-foreground: var(--a63-text-secondary);
|
|
34
|
+
--a63-segment-gloss: none;
|
|
35
|
+
--a63-segment-selected-background: var(--a63-surface-overlay);
|
|
36
|
+
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
37
|
+
--a63-segment-selected-gloss: none;
|
|
38
|
+
/* Quiet raised plate on the muted track — inset-only control shadow vanishes
|
|
39
|
+
on a light fill, so the selected cell needs a soft drop. */
|
|
40
|
+
--a63-segment-selected-shadow:
|
|
41
|
+
inset 0 1px 0 color-mix(in oklch, white 70%, transparent),
|
|
42
|
+
0 1px 2px color-mix(in oklch, black 12%, transparent),
|
|
43
|
+
0 1px 1px color-mix(in oklch, black 6%, transparent);
|
|
44
|
+
--a63-segment-primary-background: var(--a63-action-primary);
|
|
45
|
+
--a63-segment-primary-foreground: var(--a63-action-primary-foreground);
|
|
46
|
+
--a63-segment-primary-shadow:
|
|
47
|
+
inset 0 1px 0 color-mix(in oklch, white 30%, transparent),
|
|
48
|
+
0 1px 2px color-mix(in oklch, black 16%, transparent);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-a63-theme='modern']:is(.dark, [data-a63-mode='dark']) {
|
|
52
|
+
/* Keep the expressive directional rim, but seat the face on the darker panel
|
|
53
|
+
tier so modern widgets do not read as luminous slabs in dark mode. */
|
|
54
|
+
--a63-widget-background-color: color-mix(in oklch, var(--a63-surface-panel) 90%, transparent);
|
|
55
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Retro theme — early-web / Windows-98 chrome: thick beveled edges and hard
|
|
3
|
+
* offset shadows.
|
|
4
|
+
*
|
|
5
|
+
* Value-overrides only. Bevel stacks are theme-private under this selector.
|
|
6
|
+
* Boxier radius and chunky borders complete the physical look.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
[data-a63-theme='retro'] {
|
|
10
|
+
/* Theme-private helpers reused across contract knobs. */
|
|
11
|
+
--retro-bevel-drop: 2px 2px 0 color-mix(in oklch, black 30%, transparent);
|
|
12
|
+
--retro-bevel-drop-md: 3px 3px 0 color-mix(in oklch, black 30%, transparent);
|
|
13
|
+
--retro-bevel-drop-lg: 4px 4px 0 color-mix(in oklch, black 34%, transparent);
|
|
14
|
+
--retro-bevel-drop-soft: 2px 2px 0 color-mix(in oklch, black 16%, transparent);
|
|
15
|
+
|
|
16
|
+
--a63-control-gloss: none;
|
|
17
|
+
--a63-control-radius: var(--radius-sm);
|
|
18
|
+
--a63-control-border-width: 2px;
|
|
19
|
+
--a63-control-focus-ring-width: 2px;
|
|
20
|
+
--a63-control-shadow:
|
|
21
|
+
inset 2px 2px 0 color-mix(in oklch, white 55%, transparent),
|
|
22
|
+
inset -2px -2px 0 color-mix(in oklch, black 28%, transparent), var(--retro-bevel-drop);
|
|
23
|
+
/* Pressed: the bevel inverts (recessed) and the hard drop collapses — the
|
|
24
|
+
button physically pushes in. Pairs with the default translateY(1px) press. */
|
|
25
|
+
--a63-control-shadow-active:
|
|
26
|
+
inset 2px 2px 0 color-mix(in oklch, black 30%, transparent),
|
|
27
|
+
inset -1px -1px 0 color-mix(in oklch, white 22%, transparent);
|
|
28
|
+
--a63-field-shadow:
|
|
29
|
+
inset 2px 2px 0 color-mix(in oklch, black 22%, transparent),
|
|
30
|
+
inset -1px -1px 0 color-mix(in oklch, white 40%, transparent);
|
|
31
|
+
--a63-overlay-shadow:
|
|
32
|
+
inset 1px 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
33
|
+
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-md);
|
|
34
|
+
/* Win98 bevel as real geometry: light on top + left, dark on bottom + right.
|
|
35
|
+
Per-side BORDER colors, so the bevel mitres around the corner arc and holds
|
|
36
|
+
at any radius — radius is a personalization axis, not a per-theme constant.
|
|
37
|
+
Order: top right bottom left. */
|
|
38
|
+
--a63-widget-rim-width: 2px;
|
|
39
|
+
--a63-widget-rim-backdrop: none;
|
|
40
|
+
--a63-widget-rim-border-color: color-mix(in oklch, white 50%, transparent)
|
|
41
|
+
color-mix(in oklch, black 22%, transparent) color-mix(in oklch, black 22%, transparent)
|
|
42
|
+
color-mix(in oklch, white 50%, transparent);
|
|
43
|
+
/* Bevel moved to the rim; keep only the hard drop. */
|
|
44
|
+
--a63-widget-shadow: var(--retro-bevel-drop-md);
|
|
45
|
+
/* Opaque face. The contract's 82% default lets the rim gradient bleed through,
|
|
46
|
+
which turns the bevel's hard diagonal stop into a seam across the whole card.
|
|
47
|
+
Win98 plastic is not glass — the face should be solid regardless. */
|
|
48
|
+
--a63-widget-background-color: var(--a63-surface-overlay);
|
|
49
|
+
--a63-surface-shadow:
|
|
50
|
+
inset 1px 1px 0 color-mix(in oklch, white 55%, transparent),
|
|
51
|
+
inset -1px -1px 0 color-mix(in oklch, black 22%, transparent), var(--retro-bevel-drop-soft);
|
|
52
|
+
/* Retro surfaces/overlays are chunky beveled frames: 2px outset border, hard
|
|
53
|
+
square corners via the radius personalization axis (not hardcoded here). */
|
|
54
|
+
--a63-surface-border-style: outset;
|
|
55
|
+
--a63-overlay-border-style: outset;
|
|
56
|
+
--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
|
+
--a63-track-shadow:
|
|
62
|
+
inset 1px 1px 0 color-mix(in oklch, black 22%, transparent),
|
|
63
|
+
inset -1px -1px 0 color-mix(in oklch, white 40%, transparent);
|
|
64
|
+
--a63-marker-shadow:
|
|
65
|
+
inset 1px 1px 0 color-mix(in oklch, white 50%, transparent),
|
|
66
|
+
inset -1px -1px 0 color-mix(in oklch, black 20%, transparent),
|
|
67
|
+
1px 1px 0 color-mix(in oklch, black 15%, transparent);
|
|
68
|
+
--a63-choice-box-shadow:
|
|
69
|
+
inset 1px 1px 0 color-mix(in oklch, black 24%, transparent),
|
|
70
|
+
inset -1px -1px 0 color-mix(in oklch, white 42%, transparent);
|
|
71
|
+
--a63-choice-box-shadow-checked:
|
|
72
|
+
inset 1px 1px 0 color-mix(in oklch, white 38%, transparent),
|
|
73
|
+
inset -1px -1px 0 color-mix(in oklch, black 24%, transparent);
|
|
74
|
+
--a63-choice-indicator-gloss: none;
|
|
75
|
+
/* Segmented controls — welded Win98 cells; selected = pressed-in bevel. */
|
|
76
|
+
--a63-segment-track-background: var(--a63-surface-panel);
|
|
77
|
+
--a63-segment-track-border: var(--a63-border-control);
|
|
78
|
+
--a63-segment-background: var(--a63-surface-panel);
|
|
79
|
+
--a63-segment-foreground: var(--a63-text-secondary);
|
|
80
|
+
--a63-segment-gloss: none;
|
|
81
|
+
--a63-segment-selected-background: var(--a63-surface-muted);
|
|
82
|
+
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
83
|
+
--a63-segment-selected-gloss: none;
|
|
84
|
+
--a63-segment-selected-shadow: var(--a63-control-shadow-active);
|
|
85
|
+
--a63-segment-primary-background: var(--a63-action-primary);
|
|
86
|
+
--a63-segment-primary-foreground: var(--a63-action-primary-foreground);
|
|
87
|
+
--a63-segment-primary-shadow: var(--a63-control-shadow-active);
|
|
88
|
+
--a63-weather-foreground: white;
|
|
89
|
+
--a63-weather-muted-foreground: color-mix(in oklch, white 76%, transparent);
|
|
90
|
+
--a63-weather-divider-color: color-mix(in oklch, white 32%, transparent);
|
|
91
|
+
--a63-weather-text-shadow: 1px 1px 0 color-mix(in oklch, black 34%, transparent);
|
|
92
|
+
--a63-weather-border-color: color-mix(
|
|
93
|
+
in oklch,
|
|
94
|
+
var(--a63-action-primary) 44%,
|
|
95
|
+
var(--a63-border-subtle)
|
|
96
|
+
);
|
|
97
|
+
--a63-weather-background-color: color-mix(
|
|
98
|
+
in oklch,
|
|
99
|
+
var(--a63-action-primary) 48%,
|
|
100
|
+
var(--a63-surface-panel)
|
|
101
|
+
);
|
|
102
|
+
--a63-weather-background-image:
|
|
103
|
+
linear-gradient(135deg, color-mix(in oklch, white 22%, transparent), transparent 44%),
|
|
104
|
+
linear-gradient(
|
|
105
|
+
135deg,
|
|
106
|
+
color-mix(in oklch, var(--a63-action-primary) 58%, var(--a63-surface-panel)),
|
|
107
|
+
color-mix(in oklch, var(--a63-action-primary) 68%, var(--a63-text-primary))
|
|
108
|
+
);
|
|
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
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Terminal theme — flat monochrome phosphor CRT.
|
|
3
|
+
*
|
|
4
|
+
* Value-overrides only. CRT glow recipes are theme-private under this selector
|
|
5
|
+
* so color-mix(... var(--a63-action-primary) ...) re-resolves when brand changes
|
|
6
|
+
* (prefer theme scope over foundation :root-only recipes).
|
|
7
|
+
*
|
|
8
|
+
* MODE-SPLIT (matches production): terminal supports BOTH modes — dark = bright
|
|
9
|
+
* phosphor on near-black, light = dark-green phosphor on a light "paper" surface.
|
|
10
|
+
* The surfaces + monochrome text + neutral action are mode-split semantics, so
|
|
11
|
+
* each mode is declared twice: on the theme element itself (theme + mode class/
|
|
12
|
+
* attr co-located) AND as a descendant re-assertion so a nested [data-a63-mode]
|
|
13
|
+
* can't clobber the phosphor palette.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
[data-a63-theme='terminal'] {
|
|
17
|
+
/* Theme-private helper reused by overlay + widget. */
|
|
18
|
+
--terminal-overlay-glow: 0 0 20px -4px
|
|
19
|
+
color-mix(in oklch, var(--a63-action-primary) 40%, transparent);
|
|
20
|
+
|
|
21
|
+
--a63-control-gloss: none;
|
|
22
|
+
--a63-control-radius: var(--radius-sm);
|
|
23
|
+
/* Monospace label + a soft phosphor text-glow — the CRT terminal signature. */
|
|
24
|
+
--a63-control-font-family: var(--font-family-mono);
|
|
25
|
+
--a63-control-text-shadow: 0 0 6px color-mix(in oklch, var(--a63-action-primary) 45%, transparent);
|
|
26
|
+
/* Monochrome phosphor glow (accent) — terminal is intentionally single-colour.
|
|
27
|
+
Uses --a63-action-primary (resolvable on the theme scope), not the per-button
|
|
28
|
+
tint, which a theme-declared shadow can't see. */
|
|
29
|
+
--a63-control-shadow:
|
|
30
|
+
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 32%, transparent),
|
|
31
|
+
0 0 14px -2px color-mix(in oklch, var(--a63-action-primary) 45%, transparent);
|
|
32
|
+
/* Pressed: tighten the glow and deepen the phosphor edge (no bevel — terminal is flat). */
|
|
33
|
+
--a63-control-shadow-active:
|
|
34
|
+
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 48%, transparent),
|
|
35
|
+
0 0 8px -2px color-mix(in oklch, var(--a63-action-primary) 55%, transparent);
|
|
36
|
+
--a63-control-focus-ring-color: color-mix(in oklch, var(--a63-action-primary) 55%, transparent);
|
|
37
|
+
--a63-field-shadow: inset 0 0 6px -2px
|
|
38
|
+
color-mix(in oklch, var(--a63-action-primary) 30%, transparent);
|
|
39
|
+
--a63-overlay-shadow:
|
|
40
|
+
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 30%, transparent),
|
|
41
|
+
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
|
+
/* Phosphor edge moved to the rim; keep only the outer glow. */
|
|
49
|
+
--a63-widget-shadow: var(--terminal-overlay-glow);
|
|
50
|
+
--a63-surface-shadow: inset 0 0 0 1px
|
|
51
|
+
color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
52
|
+
/* Terminal surfaces/overlays get a faint CRT scanline texture. Square look
|
|
53
|
+
comes from the radius personalization axis, not hardcoded radii here. */
|
|
54
|
+
--a63-surface-texture-image: repeating-linear-gradient(
|
|
55
|
+
to bottom,
|
|
56
|
+
color-mix(in oklch, var(--a63-action-primary) 6%, transparent) 0px,
|
|
57
|
+
color-mix(in oklch, var(--a63-action-primary) 6%, transparent) 1px,
|
|
58
|
+
transparent 1px,
|
|
59
|
+
transparent 3px
|
|
60
|
+
);
|
|
61
|
+
--a63-overlay-texture-image: var(--a63-surface-texture-image);
|
|
62
|
+
--a63-surface-texture-blend: overlay;
|
|
63
|
+
--a63-overlay-texture-blend: overlay;
|
|
64
|
+
--a63-track-shadow: inset 0 0 4px -1px
|
|
65
|
+
color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
66
|
+
--a63-choice-box-shadow: inset 0 0 5px -2px
|
|
67
|
+
color-mix(in oklch, var(--a63-action-primary) 32%, transparent);
|
|
68
|
+
--a63-choice-box-shadow-checked:
|
|
69
|
+
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 44%, transparent),
|
|
70
|
+
0 0 10px -4px color-mix(in oklch, var(--a63-action-primary) 55%, transparent);
|
|
71
|
+
--a63-choice-indicator-gloss: none;
|
|
72
|
+
/* Segmented controls — flat phosphor cells; selected = edged glow, no gel. */
|
|
73
|
+
--a63-segment-track-background: var(--a63-field-background);
|
|
74
|
+
--a63-segment-track-border: var(--a63-border-subtle);
|
|
75
|
+
--a63-segment-background: var(--a63-surface-panel);
|
|
76
|
+
--a63-segment-foreground: var(--a63-text-secondary);
|
|
77
|
+
--a63-segment-gloss: none;
|
|
78
|
+
--a63-segment-selected-background: var(--a63-surface-muted);
|
|
79
|
+
--a63-segment-selected-foreground: var(--a63-text-primary);
|
|
80
|
+
--a63-segment-selected-gloss: none;
|
|
81
|
+
--a63-segment-selected-shadow: inset 0 0 0 1px
|
|
82
|
+
color-mix(in oklch, var(--a63-action-primary) 36%, transparent);
|
|
83
|
+
--a63-segment-primary-background: var(--a63-action-primary);
|
|
84
|
+
--a63-segment-primary-foreground: var(--a63-action-primary-foreground);
|
|
85
|
+
--a63-segment-primary-shadow:
|
|
86
|
+
inset 0 0 0 1px color-mix(in oklch, var(--a63-action-primary) 50%, transparent),
|
|
87
|
+
0 0 10px -3px color-mix(in oklch, var(--a63-action-primary) 40%, transparent);
|
|
88
|
+
--a63-weather-border-color: color-mix(
|
|
89
|
+
in oklch,
|
|
90
|
+
var(--a63-action-primary) 44%,
|
|
91
|
+
var(--a63-border-subtle)
|
|
92
|
+
);
|
|
93
|
+
--a63-weather-backdrop: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ── Light terminal — dark-green phosphor on a light paper surface ──────── */
|
|
97
|
+
[data-a63-theme='terminal']:is(:root, .light, [data-a63-mode='light']),
|
|
98
|
+
[data-a63-theme='terminal'] :is(.light, [data-a63-mode='light']) {
|
|
99
|
+
/* Darker phosphor ink on paper — pure brand-500 fails AA on near-white page. */
|
|
100
|
+
--a63-text-primary: color-mix(in oklch, var(--a63-action-primary) 70%, black);
|
|
101
|
+
--a63-text-secondary: color-mix(in oklch, var(--a63-action-primary) 52%, black);
|
|
102
|
+
--a63-border-control: color-mix(
|
|
103
|
+
in oklch,
|
|
104
|
+
var(--a63-action-primary) 26%,
|
|
105
|
+
color-mix(in oklch, var(--surface-light-5) 60%, white)
|
|
106
|
+
);
|
|
107
|
+
--a63-border-subtle: color-mix(
|
|
108
|
+
in oklch,
|
|
109
|
+
var(--a63-action-primary) 16%,
|
|
110
|
+
color-mix(in oklch, var(--surface-light-6) 50%, white)
|
|
111
|
+
);
|
|
112
|
+
--a63-surface-page: color-mix(in oklch, var(--surface-light-1) 60%, white);
|
|
113
|
+
--a63-surface-panel: color-mix(in oklch, var(--surface-light-2) 60%, white);
|
|
114
|
+
--a63-field-background: color-mix(
|
|
115
|
+
in oklch,
|
|
116
|
+
var(--surface-light-2) 86%,
|
|
117
|
+
var(--a63-action-primary)
|
|
118
|
+
);
|
|
119
|
+
--a63-action-neutral: color-mix(in oklch, var(--surface-light-3) 60%, white);
|
|
120
|
+
--a63-action-neutral-foreground: color-mix(
|
|
121
|
+
in oklch,
|
|
122
|
+
var(--a63-action-primary) 80%,
|
|
123
|
+
var(--surface-light-12)
|
|
124
|
+
);
|
|
125
|
+
--a63-weather-background-color: color-mix(in oklch, var(--a63-action-primary) 34%, white 66%);
|
|
126
|
+
--a63-weather-background-image:
|
|
127
|
+
linear-gradient(color-mix(in oklch, var(--a63-action-primary) 18%, transparent), transparent),
|
|
128
|
+
linear-gradient(
|
|
129
|
+
135deg,
|
|
130
|
+
color-mix(in oklch, var(--a63-action-primary) 48%, white 52%),
|
|
131
|
+
color-mix(in oklch, var(--a63-action-primary) 36%, white 64%)
|
|
132
|
+
);
|
|
133
|
+
--a63-weather-foreground: color-mix(
|
|
134
|
+
in oklch,
|
|
135
|
+
var(--a63-action-primary) 82%,
|
|
136
|
+
var(--surface-light-12)
|
|
137
|
+
);
|
|
138
|
+
--a63-weather-muted-foreground: color-mix(
|
|
139
|
+
in oklch,
|
|
140
|
+
var(--a63-action-primary) 58%,
|
|
141
|
+
var(--surface-light-10)
|
|
142
|
+
);
|
|
143
|
+
--a63-weather-divider-color: color-mix(in oklch, var(--a63-action-primary) 38%, transparent);
|
|
144
|
+
--a63-weather-text-shadow: 0 0 10px
|
|
145
|
+
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
|
+
}
|
|
149
|
+
|
|
150
|
+
/* ── Dark terminal — bright phosphor on near-black ─────────────────────── */
|
|
151
|
+
[data-a63-theme='terminal']:is(.dark, [data-a63-mode='dark']),
|
|
152
|
+
[data-a63-theme='terminal'] :is(.dark, [data-a63-mode='dark']) {
|
|
153
|
+
/* Opaque phosphor text — translucent secondary failed AA against the page. */
|
|
154
|
+
--a63-text-primary: color-mix(in oklch, var(--a63-action-primary) 62%, white);
|
|
155
|
+
--a63-text-secondary: color-mix(in oklch, var(--a63-action-primary) 48%, var(--surface-dark-11));
|
|
156
|
+
--a63-border-control: color-mix(in oklch, var(--a63-action-primary) 42%, transparent);
|
|
157
|
+
--a63-border-subtle: color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
158
|
+
--a63-surface-page: color-mix(in oklch, var(--surface-dark-1) 92%, var(--a63-action-primary));
|
|
159
|
+
--a63-surface-panel: color-mix(in oklch, var(--surface-dark-2) 92%, var(--a63-action-primary));
|
|
160
|
+
--a63-field-background: color-mix(in oklch, var(--surface-dark-1) 90%, var(--a63-action-primary));
|
|
161
|
+
--a63-action-neutral: color-mix(
|
|
162
|
+
in oklch,
|
|
163
|
+
var(--surface-dark-3) 86%,
|
|
164
|
+
var(--a63-action-primary) 14%
|
|
165
|
+
);
|
|
166
|
+
--a63-action-neutral-foreground: var(--a63-action-primary);
|
|
167
|
+
--a63-weather-background-color: color-mix(in oklch, var(--a63-action-primary) 22%, black 78%);
|
|
168
|
+
--a63-weather-background-image:
|
|
169
|
+
linear-gradient(color-mix(in oklch, var(--a63-action-primary) 12%, transparent), transparent),
|
|
170
|
+
linear-gradient(
|
|
171
|
+
135deg,
|
|
172
|
+
color-mix(in oklch, var(--a63-action-primary) 30%, black 70%),
|
|
173
|
+
color-mix(in oklch, var(--a63-action-primary) 16%, black 84%)
|
|
174
|
+
);
|
|
175
|
+
--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-action-primary) 54%, white 46%);
|
|
177
|
+
--a63-weather-divider-color: color-mix(in oklch, var(--a63-action-primary) 36%, transparent);
|
|
178
|
+
--a63-weather-text-shadow: 0 0 8px color-mix(in oklch, var(--a63-action-primary) 38%, transparent);
|
|
179
|
+
}
|