Skip to content

Commit e3fbdbf

Browse files
committed
🤖 fix(storybook): restore dark theme as default
When no mode is explicitly set (e.g., viewing 'Latest' without using the toolbar), default to dark theme instead of system preference. This ensures consistent default rendering across all environments.
1 parent a239495 commit e3fbdbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.storybook/preview.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ const preview: Preview = {
2121
decorators: [
2222
(Story, context) => {
2323
const mode = context.globals.theme as ThemeMode | undefined;
24+
// Default to dark when no mode is explicitly set (e.g., Latest view)
25+
const forcedTheme = mode ?? "dark";
2426
return (
25-
<ThemeProvider forcedTheme={mode}>
27+
<ThemeProvider forcedTheme={forcedTheme}>
2628
<Story />
2729
</ThemeProvider>
2830
);

0 commit comments

Comments
 (0)