Post
It reminds me a lot of abstracting styling with CSS vs using Tailwind utility classes. Tailwind is appealing to me because it colocates markup + styling. You can look at a chunk of HTML and know exactly what it's doing. It may look messy, but I never have to go find & reverse engineer other files.
0 reposts0 likes
Working with abstracted CSS (i.e. class names for components) increases cognitive load because I often have to think about the required DOM structure (usually referencing an existing example), how the CSS actually works, and how changes to the CSS could cascade to (and break) other parts of the app.