by nailer · 4y ago · 0 comments
Current gen frameworks will put the styling inside the component so styling is literally a matter of scrolling down.
<div class=“login”>
… .login {
padding: 12px 6px;
}
Yes you need to know the order I’ll give you that. Still less overhead than adding tailwind.Now if there is a go-to-definition for CSS classes, that would be quite useful. But I appreciate that I don't have to even think about putting a name to my styles with Tailwind.
.login, input.username, input.password, .instructions, .error
If it’s a sea of nested divs, so it’s hard to find the right element (a common pattern among “I just know react” developers), then fix the sea of nested divs.Also means you have to think of a name for every component you want to apply style to which is surprisingly tedious.