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

style: add DarkMode support #539

Open
hollandjg opened this issue Aug 1, 2023 · 0 comments
Open

style: add DarkMode support #539

hollandjg opened this issue Aug 1, 2023 · 0 comments

Comments

@hollandjg
Copy link
Contributor

Tailwind includes out-of-the-box darkMode support, and so does Storybook. We could activate that if we wanted to.

Requires:

  decorators: [
    // Adds theme switching support.
    // NOTE: requires setting "darkMode" to "class" in your tailwind config
    withThemeByClassName({
      themes: {
        light: "light",
        dark: "dark",
      },
      defaultTheme: "light",
    }),
  ],

Originally posted by @hetd54 in #511 (comment)

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

1 participant