mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-17 20:59:31 +00:00
33 lines
624 B
TypeScript
33 lines
624 B
TypeScript
import '@fontsource/roboto/400.css'
|
|
import '@fontsource/roboto/700.css'
|
|
import '../src/styles/index.scss'
|
|
|
|
import { themes } from '@storybook/theming'
|
|
import type { Preview } from '@storybook/react'
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
docs: {
|
|
theme: themes.dark,
|
|
},
|
|
backgrounds: {
|
|
default: 'dark',
|
|
values: [
|
|
{
|
|
name: 'dark',
|
|
value: '#000000',
|
|
},
|
|
],
|
|
},
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
export default preview
|