@takazudo/zudo-sg 0.3.2 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to `@takazudo/zudo-sg` are documented in this file.
4
4
 
5
5
  The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
6
6
 
7
+ ## [0.3.3] - 2026-09-23
8
+
9
+ ### Bug Fixes
10
+
11
+ - Preserve a host's semantic colors in inline component thumbnails. The engine
12
+ no longer replaces them with demo-specific palette variables, so hosts with
13
+ their own palette names need no local stylesheet override.
14
+
7
15
  ## [0.3.2] - 2026-09-23
8
16
 
9
17
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-sg",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "zudo-sg styleguide engine — story registry, catalog routes and preview machinery for zfb + zudo-doc hosts.",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -393,7 +393,6 @@
393
393
  * overflows is top-anchored (`safe` falls back to `start`) and clipped, never
394
394
  * cropped at both ends.
395
395
  *
396
- * PALETTE SCOPE — load-bearing, see the block on `.sg-thumb[data-sg-preview-scope]`.
397
396
  * ========================================================================== */
398
397
 
399
398
  :root {
@@ -465,35 +464,6 @@
465
464
  pointer-events: none;
466
465
  }
467
466
 
468
- /* PALETTE SCOPE.
469
- *
470
- * A host `@theme` typically RE-ASSERTS the overlapping `--color-*` names to
471
- * its own doc-chrome roles at `:root` (0,1,0), so a component rendered on a
472
- * doc-chrome page would silently take the DOC palette instead of its own.
473
- * This selector is (0,2,0) — class + attribute — so it wins over `:root`
474
- * regardless of @import order, and is scoped to the thumbnail so the
475
- * surrounding catalogue chrome keeps the doc palette.
476
- *
477
- * The declarations below are the canonical Tier-2 provider values (see
478
- * packages/demo-ui/styles/colors.css) restored for exactly the names a host is
479
- * likely to re-assert. The ui-only names a host does NOT typically re-assert
480
- * (surface-2, rail-*, focus, on-accent, loading-scrim) already resolve to the
481
- * ui palette and need no restore here. */
482
- .sg-thumb[data-sg-preview-scope] {
483
- --color-bg: light-dark(var(--palette-neutral-0), var(--palette-neutral-3));
484
- --color-surface: light-dark(var(--palette-neutral-0), var(--palette-neutral-3));
485
- --color-fg: light-dark(var(--palette-neutral-3), var(--palette-neutral-0));
486
- --color-muted: light-dark(var(--palette-neutral-2), var(--palette-neutral-1));
487
- --color-accent: light-dark(var(--palette-accent-2), var(--palette-accent-1));
488
- --color-accent-hover: light-dark(var(--palette-accent-3), var(--palette-accent-0));
489
- /* Restore the provider border after a host's doc-ramp re-assertion. */
490
- --color-border: light-dark(var(--palette-neutral-1), var(--palette-neutral-2));
491
- --color-success: light-dark(var(--palette-state-success), var(--palette-state-success-dark));
492
- --color-danger: light-dark(var(--palette-state-danger), var(--palette-state-danger-dark));
493
- --color-warning: light-dark(var(--palette-state-warning), var(--palette-state-warning-dark));
494
- --color-info: light-dark(var(--palette-state-info), var(--palette-state-info-dark));
495
- }
496
-
497
467
  /* Bottom fade for a component taller than its slot. Painted in the slot's own
498
468
  * background, so over the empty space under a component that fits it is
499
469
  * invisible — no measurement needed to decide whether to show it. */