diff --git a/src/Tool.tsx b/src/Tool.tsx index dbfb717c..d0648124 100644 --- a/src/Tool.tsx +++ b/src/Tool.tsx @@ -120,6 +120,11 @@ export const store = (userTheme: Partial = {}): DarkModeStore => return { ...defaultParams, ...userTheme } as DarkModeStore; }; +// On initial load, set the dark mode class on the manager +// This is needed if you're using mostly CSS overrides to styles the storybook +// Otherwise the default theme is set in src/preset/manager.tsx +updateManager(store()); + interface DarkModeProps { /** The storybook API */ api: API;