owncast/web/.storybook/preview.js

29 lines
700 B
JavaScript
Raw Normal View History

2022-05-07 09:27:29 +03:00
import '../styles/variables.css';
import '../styles/global.less';
2022-04-20 00:33:43 +03:00
import '../styles/theme.less';
import '../stories/preview.scss';
2022-05-07 11:13:26 +03:00
import { themes } from '@storybook/theming';
2022-04-18 04:50:39 +03:00
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
2022-05-07 11:13:26 +03:00
darkMode: {
current: 'dark',
// Override the default dark theme
dark: {
...themes.dark,
appBg: '#171523',
brandImage: 'https://owncast.online/images/logo.svg',
brandTitle: 'Owncast',
brandUrl: 'https://owncast.online',
},
// Override the default light theme
light: { ...themes.normal },
},
2022-04-18 04:50:39 +03:00
};