Re: [csswg-drafts] [css-ui-4] Authors should have access to accent-color value to use in their code (#5900)

The new direction of Google's Material Design (Material You) will use one color to extrapolate a color scheme with multiple palettes. Unfortunately, we would need the RGB value (to get the hue-color-tone). Also, because it's central to the presentation of the page, it would best to be calculated before first paint. That means JS would run in `<head>`, calculate the palette, and get it all ready for the first paint.

I do worry about fingerprinting because of it though. I guess we can expose a permission? But that doesn't make sense the context of first-paint if the user has to accept. Right now I only care about web apps, so perhaps this value can be auto-granted permission on app install. That's probably a larger conversation though.

* https://github.com/material-foundation/material-color-utilities
* https://material.io/blog/science-of-color-design



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


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

Received on Sunday, 5 June 2022 15:11:17 UTC