@once-ui-system/foundations 3.0.0-beta.1 → 3.0.0-rc.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.
@@ -0,0 +1,342 @@
1
+ /*
2
+ * Once UI for Tailwind CSS v4
3
+ *
4
+ * Import it before Tailwind, in the stylesheet where Tailwind is imported:
5
+ *
6
+ * @import "@once-ui-system/core/tailwind.css";
7
+ * @import "tailwindcss";
8
+ *
9
+ * What it does:
10
+ *
11
+ * 1. Layer order. Tailwind's preflight (`base`) sits under Once UI and
12
+ * Tailwind's utilities sit over it, so the reset never flattens a Once UI
13
+ * component and a `className="mt-4"` on one still wins. This file has to
14
+ * come before `@import "tailwindcss"`: a cascade layer keeps the place
15
+ * where its name first appears. Once UI's own stylesheets name the same
16
+ * order, so it holds whichever file the bundler loads first.
17
+ *
18
+ * 2. Once UI's tokens as Tailwind classes. They follow the theme, brand,
19
+ * accent and neutral colours you set in Once UI, light and dark included:
20
+ *
21
+ * bg-page bg-surface bg-{color}-{strength} bg-{color}-solid-{strength}
22
+ * bg-{color}-alpha-{strength}
23
+ * text-{color}-{strength} text-{color}-on-solid-{strength}
24
+ * border-{color}-{strength} border-surface
25
+ * ring-, outline-, fill-, stroke-, from-, to-, …: {color}-{strength}
26
+ * (the solid colour)
27
+ * rounded-xs … rounded-xl shadow-xs … shadow-xl
28
+ * font-heading font-body font-label font-code
29
+ * text-display-{size} text-heading-{size} text-body-{size}
30
+ * text-label-{size} (with Once UI's line heights)
31
+ *
32
+ * {color}: brand, accent, neutral, success, warning, danger, info
33
+ * {strength}: strong, medium, weak
34
+ * {size}: xs, s, m, l, xl
35
+ *
36
+ * 3. `dark:` and `light:` follow Once UI's `data-theme`, not the operating
37
+ * system, so they agree with the theme switcher.
38
+ *
39
+ * 4. No shared class names. Tailwind's utilities outrank Once UI's, so a
40
+ * class both define would take Tailwind's rule on Once UI's elements too.
41
+ * 3.0 spells Once UI's spacing out (`padding-16`, `margin-top-8`,
42
+ * `offset-top-16`, `grid-columns-2`), so `p-4` and `mt-8` stay Tailwind's.
43
+ * The names left in common mean the same in both (`flex-row`,
44
+ * `cursor-pointer`, `overflow-hidden`, …); the list below stops Tailwind
45
+ * generating them, so Once UI's breakpoint forms (`s-flex-column`) still
46
+ * win. In an app, `align-baseline` is Once UI's `align-items: baseline`,
47
+ * and `blur-xl` and `shadow-xl` are Once UI's sizes.
48
+ *
49
+ * Tailwind's own scales (spacing, red-500, rounded-lg, sm: breakpoints) are
50
+ * left as they are. Once UI already defines --radius-xs, --radius-xl,
51
+ * --shadow-xs and --shadow-xl, so rounded-xs, rounded-xl, shadow-xs and
52
+ * shadow-xl take Once UI's values.
53
+ */
54
+
55
+ @layer properties, theme, base, once-ui, components, utilities;
56
+
57
+ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
58
+ @custom-variant light (&:where([data-theme="light"], [data-theme="light"] *));
59
+
60
+ /* tailwind-overlap:start
61
+ * Generated by scripts/tailwind-overlap.mjs: the class names Once UI and
62
+ * Tailwind both define. Tailwind does not generate them, so they keep Once
63
+ * UI's rule, which does the same thing, and its breakpoint forms still win.
64
+ */
65
+ @source not inline("align-baseline backdrop-blur-xl backdrop-blur-xs blur-xl");
66
+ @source not inline("blur-xs border-1 border-2 border-4 border-6 border-8");
67
+ @source not inline("border-dashed border-solid border-x-1 border-y-1");
68
+ @source not inline("cursor-default cursor-grab cursor-grabbing cursor-help");
69
+ @source not inline("cursor-move cursor-not-allowed cursor-pointer cursor-text");
70
+ @source not inline("cursor-wait cursor-zoom-in cursor-zoom-out flex-0 flex-1");
71
+ @source not inline("flex-10 flex-11 flex-12 flex-2 flex-3 flex-4 flex-5");
72
+ @source not inline("flex-6 flex-7 flex-8 flex-9 flex-nowrap flex-row");
73
+ @source not inline("flex-row-reverse flex-wrap flex-wrap-reverse font-body");
74
+ @source not inline("font-code font-heading font-label font-medium font-normal");
75
+ @source not inline("justify-around justify-between justify-center justify-end");
76
+ @source not inline("justify-start justify-stretch list-decimal list-disc");
77
+ @source not inline("opacity-0 opacity-10 opacity-100 opacity-20 opacity-30");
78
+ @source not inline("opacity-40 opacity-50 opacity-60 opacity-70 opacity-80");
79
+ @source not inline("opacity-90 overflow-auto overflow-clip overflow-hidden");
80
+ @source not inline("overflow-scroll overflow-visible overflow-x-auto");
81
+ @source not inline("overflow-x-clip overflow-x-hidden overflow-x-scroll");
82
+ @source not inline("overflow-x-visible overflow-y-auto overflow-y-clip");
83
+ @source not inline("overflow-y-hidden overflow-y-scroll overflow-y-visible");
84
+ @source not inline("pointer-events-auto pointer-events-none shadow-l shadow-m");
85
+ @source not inline("shadow-s shadow-xl shadow-xs truncate");
86
+ /* tailwind-overlap:end */
87
+
88
+ /*
89
+ * Two preflight rules Once UI does not expect, set back to the browser's.
90
+ * `line-height: 1.5` on html would grow every element that inherits it (a
91
+ * table cell, a label), and `resize: vertical` would pin Textarea's handle.
92
+ * `:root` outranks preflight's bare selectors in the same layer, which comes
93
+ * after this file.
94
+ */
95
+ @layer base {
96
+ :root {
97
+ line-height: normal;
98
+ }
99
+ :root textarea {
100
+ resize: revert-layer;
101
+ }
102
+ }
103
+
104
+ /*
105
+ * Every @theme block sits in `@layer theme`. Tailwind writes the theme
106
+ * variables its classes use (`rounded-xs` uses --radius-xs) where the first
107
+ * @theme block is; at the top level that was unlayered, so it beat Once UI's
108
+ * own --radius-xs and changed every Checkbox. In the theme layer, Once UI's
109
+ * tokens win.
110
+ */
111
+
112
+ /* Preflight's defaults for plain elements: Once UI's body and code fonts. */
113
+ @layer theme {
114
+ @theme inline {
115
+ --default-font-family: var(--font-body);
116
+ --default-mono-font-family: var(--font-code);
117
+ }
118
+ }
119
+
120
+ /*
121
+ * `reference`: Tailwind writes these values into the classes it generates
122
+ * and emits no variables of its own, so nothing shadows Once UI's tokens.
123
+ */
124
+ @layer theme {
125
+ @theme inline reference {
126
+ /* bg-* */
127
+ --background-color-page: var(--page-background);
128
+ --background-color-surface: var(--surface-background);
129
+ --background-color-brand-strong: var(--brand-background-strong);
130
+ --background-color-brand-medium: var(--brand-background-medium);
131
+ --background-color-brand-weak: var(--brand-background-weak);
132
+ --background-color-brand-solid-strong: var(--brand-solid-strong);
133
+ --background-color-brand-solid-medium: var(--brand-solid-medium);
134
+ --background-color-brand-solid-weak: var(--brand-solid-weak);
135
+ --background-color-brand-alpha-strong: var(--brand-alpha-strong);
136
+ --background-color-brand-alpha-medium: var(--brand-alpha-medium);
137
+ --background-color-brand-alpha-weak: var(--brand-alpha-weak);
138
+ --background-color-accent-strong: var(--accent-background-strong);
139
+ --background-color-accent-medium: var(--accent-background-medium);
140
+ --background-color-accent-weak: var(--accent-background-weak);
141
+ --background-color-accent-solid-strong: var(--accent-solid-strong);
142
+ --background-color-accent-solid-medium: var(--accent-solid-medium);
143
+ --background-color-accent-solid-weak: var(--accent-solid-weak);
144
+ --background-color-accent-alpha-strong: var(--accent-alpha-strong);
145
+ --background-color-accent-alpha-medium: var(--accent-alpha-medium);
146
+ --background-color-accent-alpha-weak: var(--accent-alpha-weak);
147
+ --background-color-neutral-strong: var(--neutral-background-strong);
148
+ --background-color-neutral-medium: var(--neutral-background-medium);
149
+ --background-color-neutral-weak: var(--neutral-background-weak);
150
+ --background-color-neutral-solid-strong: var(--neutral-solid-strong);
151
+ --background-color-neutral-solid-medium: var(--neutral-solid-medium);
152
+ --background-color-neutral-solid-weak: var(--neutral-solid-weak);
153
+ --background-color-neutral-alpha-strong: var(--neutral-alpha-strong);
154
+ --background-color-neutral-alpha-medium: var(--neutral-alpha-medium);
155
+ --background-color-neutral-alpha-weak: var(--neutral-alpha-weak);
156
+ --background-color-success-strong: var(--success-background-strong);
157
+ --background-color-success-medium: var(--success-background-medium);
158
+ --background-color-success-weak: var(--success-background-weak);
159
+ --background-color-success-solid-strong: var(--success-solid-strong);
160
+ --background-color-success-solid-medium: var(--success-solid-medium);
161
+ --background-color-success-solid-weak: var(--success-solid-weak);
162
+ --background-color-success-alpha-strong: var(--success-alpha-strong);
163
+ --background-color-success-alpha-medium: var(--success-alpha-medium);
164
+ --background-color-success-alpha-weak: var(--success-alpha-weak);
165
+ --background-color-warning-strong: var(--warning-background-strong);
166
+ --background-color-warning-medium: var(--warning-background-medium);
167
+ --background-color-warning-weak: var(--warning-background-weak);
168
+ --background-color-warning-solid-strong: var(--warning-solid-strong);
169
+ --background-color-warning-solid-medium: var(--warning-solid-medium);
170
+ --background-color-warning-solid-weak: var(--warning-solid-weak);
171
+ --background-color-warning-alpha-strong: var(--warning-alpha-strong);
172
+ --background-color-warning-alpha-medium: var(--warning-alpha-medium);
173
+ --background-color-warning-alpha-weak: var(--warning-alpha-weak);
174
+ --background-color-danger-strong: var(--danger-background-strong);
175
+ --background-color-danger-medium: var(--danger-background-medium);
176
+ --background-color-danger-weak: var(--danger-background-weak);
177
+ --background-color-danger-solid-strong: var(--danger-solid-strong);
178
+ --background-color-danger-solid-medium: var(--danger-solid-medium);
179
+ --background-color-danger-solid-weak: var(--danger-solid-weak);
180
+ --background-color-danger-alpha-strong: var(--danger-alpha-strong);
181
+ --background-color-danger-alpha-medium: var(--danger-alpha-medium);
182
+ --background-color-danger-alpha-weak: var(--danger-alpha-weak);
183
+ --background-color-info-strong: var(--info-background-strong);
184
+ --background-color-info-medium: var(--info-background-medium);
185
+ --background-color-info-weak: var(--info-background-weak);
186
+ --background-color-info-solid-strong: var(--info-solid-strong);
187
+ --background-color-info-solid-medium: var(--info-solid-medium);
188
+ --background-color-info-solid-weak: var(--info-solid-weak);
189
+ --background-color-info-alpha-strong: var(--info-alpha-strong);
190
+ --background-color-info-alpha-medium: var(--info-alpha-medium);
191
+ --background-color-info-alpha-weak: var(--info-alpha-weak);
192
+
193
+ /* text-* */
194
+ --text-color-brand-strong: var(--brand-on-background-strong);
195
+ --text-color-brand-medium: var(--brand-on-background-medium);
196
+ --text-color-brand-weak: var(--brand-on-background-weak);
197
+ --text-color-brand-on-solid-strong: var(--brand-on-solid-strong);
198
+ --text-color-brand-on-solid-medium: var(--brand-on-solid-medium);
199
+ --text-color-brand-on-solid-weak: var(--brand-on-solid-weak);
200
+ --text-color-accent-strong: var(--accent-on-background-strong);
201
+ --text-color-accent-medium: var(--accent-on-background-medium);
202
+ --text-color-accent-weak: var(--accent-on-background-weak);
203
+ --text-color-accent-on-solid-strong: var(--accent-on-solid-strong);
204
+ --text-color-accent-on-solid-medium: var(--accent-on-solid-medium);
205
+ --text-color-accent-on-solid-weak: var(--accent-on-solid-weak);
206
+ --text-color-neutral-strong: var(--neutral-on-background-strong);
207
+ --text-color-neutral-medium: var(--neutral-on-background-medium);
208
+ --text-color-neutral-weak: var(--neutral-on-background-weak);
209
+ --text-color-neutral-on-solid-strong: var(--neutral-on-solid-strong);
210
+ --text-color-neutral-on-solid-medium: var(--neutral-on-solid-medium);
211
+ --text-color-neutral-on-solid-weak: var(--neutral-on-solid-weak);
212
+ --text-color-success-strong: var(--success-on-background-strong);
213
+ --text-color-success-medium: var(--success-on-background-medium);
214
+ --text-color-success-weak: var(--success-on-background-weak);
215
+ --text-color-success-on-solid-strong: var(--success-on-solid-strong);
216
+ --text-color-success-on-solid-medium: var(--success-on-solid-medium);
217
+ --text-color-success-on-solid-weak: var(--success-on-solid-weak);
218
+ --text-color-warning-strong: var(--warning-on-background-strong);
219
+ --text-color-warning-medium: var(--warning-on-background-medium);
220
+ --text-color-warning-weak: var(--warning-on-background-weak);
221
+ --text-color-warning-on-solid-strong: var(--warning-on-solid-strong);
222
+ --text-color-warning-on-solid-medium: var(--warning-on-solid-medium);
223
+ --text-color-warning-on-solid-weak: var(--warning-on-solid-weak);
224
+ --text-color-danger-strong: var(--danger-on-background-strong);
225
+ --text-color-danger-medium: var(--danger-on-background-medium);
226
+ --text-color-danger-weak: var(--danger-on-background-weak);
227
+ --text-color-danger-on-solid-strong: var(--danger-on-solid-strong);
228
+ --text-color-danger-on-solid-medium: var(--danger-on-solid-medium);
229
+ --text-color-danger-on-solid-weak: var(--danger-on-solid-weak);
230
+ --text-color-info-strong: var(--info-on-background-strong);
231
+ --text-color-info-medium: var(--info-on-background-medium);
232
+ --text-color-info-weak: var(--info-on-background-weak);
233
+ --text-color-info-on-solid-strong: var(--info-on-solid-strong);
234
+ --text-color-info-on-solid-medium: var(--info-on-solid-medium);
235
+ --text-color-info-on-solid-weak: var(--info-on-solid-weak);
236
+
237
+ /* border-* and divide-* */
238
+ --border-color-surface: var(--surface-border);
239
+ --border-color-brand-strong: var(--brand-border-strong);
240
+ --border-color-brand-medium: var(--brand-border-medium);
241
+ --border-color-brand-weak: var(--brand-border-weak);
242
+ --border-color-accent-strong: var(--accent-border-strong);
243
+ --border-color-accent-medium: var(--accent-border-medium);
244
+ --border-color-accent-weak: var(--accent-border-weak);
245
+ --border-color-neutral-strong: var(--neutral-border-strong);
246
+ --border-color-neutral-medium: var(--neutral-border-medium);
247
+ --border-color-neutral-weak: var(--neutral-border-weak);
248
+ --border-color-success-strong: var(--success-border-strong);
249
+ --border-color-success-medium: var(--success-border-medium);
250
+ --border-color-success-weak: var(--success-border-weak);
251
+ --border-color-warning-strong: var(--warning-border-strong);
252
+ --border-color-warning-medium: var(--warning-border-medium);
253
+ --border-color-warning-weak: var(--warning-border-weak);
254
+ --border-color-danger-strong: var(--danger-border-strong);
255
+ --border-color-danger-medium: var(--danger-border-medium);
256
+ --border-color-danger-weak: var(--danger-border-weak);
257
+ --border-color-info-strong: var(--info-border-strong);
258
+ --border-color-info-medium: var(--info-border-medium);
259
+ --border-color-info-weak: var(--info-border-weak);
260
+
261
+ /* Everything else that takes a colour: ring-, outline-, fill-, stroke-, from-, … */
262
+ --color-brand-strong: var(--brand-solid-strong);
263
+ --color-brand-medium: var(--brand-solid-medium);
264
+ --color-brand-weak: var(--brand-solid-weak);
265
+ --color-accent-strong: var(--accent-solid-strong);
266
+ --color-accent-medium: var(--accent-solid-medium);
267
+ --color-accent-weak: var(--accent-solid-weak);
268
+ --color-neutral-strong: var(--neutral-solid-strong);
269
+ --color-neutral-medium: var(--neutral-solid-medium);
270
+ --color-neutral-weak: var(--neutral-solid-weak);
271
+ --color-success-strong: var(--success-solid-strong);
272
+ --color-success-medium: var(--success-solid-medium);
273
+ --color-success-weak: var(--success-solid-weak);
274
+ --color-warning-strong: var(--warning-solid-strong);
275
+ --color-warning-medium: var(--warning-solid-medium);
276
+ --color-warning-weak: var(--warning-solid-weak);
277
+ --color-danger-strong: var(--danger-solid-strong);
278
+ --color-danger-medium: var(--danger-solid-medium);
279
+ --color-danger-weak: var(--danger-solid-weak);
280
+ --color-info-strong: var(--info-solid-strong);
281
+ --color-info-medium: var(--info-solid-medium);
282
+ --color-info-weak: var(--info-solid-weak);
283
+
284
+ /* rounded-* (xs and xl are Once UI's already) */
285
+ --radius-s: var(--radius-s);
286
+ --radius-m: var(--radius-m);
287
+ --radius-l: var(--radius-l);
288
+
289
+ /* shadow-* (xs and xl are Once UI's already) */
290
+ --shadow-s: var(--shadow-s);
291
+ --shadow-m: var(--shadow-m);
292
+ --shadow-l: var(--shadow-l);
293
+
294
+ /* font-* */
295
+ --font-heading: var(--font-heading);
296
+ --font-body: var(--font-body);
297
+ --font-label: var(--font-label);
298
+ --font-code: var(--font-code);
299
+
300
+ /* text-{type}-{size} */
301
+ --text-display-xs: var(--font-size-display-xs);
302
+ --text-display-xs--line-height: var(--line-height-display-xs);
303
+ --text-display-s: var(--font-size-display-s);
304
+ --text-display-s--line-height: var(--line-height-display-s);
305
+ --text-display-m: var(--font-size-display-m);
306
+ --text-display-m--line-height: var(--line-height-display-m);
307
+ --text-display-l: var(--font-size-display-l);
308
+ --text-display-l--line-height: var(--line-height-display-l);
309
+ --text-display-xl: var(--font-size-display-xl);
310
+ --text-display-xl--line-height: var(--line-height-display-xl);
311
+ --text-heading-xs: var(--font-size-heading-xs);
312
+ --text-heading-xs--line-height: var(--line-height-heading-xs);
313
+ --text-heading-s: var(--font-size-heading-s);
314
+ --text-heading-s--line-height: var(--line-height-heading-s);
315
+ --text-heading-m: var(--font-size-heading-m);
316
+ --text-heading-m--line-height: var(--line-height-heading-m);
317
+ --text-heading-l: var(--font-size-heading-l);
318
+ --text-heading-l--line-height: var(--line-height-heading-l);
319
+ --text-heading-xl: var(--font-size-heading-xl);
320
+ --text-heading-xl--line-height: var(--line-height-heading-xl);
321
+ --text-body-xs: var(--font-size-body-xs);
322
+ --text-body-xs--line-height: var(--line-height-body-xs);
323
+ --text-body-s: var(--font-size-body-s);
324
+ --text-body-s--line-height: var(--line-height-body-s);
325
+ --text-body-m: var(--font-size-body-m);
326
+ --text-body-m--line-height: var(--line-height-body-m);
327
+ --text-body-l: var(--font-size-body-l);
328
+ --text-body-l--line-height: var(--line-height-body-l);
329
+ --text-body-xl: var(--font-size-body-xl);
330
+ --text-body-xl--line-height: var(--line-height-body-xl);
331
+ --text-label-xs: var(--font-size-label-xs);
332
+ --text-label-xs--line-height: var(--line-height-label-xs);
333
+ --text-label-s: var(--font-size-label-s);
334
+ --text-label-s--line-height: var(--line-height-label-s);
335
+ --text-label-m: var(--font-size-label-m);
336
+ --text-label-m--line-height: var(--line-height-label-m);
337
+ --text-label-l: var(--font-size-label-l);
338
+ --text-label-l--line-height: var(--line-height-label-l);
339
+ --text-label-xl: var(--font-size-label-xl);
340
+ --text-label-xl--line-height: var(--line-height-label-xl);
341
+ }
342
+ }
package/tokens/README.md CHANGED
@@ -35,7 +35,7 @@ To resolve a theme, take every layer whose `when` entries all equal your
35
35
  settings (and whose `maxWidth`, if any, is at least your screen width), apply
