gitbutler/packages/ui/.storybook/preview.ts
Pavel Laptev aaf933f42d
UI package update (#4598)
* add `Button` and `Icon` to UI library

* Update Button.stories.ts

* button stories added

* remove unused dependencies

* update button stories

* Update DemoButton.stories.ts

* update tokens

* dark theme toggle fix

* replace buttons with buttons from the package UI

* Update FileCardHeader.svelte

* Update BranchLaneContextMenu.svelte

* replace the app `Icon` component with the `UI` component

* fix `Icon` import in the `package UI`

* update imports for `icons.json`

* fix wrong type on Storybook

* update imports for `types`

* fix import order

* storybook grouping update
2024-08-05 13:20:03 +02:00

29 lines
501 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: {
color: /(background|color)$/i,
date: /Date$/i
}
},
darkMode: {
classTarget: 'html',
stylePreview: true,
dark: {
appPreviewBg: '#272321'
},
light: {
appPreviewBg: '#fff'
}
}
}
};
export default preview;