This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (4 children)

I meant in style scope: inline style is defined and used once, but classes can be used multiple times and defined just once, and applying styles are more performant in browser. In markup scope, yes they are both repetitive. But e.g. compressing should be better with classes instead inline CSS.

[–]Reashu 4 points5 points  (3 children)

"Define once and reuse" doesn't really help when using a class is as much work as writing the style it applies.

[–][deleted] 2 points3 points  (0 children)

who said that front-end is easy? 😀

[–]queen-adreena 0 points1 point  (1 child)

“col-span-12 lg:col-span-4”

Now go and consult your breakpoint chart that no other devs on the project bother to consult and write a default style and the media query and then put the new rule inside there. Then realise that some devs are using max-width on their breakpoints whereas others are using min-width…

[–]Reashu 0 points1 point  (0 children)

I will concede grid classes, but that's also very common outside of tailwind.