Skip to content

Comment on Show HN: ECSS – Simple rules for efficient CSSparent

Comments

Thanks for the comment. It reminds me that examples should be more real-like. Hehe. Because, yeah, I would absolutely use a custom property for it. Same with .card, a simple example which in practice may be more precise, yes.

Global scope is for base rules, yes. Rhythm, typography, maybe colors only. Still it's great to be able to style these design layers globally!

I'll adjust the examples to reflect this. Thanks for the lesson!

PS: hard to debug bugs? The inspector shows styles handily for global styles!

And because of your post I was prodded to learn more about layers, thanks for that!

Nice! They're great for establishing a strict scope for rulesets.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.