Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom themes not applied in the manager (Storybook 7/vitejs) #216

Closed
fauxparse opened this issue Feb 2, 2023 · 1 comment
Closed

Custom themes not applied in the manager (Storybook 7/vitejs) #216

fauxparse opened this issue Feb 2, 2023 · 1 comment

Comments

@fauxparse
Copy link

I'm defining custom themes based on the default SB themes, but they're not being applied. In preview.ts I have:

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.

@hipstersmoothie
Copy link
Owner

In general this plugin doesn't work with v7 yet. closing in favor of #205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants