News for hackers. Stuff that matters.
Re:Tailwind CSS v3.0 by iruoy on Thursday December 09, 2021 @04:16PM (#29503055)
JIT mode basically means it recompiles your styles before you can press reload on your browser.

Before they didn't have all colors enabled by default, because generating classes like `bg-blue-500`, `text-blue-500`, `border-blue-500`, etc. for all colors would increase the resulting CSS way too much. They did the same thing with variants.

With the JIT none of that is necessary anymore. Plus you can use arbitrary values because it's being compiled now.

Re:Tailwind CSS v3.0 by aidos on Thursday December 09, 2021 @04:36PM (#29503262)
And even that is less magic than it sounds. Unless it’s changed in v3, there’s just a regex matching stuff that could be a class name and building a rule for it.

    /[^<>"'`\s]*[^<>"'`\s:]/g