mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 16:18:11 +03:00
aaf933f42d
* 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
29 lines
501 B
TypeScript
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;
|