News for hackers. Stuff that matters.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by tgv on Monday February 16, 2026 @05:38AM (#47033437)
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."
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by namuol on Tuesday February 17, 2026 @02:00AM (#47044511)
Components are the tool you’re looking for. For the rest there’s CSS variables. Soon we may have @mixin.