This content originally appeared on DEV Community and was authored by Sigui Kessé Emmanuel
If you’ve ever developed plugins for TailwindCSS, you know how powerful the plugin system is… but also how it can get a bit cumbersome at times. 🎨
Enter plugwind.js
, a lightweight package that extends Tailwind's plugin API with must-have features to make your life easier.
Why use Plugwind.js?
- 🌑 Simplified dark mode support : Switch it on with ease.
- 🎨 Background gradients : Effortlessly manage and apply gradients.
- 📦 More flexible API : Extend Tailwind faster and more efficiently.
All this with just a few lines of code!
How to install it?
npm install plugwind.js
Example usage
import plug from 'plugwind.js';
export default plug(({ addProperty }) => {
addProperty('background', 'radial-gradient(circle, var(--tw-gradient-stops))', '.bg-gradient-radial')
});
Plugwind.js is an evolving project, so feedback and contributions are highly appreciated!
Give it a try and let me know what you think 🚀
tailwindcss #npm #pluginDev #javascript #opensource
This content originally appeared on DEV Community and was authored by Sigui Kessé Emmanuel
Sigui Kessé Emmanuel | Sciencx (2024-10-21T04:26:12+00:00) Supercharge Your TailwindCSS Plugin Development with Plugwind.js. Retrieved from https://www.scien.cx/2024/10/21/supercharge-your-tailwindcss-plugin-development-with-plugwind-js/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.