36
36
  them in order of how many conditions they have (`:root` counts as one), then
37
37
  file order — the same order the CSS cascade uses — and follow `{name}`
38
- references until you reach a value.
38
+ references until you reach a value (for `{name}/a`, scale the colour's alpha by `a`).
39
39
 
40
40
  Values:
41
41
 
@@ -43,6 +43,7 @@ Values:
43
43
  | --- | --- | --- |
44
44
  | Colour | `"#2d69fa"`, `"#0000001f"` | sRGB hex, converted from the OKLCH source; 8 digits when translucent. |
45
45
  | Reference | `"{function-brand-300}"` | Another token. |
46
+ | Translucent reference | `"{function-neutral-400}/0.15"` | Another colour token at that opacity (multiplied with its own alpha). From `color-mix(in srgb, var(--x) 15%, transparent)`. |
46
47
  | Length | `"0.75rem"`, `"1px"` | rem follows the root font size: 16px, 15px on phones (`font-scaling-mobile`). |
47
48
  | Number | `500`, `1.1` | Font weights, multipliers. |
48
49
  | Shadow | `[{ "x": 0, "y": 1, "blur": 2, "spread": 0, "color": "#00000014" }]` | One entry per layer. |
@@ -1759,6 +1759,11 @@
1759
1759
  "solid-inset-distance": 0,
1760
1760
  "solid-inset-size": 0,
1761
1761
  "solid-border-width": 0,
1762
+ "solid-glow-near": "0rem",
1763
+ "solid-glow-far": "0rem",
1764
+ "solid-glow-near-mix": "0%",
1765
+ "solid-glow-far-mix": "0%",
1766
+ "solid-glow-rim": "{static-transparent}",
1762
1767
  "backdrop-filter": "none",
1763
1768
  "surface-border": "{static-transparent}",
1764
1769
  "surface-background": "{neutral-background-medium}",
@@ -2160,9 +2165,9 @@
2160
2165
  "brand-border-strong": "{function-brand-800}",
2161
2166
  "brand-border-medium": "{function-brand-900}",
2162
2167
  "brand-border-weak": "{function-brand-1000}",
2163
- "brand-alpha-strong": "{function-brand-600-50}",
2164
- "brand-alpha-medium": "{function-brand-600-30}",
2165
- "brand-alpha-weak": "{function-brand-600-15}",
2168
+ "brand-alpha-strong": "{function-brand-500}/0.5",
2169
+ "brand-alpha-medium": "{function-brand-500}/0.3",
2170
+ "brand-alpha-weak": "{function-brand-500}/0.15",
2166
2171
  "brand-color-strong": "{function-brand-500}",
2167
2172
  "brand-color-medium": "{function-brand-400}",
2168
2173
  "brand-color-weak": "{function-brand-300}",
@@ -2181,9 +2186,9 @@
2181
2186
  "accent-border-strong": "{function-accent-800}",
2182
2187
  "accent-border-medium": "{function-accent-900}",
2183
2188
  "accent-border-weak": "{function-accent-1000}",
2184
- "accent-alpha-strong": "{function-accent-600-50}",
2185
- "accent-alpha-medium": "{function-accent-600-30}",
2186
- "accent-alpha-weak": "{function-accent-600-15}",
2189
+ "accent-alpha-strong": "{function-accent-500}/0.5",
2190
+ "accent-alpha-medium": "{function-accent-500}/0.3",
2191
+ "accent-alpha-weak": "{function-accent-500}/0.15",
2187
2192
  "page-background": "{function-neutral-1200}",
2188
2193
  "solid-border-color-neutral": "{neutral-alpha-strong}",
2189
2194
  "neutral-background-strong": "{function-neutral-800}",
@@ -2201,9 +2206,9 @@
2201
2206
  "neutral-border-strong": "{function-neutral-800}",
2202
2207
  "neutral-border-medium": "{function-neutral-900}",
2203
2208
  "neutral-border-weak": "{function-neutral-1000}",
2204
- "neutral-alpha-strong": "{function-neutral-600-50}",
2205
- "neutral-alpha-medium": "{function-neutral-600-30}",
2206
- "neutral-alpha-weak": "{function-neutral-600-15}"
2209
+ "neutral-alpha-strong": "{function-neutral-400}/0.5",
2210
+ "neutral-alpha-medium": "{function-neutral-400}/0.3",
2211
+ "neutral-alpha-weak": "{function-neutral-400}/0.15"
2207
2212
  }
