|
|
|
|
|
by SavantIdiot
1694 days ago
|
|
I still don't get CSS in javascript. Why blow up the size of the payload when linking to a compiled style sheet is sufficient? Yes, I realize some components are one-offs, but I think the discpline required to keep CSS clean is a small price to pay for mitigating bloat. |
|
You can use the just in time compiler to generate the classes on the fly rather than importing millions of them in as a style sheet. That’s js, but really it’s just a regex that scrapes things that look like tailwind class names from your html and generates those classes for you.