@threadlabs/looma 0.46.5 → 0.47.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/docs/theme.mjs CHANGED
@@ -72,11 +72,11 @@ const fontStarting = (values, body, display) => ({
72
72
  ...starting({ ...values, 'body-font': googleFontStack(body), 'display-font': googleFontStack(display) }),
73
73
  fonts: { 'body-font': body, 'display-font': display },
74
74
  });
75
- /** The documentation starts with Looma's coordinated identity; Clear keeps the neutral baseline. */
76
- export const defaultRecipe = () => ({ ...starting({ action: '#7658d6', canvas: '#fbf9f4', surface: '#ffffff', text: '#2b2538', 'body-font': googleFontStack('Manrope'), 'display-font': googleFontStack('Manrope'), 'text-size': '17px', 'inner-depth': '0.7' }), fonts: { 'body-font': 'Manrope', 'display-font': 'Manrope' } });
75
+ /** The documentation starts with Looma's coordinated identity; Minimal keeps the neutral baseline. */
76
+ export const defaultRecipe = () => ({ ...starting({ action: '#7658d6', canvas: '#fbf9f4', surface: '#fffdf8', text: '#2b2538', 'body-font': googleFontStack('Manrope'), 'display-font': googleFontStack('Manrope'), 'text-size': '17px', 'inner-depth': '0.7' }), fonts: { 'body-font': 'Manrope', 'display-font': 'Manrope' } });
77
77
  export const startingPoints = {
78
78
  looma: defaultRecipe(),
79
- clear: { ...starting({
79
+ minimal: { ...starting({
80
80
  'neutral-source': 'gray', 'neutral-strength': '0.18', 'neutral-border-contrast': '2.2', 'status-chroma': '0.1',
81
81
  'corner-roundness': '6px', 'outer-depth': '0.2', 'inner-depth': '0', 'response-time': '100ms',
82
82
  }), presets: { status: 'restrained' } },
@@ -129,11 +129,11 @@ export const startingPoints = {
129
129
  'response-time': '180ms', 'response-curve': 'cubic-bezier(0.16,1,0.3,1)',
130
130
  }, 'Nunito Sans', 'Lora'), presets: { status: 'semantic' } },
131
131
  };
132
- export const startingPointLabels = { looma: 'Looma', clear: 'Clear', gold: 'Gold', bookish: 'Bookish', wiki: 'Wiki', editorial: 'Editorial', night: 'Night', garden: 'Garden' };
132
+ export const startingPointLabels = { looma: 'Looma', minimal: 'Minimal', gold: 'Gold', bookish: 'Bookish', wiki: 'Wiki', editorial: 'Editorial', night: 'Night', garden: 'Garden' };
133
133
  const paletteKeys = themeFields.filter(field => field.family === 'Colour').map(field => field.id);
134
134
  // Palette choices move only the shared color seeds; size, material and motion stay independent.
135
135
  export const themePalettes = Object.fromEntries([
136
- ['looma', 'Looma'], ['clear', 'Indigo & mist'], ['gold', 'Gold'], ['bookish', 'Plum & paper'], ['wiki', 'Indigo & chalk'],
136
+ ['looma', 'Looma'], ['minimal', 'Indigo & mist'], ['gold', 'Gold'], ['bookish', 'Plum & paper'], ['wiki', 'Indigo & chalk'],
137
137
  ['editorial', 'Ink & parchment'], ['night', 'Midnight'], ['garden', 'Forest & cream'],
138
138
  ].map(([id, label]) => [id, { label, values: Object.fromEntries(paletteKeys.map(key => [key, startingPoints[id].values[key]])) }]));
139
139
 
@@ -354,6 +354,32 @@ function readableTone(seed, surfaces, minimum, endpoint) {
354
354
  return endpoint;
355
355
  }
356
356
 
357
+ // Preserve pigment rather than mixing it toward black/white. Deep solids need
358
+ // a larger lift than pale fills to make hover read with the same visual weight.
359
+ function interactionColour(fill, label, distance, direction = toLch(fill)[0] < .5 ? 1 : -1) {
360
+ const [l, c, h] = toLch(fill);
361
+ for (const sign of [direction, -direction]) {
362
+ const next = fromLch([l + sign * distance, c, h]);
363
+ if (contrast(next, label) >= 4.55) return next;
364
+ }
365
+ return readableTone(fill, [label], 4.55, foreground(label, '#ffffff', '#000000'));
366
+ }
367
+
368
+ // Calibrate translucent paint against its plate in Oklab. Raw percentages have
369
+ // very different perceptual weights for a dark plum, a bright gold and white ink.
370
+ function stateWash(pigment, plate, distance, dark) {
371
+ const [l, c, h] = toLch(pigment), washL = dark ? .65 : .72;
372
+ const wash = fromLch([washL, c * washL / Math.max(.001, l), h]);
373
+ let low = 0, high = 1;
374
+ for (let step = 0; step < 16; step++) {
375
+ const alpha = (low + high) / 2;
376
+ if (colourDistance(alphaSurface(wash, plate, alpha), plate) < distance) low = alpha; else high = alpha;
377
+ }
378
+ return wash + Math.round(high * 255).toString(16).padStart(2, '0');
379
+ }
380
+ const washSurface = (wash, surface) => alphaSurface(wash, surface, parseInt(wash.slice(7), 16) / 255);
381
+
382
+ const quietChromaScale = .74;
357
383
  const paletteCache = new Map();
358
384
  export function deriveTheme(input, { mode } = {}) {
359
385
  if (mode !== undefined && !['light', 'dark'].includes(mode)) throw new Error('Unknown theme color mode.');
@@ -416,19 +442,18 @@ export function deriveTheme(input, { mode } = {}) {
416
442
  for (const [part, colour] of Object.entries(materialColours(fill, onFill, values['light-color']))) tokens[`--ui-${tone}-${part}`] = colour;
417
443
  const stateTarget = onFill === '#000000' ? '#ffffff' : '#000000';
418
444
  const [fillL, fillC, fillH] = toLch(fill);
419
- for (const [state, amount, minimum] of [['hover', .14, .055], ['active', .26, .085]]) {
420
- const direction = onFill === '#000000' ? 1 : -1;
421
- const room = direction > 0 ? 1 - fillL : fillL;
422
- const lightness = Math.max(0, Math.min(1, fillL + direction * Math.max(minimum, room * amount)));
423
- const pigment = fromLch([lightness, fillC * lightness / (fillL || 1), fillH]);
424
- tokens[`--ui-${tone}-${state}`] = readableColour(pigment, [onFill], 4.55, stateTarget);
425
- }
426
- // Move the painted pigment with its interaction fill. A fixed opaque
427
- // reflection would otherwise hide hover, especially on deep accents.
428
- const density = toLch(tokens[`--ui-${tone}-hover`])[0] / (toLch(fill)[0] || 1);
445
+ const hoverStep = .035 + .08 * Math.max(0, 1 - fillL / .5);
446
+ tokens[`--ui-${tone}-hover`] = interactionColour(fill, onFill, hoverStep);
447
+ const direction = onFill === '#000000' ? 1 : -1;
448
+ const room = direction > 0 ? 1 - fillL : fillL;
449
+ const activeL = Math.max(0, Math.min(1, fillL + direction * Math.max(.085, room * .26)));
450
+ tokens[`--ui-${tone}-active`] = readableColour(fromLch([activeL, fillC * activeL / (fillL || 1), fillH]), [onFill], 4.55, stateTarget);
451
+ // Move the whole painted plane by the same step. A fixed reflection hides
452
+ // fill changes; multiplying its density exaggerates deep pigments' response.
453
+ const shift = toLch(tokens[`--ui-${tone}-hover`])[0] - toLch(fill)[0];
429
454
  for (const part of ['reflection', 'shade']) {
430
455
  const [l, c, h] = toLch(tokens[`--ui-${tone}-${part}`]);
431
- tokens[`--ui-${tone}-hover-${part}`] = readableColour(fromLch([l * density, c * density, h]), [onFill], 4.55, stateTarget);
456
+ tokens[`--ui-${tone}-hover-${part}`] = readableTone(fromLch([l + shift, c, h]), [onFill], 4.55, stateTarget);
432
457
  }
433
458
  const contextual = readableColour(fill, surfaces, 4.5, ink);
434
459
  const quiet = mix(contextual, tokens['--ui-surface-raised'], .20);
@@ -438,13 +463,34 @@ export function deriveTheme(input, { mode } = {}) {
438
463
  const warmLift = dark ? Math.max(0, 1 - Math.abs(pigmentH - 70) / 35) ** 2 : 0;
439
464
  const semantic = Object.hasOwn(statusSeeds, tone) && ['derived', 'related'].includes(values[tone + '-source']);
440
465
  const tintScale = semantic ? .25 + 1.5 * Number(values['status-chroma']) : 1;
441
- const quietC = Math.min(pigmentC, (dark ? .035 + .015 * warmLift : .02) * tintScale);
466
+ const quietC = Math.min(pigmentC, (dark ? .035 + .015 * warmLift : .02) * tintScale) * quietChromaScale;
442
467
  const softL = dark ? Math.max(quietL, plateL + .07) + .04 * warmLift : Math.max(.92, plateL - .04);
443
468
  tokens[`--ui-${tone}-soft`] = readableColour(fromLch([softL, quietC, pigmentH]), [ink], 4.5, paper);
444
469
  }
470
+ const choiceFill = tokens['--ui-accent'], choiceInk = tokens['--ui-on-accent'];
471
+ tokens['--ui-choice-hover-surface'] = interactionColour(choiceFill, choiceInk, .04);
472
+ const choiceShift = toLch(tokens['--ui-choice-hover-surface'])[0] - toLch(choiceFill)[0];
473
+ for (const part of ['reflection', 'shade']) {
474
+ const [l, c, h] = toLch(tokens[`--ui-accent-${part}`]);
475
+ tokens[`--ui-choice-hover-${part}`] = readableTone(fromLch([l + choiceShift, c, h]), [choiceInk], 4.55, foreground(choiceInk, '#ffffff', '#000000'));
476
+ }
477
+ const materialOpacity = Number(values.finish) * Number(values['light-strength']);
478
+ const preliminaryMaterial = materialColours(tokens['--ui-surface-raised'], ink, values['light-color']);
479
+ const washPlate = alphaSurface(mix(preliminaryMaterial.reflection, preliminaryMaterial.shade, .5), tokens['--ui-surface-raised'], materialOpacity);
480
+ for (const tone of Object.keys(tones)) {
481
+ const [l, c, h] = toLch(tokens[`--ui-${tone}`]);
482
+ const quietPigment = fromLch([l, c * quietChromaScale, h]);
483
+ tokens[`--ui-${tone}-wash`] = stateWash(quietPigment, washPlate, .04, dark);
484
+ tokens[`--ui-${tone}-wash-hover`] = stateWash(quietPigment, washPlate, .065, dark);
485
+ tokens[`--ui-${tone}-ghost-hover`] = stateWash(tokens[`--ui-${tone}`], tokens['--ui-surface'], .03, dark);
486
+ }
487
+ tokens['--ui-neutral-wash-hover'] = stateWash(ink, washPlate, .025, dark);
488
+ tokens['--ui-neutral-ghost-hover'] = stateWash(ink, tokens['--ui-surface'], .03, dark);
489
+ const washSurfaces = Object.entries(tokens).filter(([name]) => /-(wash|wash-hover|ghost-hover)$/.test(name))
490
+ .flatMap(([, wash]) => [...surfaces, washPlate].map(surface => washSurface(wash, surface)));
445
491
  // Quiet fills are actual alpha composites. At an extreme light/dark flip,
446
492
  // reduce their shared tint before it would leave no readable contextual ink.
447
- const quietSurfaces = strength => [...surfaces, ...surfaces.map(surface => alphaSurface(surface, ink, 1 - .1 * Number(values.translucency))), ...(dark ? [readableColour(mix(ink, tokens['--ui-surface-raised'], .22), [ink], 4.5, paper)] : []), ...Object.keys(tones).map(tone => tokens[`--ui-${tone}-soft`]), ...Object.keys(tones).flatMap(tone => surfaces.flatMap(background => [
493
+ const quietSurfaces = strength => [...surfaces, ...washSurfaces, ...surfaces.map(surface => alphaSurface(surface, ink, 1 - .1 * Number(values.translucency))), ...(dark ? [readableColour(mix(ink, tokens['--ui-surface-raised'], .22), [ink], 4.5, paper)] : []), ...Object.keys(tones).map(tone => tokens[`--ui-${tone}-soft`]), ...Object.keys(tones).flatMap(tone => surfaces.flatMap(background => [
448
494
  mix(tokens[`--ui-${tone}`], background, .12 * strength),
449
495
  ...[.05, .12, .18, .19].map(alpha => alphaSurface(tokens[`--ui-${tone}`], background, alpha * strength)),
450
496
  ]))];
@@ -476,31 +522,37 @@ export function deriveTheme(input, { mode } = {}) {
476
522
  const [, neutralC, neutralH] = toLch(neutralSource === 'text' || neutralSource === 'gray' ? tokens['--ui-text'] : accents[neutralSource]);
477
523
  const neutral = fromLch([toLch(tokens['--ui-text'])[0], neutralSource === 'gray' ? 0 : Math.min(.04, neutralC), neutralH]);
478
524
  const fillAmount = .02 + Number(values['neutral-strength']) * .16;
479
- for (const [state, amount] of [['surface', fillAmount], ['hover', fillAmount + .04], ['active', fillAmount + .08]]) {
525
+ for (const [state, amount] of [['surface', fillAmount], ['active', fillAmount + .08]]) {
480
526
  const tinted = mix(neutral, tokens['--ui-surface-raised'], amount * (dark ? 2.25 : 1));
481
527
  const [l, c, h] = toLch(tinted);
482
528
  const fill = dark ? fromLch([Math.max(l, toLch(tokens['--ui-surface-raised'])[0] + amount * 1.5), c, h]) : tinted;
483
529
  tokens[`--ui-neutral-${state}`] = readableColour(fill, [tokens['--ui-text']], 4.5, paper);
484
530
  }
531
+ tokens['--ui-neutral-hover'] = interactionColour(tokens['--ui-neutral-surface'], tokens['--ui-text'], .035, dark ? 1 : -1);
485
532
  const borderSurfaces = [...surfaces, tokens['--ui-neutral-surface']];
486
533
  const engagedSurfaces = [...surfaces, tokens['--ui-neutral-hover'], tokens['--ui-neutral-active']];
487
534
  tokens['--ui-control-border'] = readableColour(mix(neutral, tokens['--ui-surface-raised'], .14), borderSurfaces, borderMinimum, ink);
488
- tokens['--ui-control-border-hover'] = readableColour(tokens['--ui-control-border'], engagedSurfaces, Math.min(4.5, borderMinimum + .3), ink);
535
+ tokens['--ui-control-border-hover'] = readableColour(tokens['--ui-control-border'], engagedSurfaces, Math.min(4.5, borderMinimum + .4), ink);
489
536
  tokens['--ui-border'] = mix(neutral, tokens['--ui-surface-raised'], .10);
490
537
  tokens['--ui-border-strong'] = mix(neutral, tokens['--ui-surface-raised'], .18);
491
538
  for (const [role, fill, labels] of [
492
539
  ['surface', tokens['--ui-surface-raised'], [tokens['--ui-text'], tokens['--ui-text-secondary'], ...Object.keys(tones).map(tone => tokens[`--ui-${tone}-subtle-text`])]],
493
540
  ['neutral', tokens['--ui-neutral-surface'], tokens['--ui-text']],
494
541
  ]) for (const [part, colour] of Object.entries(materialColours(fill, labels, values['light-color']))) tokens[`--ui-${role}-${part}`] = colour;
542
+ const neutralShift = toLch(tokens['--ui-neutral-hover'])[0] - toLch(tokens['--ui-neutral-surface'])[0];
543
+ for (const part of ['reflection', 'shade']) {
544
+ const [l, c, h] = toLch(tokens[`--ui-neutral-${part}`]);
545
+ tokens[`--ui-neutral-hover-${part}`] = readableTone(fromLch([l + neutralShift, c, h]), [tokens['--ui-text']], 4.55, paper);
546
+ }
495
547
  // Borders surround the finished paint, including its translucent wash and
496
548
  // material gradient. Text readability has its own independent contrast floor.
497
- const materialOpacity = Number(values.finish) * Number(values['light-strength']);
498
549
  for (const tone of Object.keys(tones)) {
499
550
  const pigment = tokens[`--ui-${tone}`];
500
551
  const backgrounds = surfaces.flatMap(surface => {
501
552
  const reflection = alphaSurface(tokens['--ui-surface-reflection'], surface, materialOpacity);
502
553
  const shade = alphaSurface(tokens['--ui-surface-shade'], surface, materialOpacity);
503
554
  return [surface, ...materialLuminances(reflection, shade),
555
+ ...['wash', 'wash-hover', 'ghost-hover'].flatMap(state => materialLuminances(washSurface(tokens[`--ui-${tone}-${state}`], reflection), washSurface(tokens[`--ui-${tone}-${state}`], shade))),
504
556
  ...[.08, .12].flatMap(alpha => materialLuminances(alphaSurface(pigment, reflection, alpha * tonalOpacity), alphaSurface(pigment, shade, alpha * tonalOpacity))),
505
557
  ...[.08, .12, .18].map(alpha => alphaSurface(pigment, surface, alpha * tonalOpacity))];
506
558
  });
@@ -565,7 +617,7 @@ export function themeCSS(input, systemCSS = '', { scope = 'portable' } = {}) {
565
617
  const relativeLengths = new Map(themeFields.filter(field => field.property && field.type.includes('length') && recipe.values[field.id].endsWith('rem')).map(field => [field.property, recipe.values[field.id]]));
566
618
  for (const [name, value] of Object.entries(light)) {
567
619
  if (name === 'color-scheme') continue;
568
- if (/^#[\da-f]{6}$/i.test(value)) palette.push(` ${name}: light-dark(${value}, ${dark[name]});`);
620
+ if (/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(value)) palette.push(` ${name}: light-dark(${value}, ${dark[name]});`);
569
621
  else {
570
622
  const relative = relativeLengths.get(name);
571
623
  const resolved = name === '--ui-tonal-opacity' ? Math.min(Number(value), Number(dark[name])) : relative ? value.replace(relative, `calc(${parseFloat(relative)} * var(--_ui-root-font-unit, 1rem))`) : value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.46.5",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -122,7 +122,7 @@
122
122
  "@tiptap/pm": ">=2 <3",
123
123
  "@tiptap/vue-3": ">=2 <3",
124
124
  "vue": "^3.5.43",
125
- "markupress": ">=0.12.0 <1",
125
+ "markupress": ">=0.12.0 <0.14.4 || >=0.14.5 <1",
126
126
  "@threadlabs/markupkit": ">=0.2.0 <1",
127
127
  "vite": ">=7.2.7 <9"
128
128
  },
@@ -24,6 +24,9 @@
24
24
  --_tone-highlight: var(--ui-accent-highlight, none);
25
25
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
26
26
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
27
+ --_tone-wash: var(--ui-accent-wash);
28
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
29
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
27
30
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
28
31
  --_hue: var(--ui-accent);
29
32
  --_hue-hover: var(--ui-accent-hover);
@@ -210,7 +213,7 @@
210
213
 
211
214
  :scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
212
215
  --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
213
- --_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
216
+ --_outline-wash: var(--_tone-wash);
214
217
  border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
215
218
  background-color: var(--ui-button-surface, transparent);
216
219
  box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
@@ -220,8 +223,7 @@
220
223
  }
221
224
 
222
225
  :scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
223
- --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
224
- --_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
226
+ --_outline-wash: var(--_tone-wash-hover);
225
227
  background-color: var(--ui-button-hover-surface, transparent);
226
228
  border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
227
229
  }
@@ -289,6 +291,9 @@
289
291
  --_tone-highlight: var(--ui-accent-secondary-highlight, none);
290
292
  --_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
291
293
  --_tone-outline-border: var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text));
294
+ --_tone-wash: var(--ui-accent-secondary-wash);
295
+ --_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
296
+ --_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
292
297
  --_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
293
298
  --_hue: var(--ui-accent-secondary);
294
299
  --_hue-hover: var(--ui-accent-secondary-hover);
@@ -304,6 +309,9 @@
304
309
  --_tone-highlight: var(--ui-accent-tertiary-highlight, none);
305
310
  --_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
306
311
  --_tone-outline-border: var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text));
312
+ --_tone-wash: var(--ui-accent-tertiary-wash);
313
+ --_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
314
+ --_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
307
315
  --_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
308
316
  --_hue: var(--ui-accent-tertiary);
309
317
  --_hue-hover: var(--ui-accent-tertiary-hover);
@@ -317,8 +325,9 @@
317
325
  --_tone-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
318
326
  --_tone-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
319
327
  --_tone-highlight: var(--ui-neutral-highlight, none);
320
- --_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
328
+ --_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
321
329
  --_tone-outline-border: var(--ui-control-border);
330
+ --_tone-ghost-hover: var(--ui-neutral-ghost-hover);
322
331
  --_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
323
332
  --_hue: var(--ui-text);
324
333
  --_hue-hover: var(--ui-text);
@@ -340,8 +349,8 @@
340
349
  }
341
350
  :scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]) {
342
351
  border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
343
- background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
344
- --_outline-wash: oklch(from var(--ui-text) l c h / 5%);
352
+ background-color: var(--ui-button-hover-surface, transparent);
353
+ --_outline-wash: var(--ui-neutral-wash-hover);
345
354
  background-image:
346
355
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
347
356
  var(--ui-surface-highlight, linear-gradient(transparent, transparent));
@@ -367,6 +376,9 @@
367
376
  --_tone-highlight: var(--ui-danger-highlight, none);
368
377
  --_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
369
378
  --_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
379
+ --_tone-wash: var(--ui-danger-wash);
380
+ --_tone-wash-hover: var(--ui-danger-wash-hover);
381
+ --_tone-ghost-hover: var(--ui-danger-ghost-hover);
370
382
  --_tone-glow: var(--ui-danger-glow, 0 0 transparent);
371
383
  --_hue: var(--ui-danger);
372
384
  --_hue-hover: var(--ui-danger-hover);
@@ -382,6 +394,9 @@
382
394
  --_tone-highlight: var(--ui-success-highlight, none);
383
395
  --_tone-hover-highlight: var(--ui-success-hover-highlight, none);
384
396
  --_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
397
+ --_tone-wash: var(--ui-success-wash);
398
+ --_tone-wash-hover: var(--ui-success-wash-hover);
399
+ --_tone-ghost-hover: var(--ui-success-ghost-hover);
385
400
  --_tone-glow: var(--ui-success-glow, 0 0 transparent);
386
401
  --_hue: var(--ui-success);
387
402
  --_hue-hover: var(--ui-success-hover);
@@ -397,6 +412,9 @@
397
412
  --_tone-highlight: var(--ui-warning-highlight, none);
398
413
  --_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
399
414
  --_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
415
+ --_tone-wash: var(--ui-warning-wash);
416
+ --_tone-wash-hover: var(--ui-warning-wash-hover);
417
+ --_tone-ghost-hover: var(--ui-warning-ghost-hover);
400
418
  --_tone-glow: var(--ui-warning-glow, 0 0 transparent);
401
419
  --_hue: var(--ui-warning);
402
420
  --_hue-hover: var(--ui-warning-hover);
@@ -412,6 +430,9 @@
412
430
  --_tone-highlight: var(--ui-info-highlight, none);
413
431
  --_tone-hover-highlight: var(--ui-info-hover-highlight, none);
414
432
  --_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
433
+ --_tone-wash: var(--ui-info-wash);
434
+ --_tone-wash-hover: var(--ui-info-wash-hover);
435
+ --_tone-ghost-hover: var(--ui-info-ghost-hover);
415
436
  --_tone-glow: var(--ui-info-glow, 0 0 transparent);
416
437
  --_hue: var(--ui-info);
417
438
  --_hue-hover: var(--ui-info-hover);
@@ -454,9 +475,9 @@
454
475
  color: var(--ui-button-ghost-text, var(--_tone-text));
455
476
  }
456
477
 
457
- /* Tints derive from the text colour, not a surface token, so hover and press show on any background. */
478
+ /* Shared translucent paint keeps text and icon action feedback coordinated. */
458
479
  :scope:where([data-component~="ui-button"])[data-appearance="ghost"]:hover:not(:disabled, [aria-disabled="true"]) {
459
- background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / calc(10% * var(--ui-tonal-opacity, 1))));
480
+ background-color: var(--ui-button-ghost-hover-surface, var(--_tone-ghost-hover));
460
481
  border-color: transparent;
461
482
  }
462
483
 
@@ -613,7 +634,7 @@
613
634
 
614
635
  /* A value picker is a field, with Select's quiet edge and resting lift. */
615
636
 
616
- /* Tints derive from the text colour, not a surface token, so hover and press show on any background. */
637
+ /* Shared translucent paint keeps text and icon action feedback coordinated. */
617
638
 
618
639
  /* A soft halo that transitions in with the other box-shadow changes, layered on the raised shadow. */
619
640
 
@@ -165,8 +165,26 @@
165
165
  }
166
166
  }
