@atom63/styles 0.1.0-beta.1 → 0.1.0-beta.10
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/LICENSE +21 -0
- package/README.md +22 -13
- package/generated/atom63.figma-sync.json +23201 -0
- package/generated/atom63.tokens.json +19625 -8406
- package/generated/z-layers.d.ts +33 -0
- package/generated/z-layers.js +31 -0
- package/package.json +29 -15
- package/src/compat/a63-from-shadcn.css +275 -0
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +133 -17
- 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 +128 -58
- package/src/contracts/badge.resolver.json +454 -0
- package/src/contracts/choice.css +5 -2
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +54 -57
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +294 -0
- package/src/contracts/environment.css +178 -60
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +1210 -0
- package/src/contracts/field.css +4 -2
- 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 +5 -1
- package/src/contracts/selection.tokens.json +42 -0
- package/src/contracts/skeleton.css +18 -2
- package/src/contracts/skeleton.resolver.json +62 -0
- package/src/contracts/surface.css +17 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +154 -0
- package/src/contracts/toggle.css +27 -3
- package/src/contracts/toggle.resolver.json +129 -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 +76 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1110 -0
- package/src/tailwind/roles.json +189 -0
- package/src/tailwind/theme.css +216 -24
- package/src/tailwind/utilities.css +17 -0
- package/src/themes/aqua.css +126 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1304 -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 +22 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +794 -0
- package/src/themes/terminal.css +151 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +585 -0
- package/src/tokens/brand-action.css +65 -0
- package/src/tokens/brand-action.resolver.json +155 -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 +101 -0
- package/src/tokens/contrast.browser.test.ts +257 -5
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/figma-parity.browser.test.ts +270 -0
- package/src/tokens/font.css +12 -0
- package/src/tokens/font.resolver.json +128 -0
- package/src/tokens/form-factor.browser.test.ts +129 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +11 -5
- package/src/tokens/foundation/fonts.tokens.json +45 -0
- package/src/tokens/foundation/motion.css +3 -0
- package/src/tokens/foundation/motion.tokens.json +53 -0
- package/src/tokens/foundation/palette.css +3 -0
- package/src/tokens/foundation/palette.tokens.json +1743 -0
- package/src/tokens/foundation/primitives.css +20 -43
- package/src/tokens/foundation/primitives.tokens.json +3258 -0
- package/src/tokens/foundation/radius.css +11 -9
- package/src/tokens/foundation/radius.tokens.json +108 -0
- package/src/tokens/foundation/typography.css +49 -12
- package/src/tokens/foundation/typography.native.css +21 -0
- package/src/tokens/foundation/typography.resolver.json +1008 -0
- package/src/tokens/foundation.css +0 -1
- package/src/tokens/index.css +1 -0
- 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 +18 -3
- package/src/tokens/plate-scope.browser.test.ts +73 -0
- package/src/tokens/radius.css +12 -8
- package/src/tokens/radius.resolver.json +138 -0
- package/src/tokens/semantics.css +656 -39
- package/src/tokens/semantics.resolver.json +1606 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/surface.css +13 -19
- package/src/tokens/surface.resolver.json +706 -0
- package/src/tokens/swift-parity.browser.test.ts +141 -0
- package/src/tokens/type-roles.css +88 -0
- package/src/tokens/type-roles.resolver.json +419 -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 -21664
- package/src/tokens/foundation/aliases.css +0 -28
- package/src/z-layers.ts +0 -40
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,22 @@
|
|
|
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
|
-
--a63-
|
|
94
|
-
/*
|
|
95
|
-
|
|
96
|
-
|
|
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
|
+
--a63-surface-raised-shadow: var(--a63-surface-shadow);
|
|
60
|
+
/* Menus need a quieter, more even backplate than larger Aqua overlays so
|
|
61
|
+
dense rows remain legible from top to bottom. */
|
|
62
|
+
--a63-menu-popup-background: color-mix(in oklab, var(--a63-surface-overlay) 92%, white);
|
|
105
63
|
--a63-track-shadow:
|
|
106
64
|
inset 0 2px 3px color-mix(in oklch, black 14%, transparent),
|
|
107
65
|
inset 0 -1px 0 color-mix(in oklch, white 45%, transparent);
|
|
@@ -114,16 +72,10 @@
|
|
|
114
72
|
--a63-choice-box-shadow-checked:
|
|
115
73
|
inset 0 1px 0 color-mix(in oklch, white 34%, transparent),
|
|
116
74
|
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
75
|
/* ── Segment / ToggleGroup (Figma A63-System 432:1335) ─────────────────────
|
|
123
|
-
|
|
124
|
-
|
|
76
|
+
Welded gel CELLS own the chrome. Resting = soft card→muted wash + quiet
|
|
77
|
+
mid-line sheen. Selected = pressed-IN plate + restrained gel + inset. */
|
|
125
78
|
--a63-segment-track-background: var(--a63-surface-muted);
|
|
126
|
-
--a63-segment-track-gloss: none;
|
|
127
79
|
--a63-segment-track-shadow: var(--a63-track-shadow);
|
|
128
80
|
--a63-segment-track-border: var(--a63-border-subtle);
|
|
129
81
|
--a63-segment-foreground: var(--a63-text-secondary);
|
|
@@ -140,13 +92,6 @@
|
|
|
140
92
|
linear-gradient(180deg, var(--a63-surface-panel) 0%, var(--a63-surface-muted) 100%);
|
|
141
93
|
--a63-segment-selected-background: var(--a63-surface-panel);
|
|
142
94
|
--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
95
|
--a63-segment-selected-shadow:
|
|
151
96
|
inset 0 1px 0 color-mix(in oklch, white 35%, transparent),
|
|
152
97
|
inset 0 2px 6px color-mix(in oklch, black 14%, transparent);
|
|
@@ -162,12 +107,11 @@
|
|
|
162
107
|
--a63-weather-muted-foreground: color-mix(in oklch, white 76%, transparent);
|
|
163
108
|
--a63-weather-divider-color: color-mix(in oklch, white 24%, transparent);
|
|
164
109
|
--a63-weather-text-shadow: 0 1px 2px color-mix(in oklch, black 42%, transparent);
|
|
165
|
-
--a63-weather-backdrop: none;
|
|
166
110
|
}
|
|
167
111
|
|
|
168
112
|
[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
|
|
113
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-light-2) 95%, var(--color-b1-500));
|
|
114
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-light-1) 96%, var(--color-b1-500));
|
|
171
115
|
--a63-weather-border-color: color-mix(in oklch, var(--a63-action-primary) 32%, transparent);
|
|
172
116
|
--a63-weather-background-image:
|
|
173
117
|
radial-gradient(
|
|
@@ -185,32 +129,30 @@
|
|
|
185
129
|
color-mix(in oklch, var(--a63-action-primary) 78%, white 10%),
|
|
186
130
|
color-mix(in oklch, var(--a63-action-primary) 70%, var(--color-b1-900) 30%)
|
|
187
131
|
);
|
|
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
132
|
}
|
|
191
133
|
|
|
192
134
|
[data-a63-theme='aqua']:is(.dark, [data-a63-mode='dark']) {
|
|
193
|
-
--a63-surface-page: color-mix(in
|
|
194
|
-
--a63-surface-panel: color-mix(in
|
|
135
|
+
--a63-surface-page: color-mix(in oklab, var(--surface-dark-1) 94%, var(--color-b1-500));
|
|
136
|
+
--a63-surface-panel: color-mix(in oklab, var(--surface-dark-2) 94%, var(--color-b1-500));
|
|
195
137
|
/* Lift neutral menu rows above the striped gray backplate without turning the
|
|
196
|
-
|
|
138
|
+
hover state into the stronger primary-selection treatment. */
|
|
197
139
|
--a63-menu-highlight-background: color-mix(in oklch, white 12%, transparent);
|
|
198
140
|
--a63-weather-border-color: color-mix(in oklch, white 14%, transparent);
|
|
199
141
|
--a63-weather-background-image:
|
|
200
142
|
radial-gradient(
|
|
201
143
|
120% 90% at 10% 0%,
|
|
202
|
-
color-mix(in
|
|
144
|
+
color-mix(in oklab, white 18%, transparent),
|
|
203
145
|
transparent 48%
|
|
204
146
|
),
|
|
205
147
|
radial-gradient(
|
|
206
148
|
88% 110% at 100% 0%,
|
|
207
|
-
color-mix(in
|
|
149
|
+
color-mix(in oklab, var(--a63-action-primary) 30%, transparent),
|
|
208
150
|
transparent 58%
|
|
209
151
|
),
|
|
210
152
|
linear-gradient(
|
|
211
153
|
135deg,
|
|
212
|
-
color-mix(in
|
|
213
|
-
color-mix(in
|
|
154
|
+
color-mix(in oklab, var(--a63-action-primary) 58%, var(--surface-dark-6) 42%),
|
|
155
|
+
color-mix(in oklab, var(--a63-action-primary) 36%, var(--surface-dark-3) 64%)
|
|
214
156
|
);
|
|
215
157
|
/* Dark gel: quieter sheen so the mid-line doesn't blow out to a white band. */
|
|
216
158
|
--a63-segment-gloss:
|
|
@@ -225,12 +167,6 @@
|
|
|
225
167
|
color-mix(in oklch, var(--a63-surface-panel) 88%, white) 0%,
|
|
226
168
|
var(--a63-surface-muted) 100%
|
|
227
169
|
);
|
|
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
170
|
--a63-segment-selected-shadow:
|
|
235
171
|
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
236
172
|
inset 0 3px 8px color-mix(in oklch, black 28%, transparent);
|
|
@@ -238,3 +174,104 @@
|
|
|
238
174
|
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
239
175
|
inset 0 3px 10px color-mix(in oklch, black 42%, transparent);
|
|
240
176
|
}
|
|
177
|
+
|
|
178
|
+
[data-a63-theme='aqua']:is([data-a63-brand], [data-a63-surface]),
|
|
179
|
+
[data-a63-theme='aqua'] :is([data-a63-brand], [data-a63-surface]) {
|
|
180
|
+
/* The mode roles again, on scopes that change what they read, keyed to the nearest mode scope. */
|
|
181
|
+
--a63-surface-page: var(
|
|
182
|
+
--a63-if-light,
|
|
183
|
+
color-mix(in oklab, var(--surface-light-2) 95%, var(--color-b1-500))
|
|
184
|
+
)
|
|
185
|
+
var(--a63-if-dark, color-mix(in oklab, var(--surface-dark-1) 94%, var(--color-b1-500)));
|
|
186
|
+
--a63-surface-panel: var(
|
|
187
|
+
--a63-if-light,
|
|
188
|
+
color-mix(in oklab, var(--surface-light-1) 96%, var(--color-b1-500))
|
|
189
|
+
)
|
|
190
|
+
var(--a63-if-dark, color-mix(in oklab, var(--surface-dark-2) 94%, var(--color-b1-500)));
|
|
191
|
+
--a63-weather-border-color: var(
|
|
192
|
+
--a63-if-light,
|
|
193
|
+
color-mix(in oklch, var(--a63-action-primary) 32%, transparent)
|
|
194
|
+
)
|
|
195
|
+
var(--a63-if-dark, color-mix(in oklch, white 14%, transparent));
|
|
196
|
+
--a63-weather-background-image: var(
|
|
197
|
+
--a63-if-light,
|
|
198
|
+
radial-gradient(
|
|
199
|
+
120% 90% at 10% 0%,
|
|
200
|
+
color-mix(in oklch, white 28%, transparent),
|
|
201
|
+
transparent 48%
|
|
202
|
+
),
|
|
203
|
+
radial-gradient(
|
|
204
|
+
78% 100% at 100% 0%,
|
|
205
|
+
color-mix(in oklch, var(--a63-action-primary) 32%, transparent),
|
|
206
|
+
transparent 58%
|
|
207
|
+
),
|
|
208
|
+
linear-gradient(
|
|
209
|
+
135deg,
|
|
210
|
+
color-mix(in oklch, var(--a63-action-primary) 78%, white 10%),
|
|
211
|
+
color-mix(in oklch, var(--a63-action-primary) 70%, var(--color-b1-900) 30%)
|
|
212
|
+
)
|
|
213
|
+
)
|
|
214
|
+
var(
|
|
215
|
+
--a63-if-dark,
|
|
216
|
+
radial-gradient(
|
|
217
|
+
120% 90% at 10% 0%,
|
|
218
|
+
color-mix(in oklab, white 18%, transparent),
|
|
219
|
+
transparent 48%
|
|
220
|
+
),
|
|
221
|
+
radial-gradient(
|
|
222
|
+
88% 110% at 100% 0%,
|
|
223
|
+
color-mix(in oklab, var(--a63-action-primary) 30%, transparent),
|
|
224
|
+
transparent 58%
|
|
225
|
+
),
|
|
226
|
+
linear-gradient(
|
|
227
|
+
135deg,
|
|
228
|
+
color-mix(in oklab, var(--a63-action-primary) 58%, var(--surface-dark-6) 42%),
|
|
229
|
+
color-mix(in oklab, var(--a63-action-primary) 36%, var(--surface-dark-3) 64%)
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
--a63-segment-gloss: var(
|
|
233
|
+
--a63-if-light,
|
|
234
|
+
linear-gradient(
|
|
235
|
+
180deg,
|
|
236
|
+
color-mix(in oklch, white 10%, transparent) 0%,
|
|
237
|
+
color-mix(in oklch, white 4%, transparent) 46%,
|
|
238
|
+
color-mix(in oklch, black 6%, transparent) 54%,
|
|
239
|
+
color-mix(in oklch, white 2%, transparent) 100%
|
|
240
|
+
),
|
|
241
|
+
linear-gradient(180deg, var(--a63-surface-panel) 0%, var(--a63-surface-muted) 100%)
|
|
242
|
+
)
|
|
243
|
+
var(
|
|
244
|
+
--a63-if-dark,
|
|
245
|
+
linear-gradient(
|
|
246
|
+
180deg,
|
|
247
|
+
color-mix(in oklch, white 8%, transparent) 0%,
|
|
248
|
+
color-mix(in oklch, white 2%, transparent) 48%,
|
|
249
|
+
color-mix(in oklch, black 14%, transparent) 100%
|
|
250
|
+
),
|
|
251
|
+
linear-gradient(
|
|
252
|
+
180deg,
|
|
253
|
+
color-mix(in oklch, var(--a63-surface-panel) 88%, white) 0%,
|
|
254
|
+
var(--a63-surface-muted) 100%
|
|
255
|
+
)
|
|
256
|
+
);
|
|
257
|
+
--a63-segment-selected-shadow: var(
|
|
258
|
+
--a63-if-light,
|
|
259
|
+
inset 0 1px 0 color-mix(in oklch, white 35%, transparent),
|
|
260
|
+
inset 0 2px 6px color-mix(in oklch, black 14%, transparent)
|
|
261
|
+
)
|
|
262
|
+
var(
|
|
263
|
+
--a63-if-dark,
|
|
264
|
+
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
265
|
+
inset 0 3px 8px color-mix(in oklch, black 28%, transparent)
|
|
266
|
+
);
|
|
267
|
+
--a63-segment-primary-shadow: var(
|
|
268
|
+
--a63-if-light,
|
|
269
|
+
inset 0 1px 0 color-mix(in oklch, white 28%, transparent),
|
|
270
|
+
inset 0 2px 8px color-mix(in oklch, black 36%, transparent)
|
|
271
|
+
)
|
|
272
|
+
var(
|
|
273
|
+
--a63-if-dark,
|
|
274
|
+
inset 0 1px 0 color-mix(in oklch, white 22%, transparent),
|
|
275
|
+
inset 0 3px 10px color-mix(in oklch, black 42%, transparent)
|
|
276
|
+
);
|
|
277
|
+
}
|
|
@@ -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
|
+
}
|