GithubHelp home page GithubHelp logo

morewings / storybook-addon-theme-provider Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 2.07 MB

Storybook addon to manage global themes provided by Styled components, Emotion or any other solution based on React component. Compatible with Storybook version 7 and 8

License: MIT License

JavaScript 2.90% TypeScript 90.28% HTML 0.37% CSS 6.45%
emotion react-theming storybook styled-components theme-provider theming tokens

storybook-addon-theme-provider's People

Contributors

dependabot[bot] avatar morewings avatar

Stargazers

 avatar  avatar

Watchers

 avatar

storybook-addon-theme-provider's Issues

Add tests

Add tests where possible and code coverage report

Move exports to react folder

Move exports to storybook-addon-theme-provider/react folder. In order to keep compatibility with other frameworks.

Unmet peer dependencies

When installing via yarn install I get the following warnings. These should be added to the package.json so that they are properly installed and I don't get console warnings when installing this package.

warning " > [email protected]" has unmet peer dependency "@storybook/blocks@^7.0.0".
warning " > [email protected]" has unmet peer dependency "@storybook/manager-api@^7.0.0".
warning " > [email protected]" has unmet peer dependency "@storybook/preview-api@^7.0.0".
warning " > [email protected]" has unmet peer dependency "@storybook/types@^7.0.0".

Build issue with storybook 7 react vite

Thank you so much for building this addon, it's been a massive help!

I was trying to move to react vite and I'm seeing the following error when I run a storybook build... Don't know if you'll have any idea or even have the capacity to fix it.

Screenshot 2023-08-17 at 17 50 20

Create css provider

  1. Create Provider component based on CSS classes.
type ThemeConfig = {
  name: string;
  classNames: string[] | string;
}
  1. Provider for root variables

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.