# @storybook/preset-scss

> SCSS preset for Storybook

Latest version **1.0.3** (published 2020-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @storybook/preset-scss
pnpm add @storybook/preset-scss
yarn add @storybook/preset-scss
bun add @storybook/preset-scss
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-10-15 |
| First published | 2019-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 421 |
| Maintainers | winkervsbecks, dannyhw, mrmckeb, codebyalex, dandean, pago, ghengeveld, kylesuss, usulpro, domyen, gongreg, tmeasday, pksunkara, ndelangen, shilman, alexandrebodin, hypnosphi, danielduan, igor-dv |

## Links

- npm: https://www.npmjs.com/package/@storybook/preset-scss
- Repository: https://github.com/storybookjs/presets
- Homepage: https://github.com/storybookjs/presets/tree/master/packages/preset-scss
- Issues: https://github.com/storybookjs/presets/issues
- npm.io page: https://npm.io/package/@storybook/preset-scss

## Recent versions

- 1.0.3 (latest) — 2020-10-15
- 1.0.2 — 2019-06-07
- 1.0.1 — 2019-06-07
- 1.0.0 — 2019-06-07

## README

# SCSS preset for Storybook

One-line SCSS configuration for storybook.

## Basic usage

```
yarn add -D @storybook/preset-scss css-loader sass-loader style-loader
```

Then add the following to `.storybook/main.js`:

```js
module.exports = {
  addons: ['@storybook/preset-scss'],
};
```

## Advanced usage

You can pass configurations by using Object addon declaration for `@storybook/preset-scss` and adding the configurations under the `option` key. You can pass configurations into the preset's webpack loaders using `styleLoaderOptions`, `cssLoaderOptions`, and `sassLoaderOptions` keys. See documentation for each respective loader to learn about valid options. You can register other addons through the string declaration as normal.

```
module.exports = {
  addons: [
    {
      name: '@storybook/preset-scss',
      options: {
        cssLoaderOptions: {
           modules: true,
           localIdentName: '[name]__[local]--[hash:base64:5]',
        }
      }
    },
    // You can add other presets/addons by using the string declaration
    '@storybook/preset-typescript',
    '@storybook/addon-actions',
  ]
}
```

---
_Source: https://npm.io/package/@storybook/preset-scss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
