Closed fauxparse closed 1 year ago
I'm defining custom themes based on the default SB themes, but they're not being applied. In preview.ts I have:
preview.ts
export const parameters = { actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, darkMode: { dark, // my dark theme light, // my light theme }, };
...but it's just applying the default SB light and dark themes. I can see by looking at localStorage that the default themes are being written there; clearing localStorage and restarting storybook doesn't help.
localStorage
In general this plugin doesn't work with v7 yet. closing in favor of #205
I'm defining custom themes based on the default SB themes, but they're not being applied. In
preview.ts
I have:...but it's just applying the default SB light and dark themes. I can see by looking at
localStorage
that the default themes are being written there; clearinglocalStorage
and restarting storybook doesn't help.