167
167
 
168
- input:hover:enabled {
169
- border-color: var(--ui-accent-solid);
168
+ @media (hover: hover) and (forced-colors: none) {
169
+ :scope:where([data-component~="ui-checkbox"]):hover input:enabled {
170
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
171
+ background-image:
172
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
173
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
174
+ }
175
+
176
+ :scope:where([data-component~="ui-checkbox"]):hover input:enabled:not([aria-invalid="true"]) {
177
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
178
+ }
179
+
180
+ :scope:where([data-component~="ui-checkbox"]):hover input:enabled:is(:checked, :indeterminate) {
181
+ background-color: var(--ui-choice-hover-surface);
182
+ background-image: var(--ui-choice-hover-highlight, none);
183
+ }
184
+
185
+ :scope:where([data-component~="ui-checkbox"]):hover input:enabled:is(:checked, :indeterminate):not([aria-invalid="true"]) {
186
+ border-color: var(--ui-choice-hover-surface);
187
+ }
170
188
  }
171
189
 
172
190
  input:focus-visible {
@@ -229,6 +247,9 @@
229
247
  @media (forced-colors: active) {
230
248
  }
231
249
 
250
+ @media (hover: hover) and (forced-colors: none) {
251
+ }
252
+
232
253
  /* A sized choice keeps its box and aligns instead: the label takes that size's field type size,
233
254
  and the first line centres in that control height, so the label shares a row's baseline.
234
255
  Multi-line labels and descriptions still grow downward from that first line. */
@@ -18,6 +18,9 @@
18
18
  --_tone-highlight: var(--ui-accent-highlight, none);
19
19
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
20
20
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
21
+ --_tone-wash: var(--ui-accent-wash);
22
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
23
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
21
24
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
22
25
  --_ui-action-start: 1px;
23
26
  --_ui-action-edge: var(
@@ -46,6 +49,9 @@
46
49
  --_tone-highlight: var(--ui-accent-secondary-highlight, none);
47
50
  --_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
48
51
  --_tone-outline-border: var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text));
52
+ --_tone-wash: var(--ui-accent-secondary-wash);
53
+ --_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
54
+ --_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
49
55
  --_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
50
56
  --_icon-button-border: var(--ui-accent-secondary-subtle-text);
51
57
  --_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
@@ -65,6 +71,9 @@
65
71
  --_tone-highlight: var(--ui-accent-tertiary-highlight, none);
66
72
  --_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
67
73
  --_tone-outline-border: var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text));
