daisyUI 5 is here: What's new and what to expect - LogRocket Blog
Briefly

daisyUI 5 is here: What's new and what to expect - LogRocket Blog
"If you've worked with Tailwind CSS, chances are you've used daisyUI. As one of the most popular Tailwind component libraries, it's valued for its sensible defaults, wide component set, and flexibility that feels native to Tailwind. Now, with the release of Tailwind CSS 4, the ecosystem is evolving - and daisyUI is keeping pace. Version 5 is more than an update: it's a complete rewrite built to be smaller, faster, and more customizable."
"Zero dependencies: This is a huge win. daisyUI 5 has completely eliminated all third-party dependencies. For you, this means a much cleanernode_modules directory, faster npm install times, and a significantly smaller security attack surface. 61% smaller package size: The npm package has shrunk from 4.7 MB down to just 1.8 MB. This directly contributes to quicker project setup and less disk space usage. 75% smaller CDN file: The all-inclusive CSS file, which was previously full.css, is now daisyui.css and has been reduced from 137 kB (compressed) to a tiny 34 kB. This makes using the CDN file directly in production a genuinely viable and efficient option, especially for projects without a build step."
daisyUI 5 is a ground-up rewrite focused on performance, size reduction, and modern compatibility. The package removes all third-party dependencies, shrinking install overhead and reducing security surface. The npm bundle dropped from 4.7 MB to 1.8 MB, and the compressed CDN CSS fell from 137 kB to 34 kB, making direct CDN use practical. The rewrite embraces modern CSS capabilities and Tailwind CSS 4 features to enable native patterns like CSS nesting and improved theming. The release also updates component APIs and introduces a new theming engine to simplify customization and migration from v4 to v5.
Read at LogRocket Blog
Unable to calculate read time
[
|
]