- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Tue, 05 Dec 2023 20:49:37 +0000
- To: public-css-archive@w3.org
> ([#](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1841452919)) What I still don't actually understand, tho, is what your original example is intending to do. I don't see anything activating a color scheme, nor any definition of what those three custom color schemes are. Activation: - Web Preferences API, where you set this on `:root` - Author setting `color-scheme: --solarized-dark` on an element. > ([#](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1841452919)) Are they intended to be literally meaningless outside of their ability to trigger schemed-color()? No. I like what you proposed [here](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1834713634), in which an author can define a new color scheme and set the system colors. The minimum required descriptors are only the `base-scheme`, the maximum required descriptors are the minimum + all system colors ```css /* Bare minimum custom color scheme */ @color-scheme --custom-minimum { base-scheme: dark; } /* Fully fledged custom color scheme */ @color-scheme --solarized-dark { base-scheme: dark; AccentColor: …; AccentColorText: …; ActiveText: …; ButtonBorder: …; ButtonFace: …; ButtonText: …; Canvas: …; CanvasText: …; Field: …; FieldText: …; GrayText: …; Highlight: …; HighlightText: …; LinkText: …; Mark: …; MarkText: …; VisitedText: …; } ``` I see where [my reply](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1839810219) could be misinterpreted as the first code snippet echos what I initially had in mind … but that initial thought has evolved as this thread grew. The second example in [that comment](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1839810219) has the full picture, and incorporates your proposal _(as also detailed in the code snippet in this comment)_ … I think we’re thinking the same on this? -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1841590535 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 December 2023 20:49:40 UTC