Re: [csswg-drafts] [css-color-adjust][css-color] Expose user agent native theme colors to CSS (#12837)

@SebastianZ ,
There are multiple theming principles, the one I am working on just a sample. So far it is ONLY implementation which tries to consume system colors. Vendors are using less tokens then average web app theming set but still sufficient to cover some of variations of base components ( like button background for primary/secondary/alert/etc ) and states for them ( hover, disabled, etc.). 
Even if such vendor tokens ( including palette ) are limited, it is still useful as they are **exposed for user settigs and customization**. 

The proposal based on _user semantic tokens_ would come separately, the theory and feedback is not sufficinet for now.

Lets keep the tokens set aside of this discussion. The proposal is to expose vendor tokens and their values to CSS level. What tokens are necessary is aside of this discussion. Whatever the vendor uses internally, is just passed through.

The Web Extension is not the target for this proposal, CSS is. Web App developer is consumer, not the browser extension.

Chromium based and Firefox browsers have the initial values for their internal themes in open sources. _CSS does not need it_ since user can customize the values. Those **customized values have a sence to expose to CSS**, not defaults from the sources.

> The proposal is either a) to add these as new system color keywords (where they do not match existing ones) 

NO, the names come from vendor-specific token names, proposal is just to relay those tokens.

> b) to make system color keywords available in relative color syntax, i.e. after from

I did not get it. While the system colors are not part of this proposal, I am curious what you mean under "relative color syntax"?


-- 
GitHub Notification of comment by sashafirsov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12837#issuecomment-3331594914 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 September 2025 02:41:34 UTC