Tailwind plugin to easily add multiple color themes to your projects.
tw-colors is a tailwind plugin that makes it easy to switch between color themes in a Tailwind app. It eliminates the need for cluttered dark variants and messy CSS variables. With tw-colors, you can effortlessly change color themes by simply changing one className. It supports all color formats, including HEX, RGB, HSL, and named colors, and offers fine-grained theming with variants. The plugin does not add any JavaScript to the bundle size, making it lightweight and efficient.
To install tw-colors, follow these steps:
tailwind.config.js) and move the colors into the createTheme plugin, giving it a name (e.g. light).theme-light class anywhere in your app. Alternatively, you can use data attributes (data-theme="light").tw-colors is a powerful tailwind plugin that simplifies the process of switching color themes in a Tailwind app. It offers various features such as support for multiple color formats, fine-grained theming with variants, and full compatibility with Tailwind CSS Intellisense. With its lightweight and efficient implementation, tw-colors is a game-changer for designing vibrant and visually appealing apps.