Skip to content

Commit

Permalink
build: prefer light theme always
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopezcur committed Oct 30, 2024
1 parent 12caffd commit 116fd69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .storybook/theming/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { withThemeFromJSXProvider } from '@storybook/addon-themes';
import { light, dark } from '@devoinc/genesys-brand-devo';
import { ThemeProvider } from 'styled-components';

import { PREFER_THEME } from './constants';
// import { PREFER_THEME } from './constants';

export const themeDecorator = withThemeFromJSXProvider<ReactRenderer>({
themes: {
light,
dark,
},
defaultTheme: PREFER_THEME,
defaultTheme: 'light', // PREFER_THEME,
Provider: ThemeProvider,
});
4 changes: 2 additions & 2 deletions .storybook/theming/ui.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create } from '@storybook/theming/create';

import { PREFER_THEME } from './constants';
// import { PREFER_THEME } from './constants';

const uiLightTheme = create({
base: 'light',
Expand All @@ -21,4 +21,4 @@ export const uiThemeMap = {
dark: uiDarkTheme,
};

export const PREFER_UI_THEME = uiThemeMap[PREFER_THEME];
export const PREFER_UI_THEME = uiThemeMap.light; // uiThemeMap[PREFER_THEME];

0 comments on commit 116fd69

Please sign in to comment.