2022-02-17 12:30:49 +01:00
|
|
|
import '../src/css/custom.css';
|
2022-02-18 08:35:59 +01:00
|
|
|
import '../node_modules/infima/dist/css/default/default.css';
|
|
|
|
import '../node_modules/@docusaurus/theme-classic/lib/admonitions.css';
|
2022-02-17 13:41:57 +01:00
|
|
|
import { withRootAttribute } from 'storybook-addon-root-attribute';
|
2022-02-17 12:30:49 +01:00
|
|
|
|
|
|
|
export const parameters = {
|
|
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
2022-02-17 13:41:57 +01:00
|
|
|
layout: 'fullscreen',
|
|
|
|
|
|
|
|
// add docusaurus theming to storybook iframes
|
|
|
|
rootAttribute: {
|
|
|
|
root: 'html',
|
|
|
|
attribute: 'data-theme',
|
|
|
|
defaultState: {
|
|
|
|
name: 'Light',
|
|
|
|
value: 'light',
|
|
|
|
},
|
|
|
|
states: [
|
|
|
|
{
|
|
|
|
name: 'Dark',
|
|
|
|
value: 'dark',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
tooltip: true,
|
|
|
|
},
|
2022-02-17 12:30:49 +01:00
|
|
|
};
|
2022-02-17 13:41:57 +01:00
|
|
|
|
|
|
|
export const decorators = [withRootAttribute];
|