Files
community-rule/.storybook/preview.js
T
2025-08-21 20:10:46 -06:00

39 lines
807 B
JavaScript

import "../app/globals.css";
// Import Google Fonts for Storybook
import { Inter, Bricolage_Grotesque } from "next/font/google";
const inter = Inter({
subsets: ["latin"],
weight: ["400", "500"],
variable: "--font-inter",
});
const bricolageGrotesque = Bricolage_Grotesque({
subsets: ["latin"],
weight: ["400", "500"],
variable: "--font-bricolage-grotesque",
});
/** @type { import('@storybook/react').Preview } */
const preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
decorators: [
(Story) => (
<div className={`${inter.variable} ${bricolageGrotesque.variable}`}>
<Story />
</div>
),
],
};
export default preview;