podman-desktop/storybook
Václav Vančura 7259f66339
feat(storybook): auto-regenerate themes.css on color-registry changes (#16919)
* feat(storybook): auto-regenerate themes.css on color-registry changes

Add a Vite plugin that watches `color-registry.ts` and
`tailwind-color-palette.json`, then re-runs `storybook:css` and
triggers a full reload.

Also pass explicit svelte config path and watch UI package dist for
changes.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Vaclav Vancura <commit@vancura.dev>

* fix(storybook): queue file changes during in-flight theme regeneration

Previously, saves that arrived while storybook:css was already
running were silently dropped. Now a queued flag is set and a
second regeneration runs after the first completes, so
back-to-back edits are never lost.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Vaclav Vancura <commit@vancura.dev>

* fix(storybook): use node: prefix for Node.js built-in imports

Signed-off-by: Vaclav Vancura <commit@vancura.dev>

---------

Signed-off-by: Vaclav Vancura <commit@vancura.dev>
Co-authored-by: Claude <noreply@anthropic.com>
2026-04-17 14:27:59 +02:00
..
.storybook feat(storybook): add high contrast light and dark theme options (#16923) 2026-04-02 09:47:58 +02:00
src/stories docs(storybook): update Spinner stories with a11y documentation (#16454) 2026-03-06 10:29:26 +01:00
package.json chore(deps-dev): bump postcss from 8.5.9 to 8.5.10 2026-04-16 06:28:49 +02:00
tailwind.config.js chore(storybook): adding basic setup (#7329) 2024-06-03 10:12:16 +02:00
tsconfig.json chore(storybook): adding basic setup (#7329) 2024-06-03 10:12:16 +02:00
vite.config.js feat(storybook): auto-regenerate themes.css on color-registry changes (#16919) 2026-04-17 14:27:59 +02:00