4 ms·
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
by iruoy 5y ago
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.
- aidos 5y agoAnd 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