← Back to context

Comment by tgv

11 days ago

I don't think "separation of concerns" is entirely dead. Ideally, the CSS is readable and maintainable, and that implies structure. If you have a bunch of (co-)related components, you don't want to find/replace tailwind class names when you need to change the layout. So you separate that part of the layout in classes based on (layout!) functionality. You can see that as "concerns."

Components are the tool you’re looking for. For the rest there’s CSS variables. Soon we may have @mixin.