tailwindcss-multi-theme icon indicating copy to clipboard operation
tailwindcss-multi-theme copied to clipboard

Feature: customize CSS class names + migrate to tailwind v2

Open hperchec opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Hello! First, thank you for your work =)

I'm using your package to configure multi-theming in my project. But i want to customize the generated CSS class names and use special characters.

Describe the solution you'd like

I did a fork of your project and applied some modifications to make it possible! Also, i have migrated to tailwind v2!

The changes are:

  • support for special characters in theme name
  • plugin now accepts options (see below)
  • migrate to [email protected]

Plugin options:

Option Type Default value
themeClassPrefix string "theme-"

I have written tests and updated the README file to explain and to give some examples.

Additional context

Make your functional library more configurable / flexible is better than write similar libraries again and again.

Thank your for your time! Hope this PR can be helpful!

PS: sorry for my bad english ^^

hperchec avatar Dec 15 '22 19:12 hperchec

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-multi-theme ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2023 2:13pm

vercel[bot] avatar Dec 15 '22 19:12 vercel[bot]