0
owncast/web/.storybook/preview.js

38 lines
884 B
JavaScript
Raw Normal View History

2022-05-06 23:27:29 -07:00
import '../styles/variables.css';
import '../styles/global.less';
2022-04-19 14:33:43 -07:00
import '../styles/theme.less';
import '../stories/preview.scss';
2022-05-07 01:13:26 -07:00
import { themes } from '@storybook/theming';
2022-05-17 14:23:52 -07:00
import { DocsContainer } from './storybook-theme';
2022-04-17 18:50:39 -07:00
export const parameters = {
fetchMock: {
mocks: [],
},
2022-04-17 18:50:39 -07:00
actions: { argTypesRegex: '^on[A-Z].*' },
2022-05-17 14:23:52 -07:00
docs: {
container: DocsContainer,
},
2022-04-17 18:50:39 -07:00
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
2022-05-17 14:23:52 -07:00
viewMode: 'docs',
2022-04-17 18:50:39 -07:00
},
2022-05-07 01:13:26 -07: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',
2022-05-17 14:23:52 -07:00
appContentBg: '#171523',
2022-05-07 01:13:26 -07:00
},
// Override the default light theme
light: { ...themes.normal },
},
2022-04-17 18:50:39 -07:00
};