Comment

Comment by dlisboa

Layers is for organization.

You can always have different files for different things but without @layers you'll bump into specificity issues. You'd also have to arrange your imports correctly or you spend countless hours on "why is this style being applied and not that one?".

It's what makes modular CSS (with cascade) actually possible.

parent dlisboa 10 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton