top | item 46597857

(no title)

pyeri | 1 month ago

Not a tailwind geek myself but I think how they justify is "better to have a little extra spaghetti in your html code than create a truck load of spaghetti in your app.css stylesheet."

The alternative to using tailwind here is to define the specific style elements for each one in the css stylesheets yourself with something like this:

.bg-sky-500 { background-color: blue; }

Tailwind proponents argue that they avoid this "stylesheet hell" by picking ready pre-defined tailwind classes like bg-sky-500, etc. Plus they also argue that this workflow will increase productivity by standardizing "style mindsets" of your dev team who all will think "blue" means "sky-500" (for example).

Maybe it has use cases in deep or professional design work but for most backend or full-stack devs, bootstrap is definitely better than meddling with this structure.

discuss

order

No comments yet.