owncast/web/.storybook/preview.js

35 lines
849 B
JavaScript
Raw Normal View History

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