2208
2213
  },
2209
2214
  {
@@ -2236,9 +2241,9 @@
2236
2241
  "info-border-strong": "{function-info-800}",
2237
2242
  "info-border-medium": "{function-info-900}",
2238
2243
  "info-border-weak": "{function-info-1000}",
2239
- "info-alpha-strong": "{function-info-600-50}",
2240
- "info-alpha-medium": "{function-info-600-30}",
2241
- "info-alpha-weak": "{function-info-600-15}",
2244
+ "info-alpha-strong": "{function-info-400}/0.5",
2245
+ "info-alpha-medium": "{function-info-400}/0.3",
2246
+ "info-alpha-weak": "{function-info-400}/0.15",
2242
2247
  "warning-background-strong": "{function-warning-800}",
2243
2248
  "warning-background-medium": "{function-warning-1000}",
2244
2249
  "warning-background-weak": "{static-white}",
@@ -2254,9 +2259,9 @@
2254
2259
  "warning-border-strong": "{function-warning-800}",
2255
2260
  "warning-border-medium": "{function-warning-900}",
2256
2261
  "warning-border-weak": "{function-warning-1000}",
2257
- "warning-alpha-strong": "{function-warning-600-50}",
2258
- "warning-alpha-medium": "{function-warning-600-30}",
2259
- "warning-alpha-weak": "{function-warning-600-15}",
2262
+ "warning-alpha-strong": "{function-warning-500}/0.5",
2263
+ "warning-alpha-medium": "{function-warning-500}/0.3",
2264
+ "warning-alpha-weak": "{function-warning-500}/0.15",
2260
2265
  "danger-background-strong": "{function-danger-800}",
2261
2266
  "danger-background-medium": "{function-danger-1000}",
2262
2267
  "danger-background-weak": "{static-white}",
@@ -2272,9 +2277,9 @@
2272
2277
  "danger-border-strong": "{function-danger-800}",
2273
2278
  "danger-border-medium": "{function-danger-900}",
2274
2279
  "danger-border-weak": "{function-danger-1000}",
2275
- "danger-alpha-strong": "{function-danger-600-50}",
2276
- "danger-alpha-medium": "{function-danger-600-30}",
2277
- "danger-alpha-weak": "{function-danger-600-15}",
2280
+ "danger-alpha-strong": "{function-danger-500}/0.5",
2281
+ "danger-alpha-medium": "{function-danger-500}/0.3",
2282
+ "danger-alpha-weak": "{function-danger-500}/0.15",
2278
2283
  "success-background-strong": "{function-success-800}",
2279
2284
  "success-background-medium": "{function-success-1000}",
2280
2285
  "success-background-weak": "{static-white}",
@@ -2290,9 +2295,9 @@
2290
2295
  "success-border-strong": "{function-success-800}",
2291
2296
  "success-border-medium": "{function-success-900}",
2292
2297
  "success-border-weak": "{function-success-1000}",
2293
- "success-alpha-strong": "{function-success-600-50}",
2294
- "success-alpha-medium": "{function-success-600-30}",
2295
- "success-alpha-weak": "{function-success-600-15}"
2298
+ "success-alpha-strong": "{function-success-500}/0.5",
2299
+ "success-alpha-medium": "{function-success-500}/0.3",
2300
+ "success-alpha-weak": "{function-success-500}/0.15"
2296
2301
  }