74
+ --_tone-wash: var(--ui-accent-tertiary-wash);
75
+ --_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
76
+ --_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
68
77
  --_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
69
78
  --_icon-button-border: var(--ui-accent-tertiary-subtle-text);
70
79
  --_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
@@ -84,6 +93,9 @@
84
93
  --_tone-highlight: var(--ui-accent-highlight, none);
85
94
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
86
95
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
96
+ --_tone-wash: var(--ui-accent-wash);
97
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
98
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
87
99
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
88
100
  --_icon-button-border: var(--ui-accent-subtle-text);
89
101
  --_icon-button-hover-border: var(--ui-accent-subtle-text);
@@ -100,6 +112,9 @@
100
112
  --_tone-highlight: var(--ui-danger-highlight, none);
101
113
  --_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
102
114
  --_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
115
+ --_tone-wash: var(--ui-danger-wash);
116
+ --_tone-wash-hover: var(--ui-danger-wash-hover);
117
+ --_tone-ghost-hover: var(--ui-danger-ghost-hover);
103
118
  --_tone-glow: var(--ui-danger-glow, 0 0 transparent);
104
119
  --_icon-button-border: var(--ui-danger-subtle-text);
105
120
  --_icon-button-hover-border: var(--ui-danger-subtle-text);
@@ -119,6 +134,9 @@
119
134
  --_tone-highlight: var(--ui-success-highlight, none);
120
135
  --_tone-hover-highlight: var(--ui-success-hover-highlight, none);
121
136
  --_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
137
+ --_tone-wash: var(--ui-success-wash);
138
+ --_tone-wash-hover: var(--ui-success-wash-hover);
139
+ --_tone-ghost-hover: var(--ui-success-ghost-hover);
122
140
  --_tone-glow: var(--ui-success-glow, 0 0 transparent);
123
141
  --_icon-button-border: var(--ui-success-subtle-text);
124
142
  --_icon-button-hover-border: var(--ui-success-subtle-text);
@@ -138,6 +156,9 @@
138
156
  --_tone-highlight: var(--ui-warning-highlight, none);
139
157
  --_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
140
158
  --_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
159
+ --_tone-wash: var(--ui-warning-wash);
160
+ --_tone-wash-hover: var(--ui-warning-wash-hover);
161
+ --_tone-ghost-hover: var(--ui-warning-ghost-hover);
141
162
  --_tone-glow: var(--ui-warning-glow, 0 0 transparent);
142
163
  --_icon-button-border: var(--ui-warning-subtle-text);
143
164
  --_icon-button-hover-border: var(--ui-warning-subtle-text);
@@ -157,6 +178,9 @@
157
178
  --_tone-highlight: var(--ui-info-highlight, none);
