renatomoor / storybook-tailwind-dark-mode

MIT License
20 stars 16 forks source link

Adds the `prefix` from the Tailwind config to the `dark` class #1

Closed awfy closed 3 years ago

awfy commented 3 years ago

Noticed when I tried to use this with my Tailwind config the dark class wasn't receiving our locally set prefix meaning it wouldn't work. Tried to update the component to include the prefix automatically if the person has already set one in their config.

awfy commented 3 years ago

@renatomoor hopefully this change makes sense!