|
If you go even minimally outside the beaten path, the tailwind CSS declarations can mutate into a frankenstein monster that makes regular CSS look like a friendly, cute koala Example: https://www.nikolailehbr.ink/blog/realistic-button-design-cs... shows an "old fashioned", 90's are back-in-vogue, 3d button. Tailwind CSS for it becomes <button
class="relative cursor-pointer overflow-hidden rounded-md border
border-neutral-950 bg-neutral-900 px-3 py-1.5 text-neutral-100
shadow-md inset-shadow-2xs inset-shadow-neutral-600 transition-all
before:absolute before:inset-0 before:bg-linear-to-b
before:from-white/20 before:to-transparent hover:bg-neutral-800
active:bg-neutral-950 active:shadow-none
active:inset-shadow-neutral-800">
After
</button>
I got eye-strain and headaches after taking over maintenance of a tailwind based website where the original developer had left the team. The class declarations are so huge with 15-30 class names in one line that you always forget where you are. Incidentally, also the top-voted discussion: https://github.com/tailwindlabs/tailwindcss/discussions/7763 |
I find it easier to locate things in the HTML broken into components because the style is co located with the object being styled. I find it much more difficult to navigate through CSS and find out what classes are doing what exactly. Especially when a project grows over a long period of time and different people write CSS differently (and throw a few !important's in to make sure they can meet a deadline).
Each to their own though.