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

Create documentation on how to use CSS libraries with Storybook #17495

Closed
jonniebigodes opened this issue Feb 12, 2022 · 3 comments
Closed

Create documentation on how to use CSS libraries with Storybook #17495

jonniebigodes opened this issue Feb 12, 2022 · 3 comments

Comments

@jonniebigodes
Copy link
Contributor

Looking at the documentation in its current state there's a gap in terms of how to set up common CSS tools and libraries. For example:

  • CSS modules
  • CSS in JS (Styled Components, Emotion)
  • Tailwind

We'll need to mitigate this and incorporate it in our documentation.

A possible solution for this:

  • Create a new section in the Sidebar and name it How-to and Guides
  • Add a category for CSS and create mini-guides on how to set up said tools and consume them in Storybook.

Feel free to provide feedback

@Umayarz18
Copy link

I think having a How-to and guides segment on the sidebar would be nice. Not only does it open the door for guides about setting up CSS, but also guides that other SB users might want in the future.

@lirbank
Copy link

lirbank commented Apr 14, 2022

I found a solution to getting Tailwind JIT work with Storybook hot reload (dev mode), posted here: tailwindlabs/tailwindcss#6570 (comment)

@kylegach
Copy link
Contributor

kylegach commented May 3, 2023

We now have a bunch of recipes listed here: https://storybook.js.org/integrations, including ones for styled-components, emotion, and Tailwind CSS.

@kylegach kylegach closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants