mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Converting app into a library WIP
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import type { Preview } from '@storybook/react'
|
||||
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import { withThemeFromJSXProvider } from '@storybook/addon-themes';
|
||||
|
||||
import { theme } from '../src/themes';
|
||||
|
||||
import GlobalStyles from '../src/components/GlobalStyles';
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/i,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
decorators: [withThemeFromJSXProvider({
|
||||
themes: {
|
||||
theme,
|
||||
},
|
||||
defaultTheme: 'theme',
|
||||
Provider: ThemeProvider,
|
||||
GlobalStyles,
|
||||
})]
|
||||
};
|
||||
|
||||
export default preview;
|
||||
Reference in New Issue
Block a user