church-website/.storybook/preview.tsx
2026-04-16 15:06:37 +02:00

32 lines
No EOL
630 B
TypeScript

import type { Preview } from '@storybook/nextjs-vite'
import { defaultFont, headerFont } from '@/assets/fonts'
const preview: Preview = {
decorators: [
(Story) => {
return (
<div
className={defaultFont.className}
style={{
fontSize: 'var(--font-size-body)',
'--header-font': headerFont.style.fontFamily,
} as React.CSSProperties}
>
<Story />
</div>
)
},
],
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
}
export default preview