vega-frontend-monorepo/libs/ui-toolkit/.storybook/preview.js
2022-03-07 13:57:06 -08:00

30 lines
657 B
JavaScript

import '../src/styles.scss';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
/*themes: {
default: 'dark',
list: [
{ name: 'dark', class: ['dark', 'bg-black'], color: '#000' },
{ name: 'light', class: '', color: '#FFF' },
],
},*/
};
export const decorators = [
(Story, context) =>
context.parameters.themes === false ? (
<div className="text-body">
<Story />
</div>
) : (
<div className="text-body">
<div className="dark bg-black p-16">
<Story />
</div>
<div className="p-16">
<Story />
</div>
</div>
),
];