1.0.3 • Published 4 years ago

@storybook/preset-scss v1.0.3

Weekly downloads
75,638
License
MIT
Repository
github
Last release
4 years ago

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:

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',
  ]
}
x-lib-x1pg-stylewebslack-bitsalchera-storybookalchera-testsyncai-full-report@onvitech/design-systemkiralarsin-alfredrg-lib-zthinktor-ui@everything-registry/sub-chunk-875fulcrum-web-componentsgf-common-components-3insysgf-common-librariesgf-common-libraries-3insysgf-common-libraries-customgt-ui-kitemre-storybook-krl-alfredfelux-reactfluent-ui-library-add-onsfixed-error-scssfixed-error-scss-customfixed-error-scss-inputfjs-pigeonholeheroes-reusable-componentsheyybweb-apps-componentsj-zero-uiit-ui-kitinn-react-uiinnerworks-storybookinnerworks-storybook-tinnerworks-storybook-t2joonchoi-zero-uiinput-component-isolationkrl-alfredlatest-final-buttonlatest-final-selectkiji-tech-ui-componentkiui-designkaizen-design-system-mktgselect-input-custom-componentsmy-test-storybook-quasarmy-react-application-custommri-ui-comp-libraryunitx-docs-packodaptos_design_systempluzchat-design-systempfever-craordinary-react-libraryrcl-retterramberger-react-componentsreact-slideshow-libreact-ui-cardsreact-storybook-poc-acousticreact-customizable-date-pickerrs-web-componentsscss-error-smartapp-uitestpub-ssrtravel-ui-component-librarytwmuicui-kit-dashboards-testsdss-carbon-web-componentsselect-custom-selectselect-input-button-custom-componentsseller-center-uisicnt-uism-modalsuperhub_packagesspontaniczne-kodowanko-design-systemstorybook-delavalsohosme-core-fesai-buttoneseo-jungle-componentsws-ui-compzui-bundle-testzui-test-publishzags-shared-csto@zalastax/nolb-_stor@42dot/componentalbertouialchera-ui-component@arth-shukla/arth-componentsark-component-uibig-design-uiarccorp-varsboohoo-component-librarycommon-components-3insys@divinl/storybookcommon-components1common-components2common-components3common-components5common-components6@drakkar-org/gron-designcolay-docs@deutsche-audio/crbn-player@gambowoa/dcomponents@goodrequest/antd-form-fields
1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago