From 645e83f82906c1672a7d87b825e95a8fb9181ad5 Mon Sep 17 00:00:00 2001 From: Craig Yu Date: Tue, 24 Dec 2024 19:56:07 -0800 Subject: [PATCH] fix: darkmode toggle --- .storybook/preview.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index b4fb637..479ed1d 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -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 }, },