News for hackers. Stuff that matters.
Re:Tailwind CSS v4.0 Beta 1 by ahussain on Friday November 22, 2024 @04:06AM (#42212263)
The number of tailwind classes is so large now that copy/pasting the whole set into your project would mean a huge bundle size.

Part of that the tailwind package is doing is making sure that only the relevant tailwind classes are included.

Re:Tailwind CSS v4.0 Beta 1 by dotancohen on Friday November 22, 2024 @04:37AM (#42212429)
So Vite builds a custom style sheet based upon the Tailwind classes that are actually used in the project?
Re:Tailwind CSS v4.0 Beta 1 by agos on Friday November 22, 2024 @04:59AM (#42212521)
yes, exactly