UNPKG

rh_styleguide

Version:

Styleguide for Region Halland

32 lines (27 loc) 933 B
import { addParameters, addDecorator, configure } from '@storybook/react'; import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; import { withA11y } from '@storybook/addon-a11y'; import { withKnobs } from '@storybook/addon-knobs'; import { withHTML } from '@whitespace/storybook-addon-html/react'; import '../src/css/main.css'; configure(require.context('../docs', true, /\.stories\.(ts|tsx|js)$/), module); addDecorator(withKnobs); addDecorator(withA11y); addDecorator(withHTML); addParameters({ viewport: { viewports: INITIAL_VIEWPORTS, }, options: { storySort: (a, b) => a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true }), }, backgrounds: [ { name: 'White', value: '#FFFFFF', default: true }, { name: 'Primary', value: '#006957' }, { name: 'Secondary', value: '#14A864' }, { name: 'Black', value: '#000000' }, ], });