158
179
  --_tone-hover-highlight: var(--ui-info-hover-highlight, none);
159
180
  --_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
181
+ --_tone-wash: var(--ui-info-wash);
182
+ --_tone-wash-hover: var(--ui-info-wash-hover);
183
+ --_tone-ghost-hover: var(--ui-info-ghost-hover);
160
184
  --_tone-glow: var(--ui-info-glow, 0 0 transparent);
161
185
  --_icon-button-border: var(--ui-info-subtle-text);
162
186
  --_icon-button-hover-border: var(--ui-info-subtle-text);
@@ -175,8 +199,9 @@
175
199
  --_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
176
200
  --_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
177
201
  --_tone-highlight: var(--ui-neutral-highlight, none);
178
- --_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
202
+ --_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
179
203
  --_tone-outline-border: var(--ui-control-border);
204
+ --_tone-ghost-hover: var(--ui-neutral-ghost-hover);
180
205
  --_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
181
206
  --_icon-button-outline-surface: transparent;
182
207
  --_icon-button-border: var(--ui-control-border);
@@ -368,14 +393,14 @@
368
393
  }
369
394
 
370
395
  :scope:where([data-component~="ui-icon-button"]):hover:enabled:not([aria-disabled="true"]) {
371
- /* Derived from the text colour so the ghost hover shows on any background. */
372
- background-color: var(--ui-icon-button-hover-surface, color-mix(in srgb, currentColor 8%, transparent));
396
+ /* Shared translucent paint keeps text and icon action feedback coordinated. */
397
+ background-color: var(--ui-icon-button-hover-surface, var(--_tone-ghost-hover));
373
398
  color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
374
399
  }
