2 ms·
Why is "writing it as fast as possible" the ultimate goal? Maintaining and debugging code (yes even styling) takes much more time than writing it in the first
by lawn 3y ago
Why is "writing it as fast as possible" the ultimate goal?
Maintaining and debugging code (yes even styling) takes much more time than writing it in the first place. Which is why readability is so important, and why Tailwind's approach of big unreadable blobs is so jarring (it doesn't just make the styling hard to read, it also makes the surrounding markup hard to read).
- methodical 3y agoTailwind is both faster to write and more readable. Instead of having to read up and down and cross reference both inherited and local classes to find the active styles on an element I can look at a short string of instantly recognizable and easy to read utility classes right there on the element directly, as opposed to somewhere else in the file (or potentially in another file altogether).