Feature: customize CSS class names + migrate to tailwind v2
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 ^^
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 |