@hanzo/ui 8.0.52 → 8.0.53

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/dist/theme.css CHANGED
@@ -227,7 +227,7 @@
227
227
  So EVERY token whose dark value is a --white-* rung must be restated below,
228
228
  and check-tokens.mjs fails the build if one is missed — that class of bug is
229
229
  silent (the border simply stops existing) and has shipped before. */
230
- .light, :root.t_light{
230
+ .light, :root.t_light, .t_light{
231
231
  color-scheme:light;
232
232
  --background:#ffffff;
233
233
  --foreground:#0a0a0a;
@@ -606,7 +606,7 @@
606
606
  obvious spelling would invalidate the whole declaration and take the drop
607
607
  shadow down with it. A zero-size transparent shadow composes to nothing and
608
608
  costs nothing. */
609
- .light, :root.t_light{
609
+ .light, :root.t_light, .t_light{
610
610
  --shadow-floating:0 24px 60px -16px rgb(0 0 0 / .18);
611
611
  --shadow-inset-hairline:inset 0 0 0 1px rgb(0 0 0 / .10);
612
612
  --edge-highlight:inset 0 0 0 0 transparent;
@@ -893,7 +893,7 @@
893
893
  stays INSIDE the layer — an unlayered rule here would outrank an app's own
894
894
  utilities, which is the defect check 1c exists to catch. */
895
895
  :where(html){scrollbar-color:var(--white-15) transparent;scrollbar-width:thin}
896
- .light, :root.t_light{scrollbar-color:rgb(0 0 0 / .18) transparent}
896
+ .light, :root.t_light, .t_light{scrollbar-color:rgb(0 0 0 / .18) transparent}
897
897
  :where(*)::-webkit-scrollbar{width:6px;height:6px}
898
898
  :where(*)::-webkit-scrollbar-track{background:transparent}
899
899
  :where(*)::-webkit-scrollbar-thumb{background:var(--white-15);border-radius:var(--radius-full)}
@@ -1184,16 +1184,19 @@
1184
1184
  drop does all the work and must be light enough not to smudge, on near-black
1185
1185
  it must be heavy enough to exist at all. The values are design's own, and
1186
1186
  glass.test.ts fails if either column stops matching what design publishes.
1187
- `:root.t_light` alongside `.light` is gui's spelling of the same idea —
1188
- compose-theme teaches design's sheet that alias, and this file, which also
1189
- ships on its own, says it outright. */
1187
+ `:root.t_light` and `.t_light` alongside `.light` are gui's spelling of the
1188
+ same idea — compose-theme teaches design's sheet those aliases, and this
1189
+ file, which also ships on its own, says them outright. The bare class is for
1190
+ a NESTED light scope: gui puts `t_light` on a span for `<Theme name="light">`
1191
+ inside a dark app, which `:root.t_light` cannot match, so without it a light
1192
+ island stood on the dark ladder. */
1190
1193
  :root {
1191
1194
  --glass-shadow-1: 0 1px 2px 0 rgb(0 0 0 / .40);
1192
1195
  --glass-shadow-2: 0 10px 15px -3px rgb(0 0 0 / .55), 0 4px 6px -4px rgb(0 0 0 / .55);
1193
1196
  --glass-shadow-3: 0 24px 60px -16px rgb(0 0 0 / .75);
1194
1197
  }
1195
1198
 
1196
- .light, :root.t_light {
1199
+ .light, :root.t_light, .t_light {
1197
1200
  --glass-shadow-1: 0 1px 2px 0 rgb(0 0 0 / .06);
1198
1201
  --glass-shadow-2: 0 10px 15px -3px rgb(0 0 0 / .09), 0 4px 6px -4px rgb(0 0 0 / .07);
1199
1202
  --glass-shadow-3: 0 24px 60px -16px rgb(0 0 0 / .18);
@@ -1232,10 +1235,19 @@
1232
1235
 
1233
1236
  One value, in one place: the recipes module reads the same token, so the dim
1234
1237
  behind a component dialog and the dim behind a hand-rolled one are the same
1235
- dim by construction rather than by two people remembering a number. */
1238
+ dim by construction rather than by two people remembering a number.
1239
+
1240
+ !important for the same reason the material above carries it, and it was
1241
+ missing here: gui compiles `opacity` and `background-color` into atomic
1242
+ classes (`_o-0--5`, `_bg-rgba0000--538295333`) that land in an inline <style>
1243
+ a bundler orders AFTER this sheet, so at equal specificity they won and the
1244
+ rule read as if it had never been written. Measured on hanzo.app's ⌘K
1245
+ palette: `rgba(0,0,0,.5)` under `opacity: .5` — a quarter black, exactly the
1246
+ double dim these two lines exist to end. A rule written to beat a compiled
1247
+ class has to be written with the weight to beat one. */
1236
1248
  [data-slot="dialog-overlay"] {
1237
- opacity: 1;
1238
- background-color: var(--surface-scrim, rgb(0 0 0 / .8));
1249
+ opacity: 1 !important;
1250
+ background-color: var(--surface-scrim, rgb(0 0 0 / .8)) !important;
1239
1251
  }
1240
1252
 
1241
1253
  /* ── Grouped rows ───────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "8.0.52",
3
+ "version": "8.0.53",
4
4
  "type": "module",
5
5
  "description": "Hanzo UI — the one canonical Hanzo component library, on @hanzo/gui + @hanzo/design. ONE substrate: every component renders through @hanzo/gui primitives, so the same import works on web, native (expo) and desktop (Tauri). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
6
6
  "exports": {