4 ms·
You still have to context switch between thinking about markup vs styling vs behaviour. The language you write the styling in barely makes a difference imo
by arrow7000 4y ago
You still have to context switch between thinking about markup vs styling vs behaviour. The language you write the styling in barely makes a difference imo
- naasking 4y agoSure, but you don't have to switch between types of files, syntax, etc. "Barely makes a difference" seem subjective, so YMMV.
- eckmLJE 4y agoTailwind classes are a syntax (especially since you can set arbitrary values e.g. `top-[-113px]`) and they still represent CSS. So really you're using a DSL with its own syntax, functions and directives on top of the CSS you should still understand. The main benefit is speed: you have a library of utility classes that are shorthand for common CSS patterns. If you are pretending that you're not writing CSS, you are forgetting how the browser is actually working -- eventually you may have to leave Tailwind and you'll find you've forgotten how to write good CSS.