Storybook responsive fix

This commit is contained in:
adilallo
2025-08-11 13:54:54 -06:00
parent 4ef658a355
commit 79ae558b60
21 changed files with 5371 additions and 159 deletions
+63
View File
@@ -0,0 +1,63 @@
import "../app/globals.css";
/** @type { import('@storybook/nextjs-vite').Preview } */
const preview = {
parameters: {
nextjs: { appDirectory: true },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
a11y: {
// 'todo' - show a11y violations in the test UI only
// 'error' - fail CI on a11y violations
// 'off' - skip a11y checks entirely
test: "todo",
},
backgrounds: {
default: "dark",
values: [
{
name: "dark",
value: "#000000",
},
{
name: "light",
value: "#ffffff",
},
],
},
viewport: {
defaultViewport: "md",
viewports: {
xsm: {
name: "XSmall (≤429px)",
styles: { width: "429px", height: "800px" },
},
sm: {
name: "Small (≥430px)",
styles: { width: "430px", height: "800px" },
},
md: {
name: "Medium (≥640px)",
styles: { width: "640px", height: "800px" },
},
lg: {
name: "Large (≥1024px)",
styles: { width: "1024px", height: "800px" },
},
xl: {
name: "XLarge (≥1440px)",
styles: { width: "1440px", height: "900px" },
},
},
},
},
};
export default preview;