2297
2302
  },
2298
2303
  {
@@ -2305,6 +2310,43 @@
2305
2310
  "solid-border-width": "1px"
2306
2311
  }
2307
2312
  },
2313
+ {
2314
+ "when": {
2315
+ "solidStyle": "glow"
2316
+ },
2317
+ "tokens": {
2318
+ "solid-border-width": "1px",
2319
+ "solid-glow-near": "0.625rem",
2320
+ "solid-glow-far": "1.75rem",
2321
+ "solid-glow-near-mix": "55%",
2322
+ "solid-glow-far-mix": "22%",
2323
+ "solid-glow-rim": "{static-white-medium}"
2324
+ }
2325
+ },
2326
+ {
2327
+ "when": {
2328
+ "solidStyle": "glow",
2329
+ "theme": "light"
2330
+ },
2331
+ "tokens": {
2332
+ "solid-glow-near": "0.5rem",
2333
+ "solid-glow-far": "1.25rem",
2334
+ "solid-glow-near-mix": "45%",
2335
+ "solid-glow-far-mix": "14%"
2336
+ }
2337
+ },
2338
+ {
2339
+ "when": {
2340
+ "solidStyle": "glow",
2341
+ "theme": "light"
2342
+ },
2343
+ "tokens": {
2344
+ "solid-glow-near": "0.5rem",
2345
+ "solid-glow-far": "1.25rem",
2346
+ "solid-glow-near-mix": "45%",
2347
+ "solid-glow-far-mix": "14%"
2348
+ }
2349
+ },
2308
2350
  {
2309
2351
  "when": {
2310
2352
  "transition": "all"
@@ -2467,34 +2509,6 @@
2467
2509
  "brand-on-solid-weak": "{function-brand-900}"
2468
2510
  }
2469
2511
  },
