Hacker News new | ask | show | jobs
by desmond1303 1174 days ago
The real benefit of TW comes from the configuration. You never need to put actual values into your class names like you would with inline styles. For example, let's say you have a specific background color. You define it in the TW configuration, and TW generates a specific class for that color. So, instead of doing `style: background-color: "#123456"` a thousand times, you do `class="bg-my-color"`, and if you want to change what `bg-color` is you just change it in one place.
1 comments

That’s just CSS variables, you don’t need Tailwind for that.