4 ms·
> Hard to see the use-cases for sass in 2024 Modules make writing CSS much less of a naming game. Anything you can do to reduce one of the 2 hardest problems i
by rkuykendall-com 4y ago
> Hard to see the use-cases for sass in 2024
Modules make writing CSS much less of a naming game. Anything you can do to reduce one of the 2 hardest problems in CS is worth it.
- tipiirai 4y agoOr build a design system with good names and take advantage of the global nature of standard CSS.
- meowface 4y agoHow, exactly? Naming aside, splitting things into separate files is often useful, and making the browser fetch multiple files for the base stylesheet is always going to be worse than packing it into a single file.
- tipiirai 4y agoGlobal means more reach, local means more specifity. Design systems are global by nature. Has nothing to do with file splitting / packing.
- dimal 4y agoMaking sure that the top-level classes of components are unique isn't difficult. Making sure the inner classes are unique (yet still follow a consistent naming convention) is only possible with a methodology like BEM, which is clunky. And you want inner classes to be unique so that you can nest components safely without having outer components accidentally styling the innards of inner components.