Adding Global SASS Styles for Storybook to an Angular Project

--

Image by 👀 Mabel Amber, who will one day from Pixabay

Scenario

We want all our stories to have access to the styles in the Angular styles.scss stylesheet.

Approach

Load styles.scss in the Storybook ./storybook/preview.js configuration file.

import '!style-loader!css-loader!sass-loader!../src/styles.scss';

--

--

Ole Ersoy

Founder of Firefly Semantics Corporation