2470
- {
2471
- "when": {
2472
- "theme": "dark",
2473
- "solid": "color"
2474
- },
2475
- "tokens": {
2476
- "brand-solid-strong": "{function-brand-500}",
2477
- "brand-solid-medium": "{function-brand-400}",
2478
- "brand-solid-weak": "{function-brand-300}",
2479
- "brand-on-solid-strong": "{static-white}",
2480
- "brand-on-solid-medium": "{function-brand-1100}",
2481
- "brand-on-solid-weak": "{function-brand-900}"
2482
- }
2483
- },
2484
- {
2485
- "when": {
2486
- "theme": "dark",
2487
- "solid": "contrast"
2488
- },
2489
- "tokens": {
2490
- "brand-solid-strong": "{function-neutral-1000}",
2491
- "brand-solid-medium": "{static-white}",
2492
- "brand-solid-weak": "{function-neutral-900}",
2493
- "brand-on-solid-strong": "{static-black}",
2494
- "brand-on-solid-medium": "{function-neutral-100}",
2495
- "brand-on-solid-weak": "{function-neutral-200}"
2496
- }
2497
- },
2498
2512
  {
2499
2513
  "when": {
2500
2514
  "theme": "dark",
@@ -2523,34 +2537,6 @@
2523
2537
  "brand-on-solid-weak": "{function-brand-200}"
2524
2538
  }
2525
2539
  },
