From 116fd6903ef2bb4952c37d17bc7495006010d90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20L=C3=B3pez=20=C3=9Abeda?= Date: Wed, 30 Oct 2024 13:02:53 +0100 Subject: [PATCH] build: prefer light theme always --- .storybook/theming/decorator.ts | 4 ++-- .storybook/theming/ui.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.storybook/theming/decorator.ts b/.storybook/theming/decorator.ts index 0891f02..c9ca4fc 100644 --- a/.storybook/theming/decorator.ts +++ b/.storybook/theming/decorator.ts @@ -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({ themes: { light, dark, }, - defaultTheme: PREFER_THEME, + defaultTheme: 'light', // PREFER_THEME, Provider: ThemeProvider, }); diff --git a/.storybook/theming/ui.tsx b/.storybook/theming/ui.tsx index ef866c8..2803e6a 100644 --- a/.storybook/theming/ui.tsx +++ b/.storybook/theming/ui.tsx @@ -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', @@ -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];