Hacker News new | ask | show | jobs
by chrischen 878 days ago
You are supposed to abstract messy tailwind classes via your programming language and the component framework.

For example: using loops, breaking things into smaller reusable components, etc.

Tailwind devs specifically recommend against making your own abstractions in your CSS that coincide with your abstractions in your programming language.

So for example instead of CSS classes for buttons just make components for the buttons to be used directly.