@threadlabs/looma 0.7.1 → 0.7.3

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.
@@ -194,7 +194,7 @@
194
194
  }
195
195
 
196
196
  /* Disabled drops the tone rather than the shape: every variant keeps its own structure, so a
197
- disabled outline is still an outline and a disabled ghost is still text. Intent goes — an
197
+ disabled outline is still an outline and a disabled ghost still has no edge. Intent goes — an
198
198
  unavailable action says "unavailable", not "unavailable, and destructive" — and so do the
199
199
  highlight and shadow, because nothing that cannot be pressed should look raised. */
200
200
  :host:disabled {
@@ -219,9 +219,11 @@
219
219
  }
220
220
 
221
221
  /* Ghost has no hover to fall back on, so disabled is the one state it has to state outright:
222
- it takes a surface, light and tinted, rather than reading as plain text. */
222
+ it takes a surface rather than reading as plain text. The surface is a wash of the faded tone,
223
+ the way hover washes the live one, so it stays light in every tone. An opaque mix toward the
224
+ hue came out a mid-grey slab for neutral, whose hue is the ink: louder than the enabled button. */
223
225
  :host-state([variant="ghost"]):disabled {
224
- background-color: color-mix(in oklab, var(--_hue) 28%, var(--ui-surface));
226
+ background-color: oklch(from var(--_tone) l c h / 14%);
225
227
  border-color: transparent;
226
228
  }
227
229