2526
- {
2527
- "when": {
2528
- "theme": "dark",
2529
- "solid": "inverse"
2530
- },
2531
- "tokens": {
2532
- "brand-solid-strong": "{function-brand-800}",
2533
- "brand-solid-medium": "{function-brand-700}",
2534
- "brand-solid-weak": "{function-brand-600}",
2535
- "brand-on-solid-strong": "{static-black}",
2536
- "brand-on-solid-medium": "{function-brand-100}",
2537
- "brand-on-solid-weak": "{function-brand-200}"
2538
- }
2539
- },
2540
- {
2541
- "when": {
2542
- "theme": "light",
2543
- "solid": "color"
2544
- },
2545
- "tokens": {
2546
- "brand-solid-strong": "{function-brand-500}",
2547
- "brand-solid-medium": "{function-brand-400}",
2548
- "brand-solid-weak": "{function-brand-300}",
2549
- "brand-on-solid-strong": "{static-white}",
2550
- "brand-on-solid-medium": "{function-brand-1100}",
2551
- "brand-on-solid-weak": "{function-brand-1000}"
2552
- }
2553
- },
2554
2540
  {
2555
2541
  "when": {
2556
2542
  "theme": "light",
@@ -2579,20 +2565,6 @@
2579
2565
  "brand-on-solid-weak": "{function-neutral-1000}"
2580
2566
  }
2581
2567
  },
