Skip to content

Commit

Permalink
improve change theme control
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Nov 6, 2023
1 parent 688d643 commit 3d81722
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export const globalTypes = {
themeOverride: {
name: 'Override',
description: 'Use theme override',
defaultValue: false,
toolbar: {
title: 'Theme Override',
icon: 'circleHollow',
defaultValue: undefined,
items: [
{ value: undefined, icon: 'circlehollow', title: 'No ThemeOverride' },
{ value: themeOverride, icon: 'circle', title: 'With ThemeOverride' },
{ value: false, icon: 'circlehollow', title: 'No ThemeOverride' },
{ value: true, icon: 'circle', title: 'With ThemeOverride' },
],
}
}
Expand All @@ -74,7 +74,7 @@ const withTheme: Decorator = (StoryFn, context) => {
const { theme, themeOverride } = context.globals

const customTheme = {
foreground: { r: 145, g: 157, b: 219 },
foreground: { r: 255, g: 127, b: 80 },
background: { r: 85, g: 38, b: 201 },
backgroundBackdrop: { r: 221, g: 221, b: 221 },
backgroundRaised: { r: 192, g: 192, b: 192 },
Expand Down

0 comments on commit 3d81722

Please sign in to comment.