Skip to content

wesbitty/storybook-theming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@wesbitty/storybook-theming

Get started in Storybook 7 faster with popular styling tools.

@wesbitty/storybook-theming addon can be used to run postcss preprocessor against your stories in Storybook, all css files will be treated as modules as long as they end with .module.css. Also, previous css configuration done to css loaders won't be override, i.e if you were using postcss-loader or any other extra webpack loader, it will automatically be applied to css modules.

✨ Features

  • ⚡️ storybook css modules loader
  • 🎨 Provide postcss preprocessor

🏁 Getting Started

To get started, install the package as a dev dependency

npm:

npm install -D @wesbitty/storybook-theming

yarn:

yarn add -D @wesbitty/storybook-theming

Configuration

  • just add the following plugin on your ./storybook/main.js:
  module.exports = {
    addons: [
+     '@wesbitty/storybook-theming',
    ]
  }

About

Adding CSS Modules support for storybook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published