News for hackers. Stuff that matters.
Re:Why I don't like Tailwind CSS by 9dev on Friday March 12, 2021 @02:44AM (#26433198)
No, I actually love CSS variables. But they invariably will be abused in the long term. What you called medium padding might suddenly be decreased to be a value lower than small padding, and that’s the point where it all starts to go to hell.

The point of Tailwind is that it’s a straightforward way to handle all the CSS complexity and put the moving parts into a single config file that works the same everywhere.

Re:Why I don't like Tailwind CSS by Macha on Friday March 12, 2021 @09:06AM (#26435934)
> What you called medium padding might suddenly be decreased to be a value lower than small padding, and that’s the point where it all starts to go to hell.

Tailwind: https://tailwindcss.com/docs/theme#spacing

Would it be strange to define p-2 to be smaller than p-1? Yes. Exactly as strange as defining your padding-medium variable to be smaller than padding-small.