Re:Why Tailwind CSS Won
by LtdJorge on Wednesday August 16, 2023 @06:22AM
(#37144998)
I assume OP means that for the fist button of the site, as in creating the site from 0.
[ Parent
| on HN ]
In that case, you just write
button {
/* your styles here */
}
to set a precedent for all your future buttons.In that case you end up with fifteen different variations of that button, class names like "button-cta__hero__overlay" and a smattering of !importants to defeat the cascade you can't chase down
I've never ended up with something like this.
Re:Why Tailwind CSS Won
by withinboredom on Wednesday August 16, 2023 @07:38AM
(#37145537)
Work in bigger teams with bespoke css. It will happen ... eventually ... without fail.