375
400
 
376
401
  :scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
377
402
  --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
378
- --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
403
+ --_outline-wash: var(--_tone-wash);
379
404
  border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
380
405
  background-color: var(--ui-icon-button-outline-surface, transparent);
381
406
  background-image:
@@ -384,8 +409,7 @@
384
409
  }
385
410
 
386
411
  :scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
387
- --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
388
- --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
412
+ --_outline-wash: var(--_tone-wash-hover);
389
413
  background-color: var(--ui-icon-button-hover-surface, transparent);
390
414
  border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
391
415
  }
@@ -394,8 +418,8 @@
394
418
  border-color: var(--ui-icon-button-hover-border, var(--_icon-button-hover-border, var(--ui-control-border-hover, var(--ui-control-border))));
395
419
  }
396
420
  :scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
397
- background-color: var(--ui-icon-button-hover-surface, var(--ui-neutral-hover));
398
- --_outline-wash: oklch(from var(--ui-text) l c h / 5%);
421
+ background-color: var(--ui-icon-button-hover-surface, transparent);
422
+ --_outline-wash: var(--ui-neutral-wash-hover);
399
423
  background-image:
400
424
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
401
425
  var(--ui-surface-highlight, linear-gradient(transparent, transparent));
@@ -85,7 +85,7 @@
85
85
 
