Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for storybook setup #788

Open
jp3492 opened this issue Nov 30, 2024 · 1 comment
Open

Add documentation for storybook setup #788

jp3492 opened this issue Nov 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jp3492
Copy link

jp3492 commented Nov 30, 2024

Adding storybook documentation

I'm so excited to be using stylexjs for out companies new component library. Unfortunately I am not able to get the project setup using storybook and webpack. Following the documentation for creating variables and themes, I am not able to get those variables to load into storybook globally. As soon as I use a color variable that I have defined with defineVars it is not being applied. I can also not see any CSS variables being applied to the dom. I wish there was some sort of documentation for setting this up as there is very little support on this topic on the internet.
Thanks a lot

@jp3492 jp3492 added the enhancement New feature or request label Nov 30, 2024
@nmn
Copy link
Contributor

nmn commented Nov 30, 2024

The PostCSS plugin is likely the best approach for making this work. I don't have a lot of experience using Storybook myself, so if you could provide a basic setup you need we might be able to help.

The Discussions tab might also reveal some information about storybook. There have been previous members of the community who got it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants