- From: Quentin Albert via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 May 2024 14:18:53 +0000
- To: public-css-archive@w3.org
Que-tin has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-variables-2][css-properties-values] Constants in CSS == Is there a reason that we don't constants in CSS yet? I was looking trough the open issues and couldn't find a single one asking for it. e.g. for stuff like font-families or theme independent colors like brand colors it would be great to have something like this to make sure they don't get overwritten. The syntax could be similar to custom properties by replaying `-` with `_` so `__*`. These should also be allowed in `@property` definitions. I'm not 100% sure whether there should also be a new function to access these constants or whether the underscore are enough to differentiate the two when using `var()` for both. Open for discussion. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10286 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 May 2024 14:18:54 UTC