86
86
  input:checked {
87
87
  background-color: var(--ui-accent-solid);
88
- background-image: var(--ui-accent-highlight, none);
88
+ background-image: none;
89
89
  border-color: var(--ui-accent-solid);
90
90
  box-shadow: none;
91
91
  }
@@ -94,6 +94,28 @@
94
94
  opacity: 1;
95
95
  }
96
96
 
97
+ @media (hover: hover) and (forced-colors: none) {
98
+ :scope:where([data-component~="ui-radio"]):hover input:enabled {
99
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
100
+ background-image:
101
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
102
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
103
+ }
104
+
105
+ :scope:where([data-component~="ui-radio"]):hover input:enabled:not([aria-invalid="true"]) {
106
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
107
+ }
108
+
109
+ :scope:where([data-component~="ui-radio"]):hover input:enabled:checked {
110
+ background-color: var(--ui-choice-hover-surface);
111
+ background-image: none;
112
+ }
113
+
114
+ :scope:where([data-component~="ui-radio"]):hover input:enabled:checked:not([aria-invalid="true"]) {
115
+ border-color: var(--ui-choice-hover-surface);
116
+ }
117
+ }
118
+
97
119
  input:focus-visible {
98
120
  outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
99
121
  outline-offset: var(--ui-focus-width);
@@ -167,6 +189,9 @@
167
189
  /* The native radio retains grouping, validation and keyboard behavior.
168
190
  Its empty well recedes; the filled selection and its dot stay crisp. */
169
191
 
192
+ @media (hover: hover) and (forced-colors: none) {
193
+ }
194
+
170
195
  @media (prefers-reduced-motion: reduce) {
171
196
  }
172
197
 
@@ -103,6 +103,28 @@
103
103
  background-image: var(--ui-knob-on-accent-highlight, none);
104
104
  }
