owncast/web/.storybook/preview.js

35 lines
849 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-05-18 00:23:52 +03:00
import { DocsContainer } from './storybook-theme';
2022-04-18 04:50:39 +03:00
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
2022-05-18 00:23:52 +03:00
docs: {
container: DocsContainer,
},
2022-04-18 04:50:39 +03:00
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
2022-05-18 00:23:52 +03:00
viewMode: 'docs',
2022-04-18 04:50:39 +03:00
},
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',
2022-05-18 00:23:52 +03:00
appContentBg: '#171523',
2022-05-07 11:13:26 +03:00
},
// Override the default light theme
light: { ...themes.normal },
},
2022-04-18 04:50:39 +03:00
};