playwright/.storybook/preview.js
2021-01-28 09:33:20 -08:00

15 lines
337 B
JavaScript

import { addDecorator } from '@storybook/react';
import '../src/web/common.css';
import { applyTheme } from '../src/web/theme';
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
addDecorator(storyFn => {
applyTheme();
return <div style={{backgroundColor: 'var(--background)'}}>
{storyFn()}
</div>
});