stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

Home Page:https://stitches.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Does Stitches work with Storybook Pseudo States Addon?

martakule opened this issue · comments

Is your feature request related to a problem? Please describe.
Pseudo States Storybook Addon doesn't work with my implementation of Stitches.

Description: "This addon attempts to "force" your components' pseudo states. It rewrites all document stylesheets to add a class name selector to any rules that target a pseudo-class (:hover, :focus, etc.)."

I suspect it doesn't work because it can't access Stitches' generated stylesheets?

Before I write it off, I thought I'd ask the authors if it's common knowledge that this addon is incompatible with Stitches or maybe (🤞) it's just my implementation.

Describe the solution you'd like
Pseudo States Storybook Addon works with Stitches.

Describe alternatives you've considered
Not install the addon and ask end users to use Inspector to see pseudo states.

Additional context
We're using Stitches for a design system and Storybook for documentation, so a static view of pseudo states would work nicely for documenting visual variants.