2582
- {
2583
- "when": {
2584
- "theme": "light",
2585
- "solid": "contrast"
2586
- },
2587
- "tokens": {
2588
- "brand-solid-strong": "{function-neutral-300}",
2589
- "brand-solid-medium": "{static-black}",
2590
- "brand-solid-weak": "{function-neutral-400}",
2591
- "brand-on-solid-strong": "{static-white}",
2592
- "brand-on-solid-medium": "{function-neutral-1100}",
2593
- "brand-on-solid-weak": "{function-neutral-1000}"
2594
- }
2595
- },
2596
2568
  {
2597
2569
  "when": {
2598
2570
  "solid": "color"
@@ -2640,20 +2612,6 @@
2640
2612
  "brand-on-solid-weak": "{function-brand-200}"
2641
2613
  }
2642
2614
  },
2643
- {
2644
- "when": {
2645
- "theme": "light",
2646
- "solid": "inverse"
2647
- },
2648
- "tokens": {
2649
- "brand-solid-strong": "{function-brand-900}",
2650
- "brand-solid-medium": "{function-brand-800}",
2651
- "brand-solid-weak": "{function-brand-700}",
2652
- "brand-on-solid-strong": "{static-black}",
2653
- "brand-on-solid-medium": "{function-neutral-100}",
2654
- "brand-on-solid-weak": "{function-brand-200}"
2655
- }
2656
- },
2657
2615
  {
2658
2616
  "when": {
2659
2617
  "theme": "dark"