mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 10:02:26 +03:00
30 lines
602 B
TypeScript
30 lines
602 B
TypeScript
import type { Preview } from '@storybook/svelte';
|
|
import '../src/styles/main.css';
|
|
import '../src/styles/fonts.css';
|
|
import './stories-styles.css';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
backgrounds: { disable: true },
|
|
controls: {
|
|
matchers: {
|
|
// matches "background" and "color" but not "solidBackground" as that is a boolean arg
|
|
color: /(?<!solid)(background|color)$/i,
|
|
date: /Date$/i
|
|
}
|
|
},
|
|
darkMode: {
|
|
classTarget: 'html',
|
|
stylePreview: true,
|
|
dark: {
|
|
appPreviewBg: '#272321'
|
|
},
|
|
light: {
|
|
appPreviewBg: '#fff'
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
export default preview;
|