Search code examples
colorsangular-materialthemesstorybook

Use own Material Theme in Storybook for Angular App


is it possible to use our own Angular Material Theme in the Storybook ? Unfortunately our components in the storybook are not styled. Primarily it's about colors. We would like to put on our themes.scss in the storybook.


Solution

  • guys, the easiest way to transfer your styles to storybook within a library is to create a new project called "storybook". This project has to be the first in Angular.json. Then you just copy your styles into the styles.scss and you can use your theme in the storybook.