Skip to content

Commit

Permalink
fix: darkmode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Dec 25, 2024
1 parent f6c5728 commit 645e83f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ export const globalTypes = {
description: 'Global theme for components',
defaultValue: 'light', // Default theme
toolbar: {
icon: 'circlehollow', // Toolbar icon in Storybook
items: ['light', 'dark'], // Available options
icon: 'circlehollow', // Default icon; will update based on selection
items: [
{ value: 'light', icon: 'sun', title: 'Light Mode' },
{ value: 'dark', icon: 'moon', title: 'Dark Mode' },
],
showName: true, // Display the selected option name
},
},
Expand Down

0 comments on commit 645e83f

Please sign in to comment.