Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(storybook): set initial color-scheme to match default light mode (#1093)

Cindy Zhang789a95bc4fa4
diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts
index 25ca8e53b7..99108548bb 100644
--- a/apps/storybook/.storybook/main.ts
+++ b/apps/storybook/.storybook/main.ts
@@ -79,6 +79,11 @@ const config: StorybookConfig = {
'@layer reset, priority1, priority2, priority3, priority4, priority5, priority6, priority7, priority8, priority9;',
injectTo: 'head-prepend',
},
+ {
+ tag: 'style',
+ children: ':root { color-scheme: light; }',
+ injectTo: 'head-prepend',
+ },
];
},
},