105
105
 
106
+ @media (hover: hover) and (forced-colors: none) {
107
+ :scope:where([data-component~="ui-switch"]):hover input:enabled {
108
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
109
+ background-image:
110
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
111
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
112
+ }
113
+
114
+ :scope:where([data-component~="ui-switch"]):hover input:enabled:not([aria-invalid="true"]) {
115
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
116
+ }
117
+
118
+ :scope:where([data-component~="ui-switch"]):hover input:enabled:checked {
119
+ background-color: var(--ui-choice-hover-surface);
120
+ background-image: var(--ui-choice-hover-highlight, none);
121
+ }
122
+
123
+ :scope:where([data-component~="ui-switch"]):hover input:enabled:checked:not([aria-invalid="true"]) {
124
+ border-color: var(--ui-choice-hover-surface);
125
+ }
126
+ }
127
+
106
128
  input:focus-visible {
107
129
  outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
108
130
  outline-offset: var(--ui-focus-width);
@@ -163,6 +185,9 @@
163
185
  @scope ([data-component~="ui-switch"]) to ([data-component]) {
164
186
  /* The label, and under it an optional line saying what the choice means. */
165
187
 
188
+ @media (hover: hover) and (forced-colors: none) {
189
+ }
190
+
166
191
  @media (prefers-reduced-motion: reduce) {
167
192
  }
168
193
 
package/theme-system.css CHANGED
@@ -112,9 +112,11 @@
112
112
  --ui-surface-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-surface-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-surface-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
113
113
  --ui-material-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-surface-reflection, var(--ui-surface-raised)) calc(var(--_ui-material-reflection-alpha) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-surface-shade, var(--ui-surface-raised)) calc(var(--_ui-material-reflection-alpha) * 100%), transparent) 100%);
114
114
  --ui-neutral-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-neutral-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-neutral-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
115
+ --ui-neutral-hover-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-neutral-hover-reflection, var(--ui-neutral-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-neutral-hover-shade, var(--ui-neutral-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
115
116
  --ui-knob-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-knob-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
116
117
  --ui-knob-on-accent-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-on-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-knob-on-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
117
118
  --ui-accent-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
119
+ --ui-choice-hover-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-choice-hover-reflection, var(--ui-choice-hover-surface)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-choice-hover-shade, var(--ui-choice-hover-surface)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
118
120
  --ui-accent-hover-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-hover-reflection, var(--ui-accent-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-accent-hover-shade, var(--ui-accent-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
119
121
  --ui-accent-secondary-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-secondary-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-accent-secondary-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);
120
122
  --ui-accent-secondary-hover-highlight: radial-gradient(ellipse farthest-corner at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-secondary-hover-reflection, var(--ui-accent-secondary-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 0%, calc(55% + var(--ui-light-spread) * 30%), color-mix(in srgb, var(--ui-accent-secondary-hover-shade, var(--ui-accent-secondary-hover)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent) 100%);