Oddbean new post about | logout
 @4254ca2a Would it make sense to have custom globals that work like custom properties but aren't specific to any element?  I think something like that would allow this sort of thing (maybe with the caveat that a style sheet whose use was conditional on a global couldn't modify that global).

Then an interesting question is whether these would be in the same namespace as custom properties (used from var()) or a different one. 
 @02231265 Oh, interesting! Like if current custom properties are similar to `var` in JavaScript, this would be more like `const`—definable but not modifiable. I like!

Maybe the syntax could even be `const()`?

🔗 https://adactio.com/notes/20502