Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-color] Global Color Adjustments#10262

Open
softworkz opened this issue Apr 27, 2024 · 0 comments
Open

[css-color] Global Color Adjustments #10262

softworkz opened this issue Apr 27, 2024 · 0 comments

Comments

@softworkz
Copy link

Hello,

I've been skimming through the color specs with interest, seing a lot of useful features, but I couldn't find what I had hoped to be there:

The ability to make global adjustments.

Unless I've missed anything, this appears to be always and "only" about specifying and manipulating individual CSS color values, but no means for adjusting all CSS colors by a single method. Even the color-profile @-rule doesn't appear to allow one to set a default profile for all colors.

The specific use case I'm after is this: We have an audio/video application that is large and completed already (i.e. no new development) but UI elements are sometimes appearing too bright - especially on HDR displays. Reworking all individual colors in all themes wouild be an enormous task, not to speak about 3rd party components; also there's a strict requirement for downlevel html compatibility and finally, the best suitable algorrithm for brightness attentuation isn't clear up-front and should be exchangeable.
For those reasons, it is impractical to achieve this by using color functions (e.g. with relative color) in every single CSS rule which specifies colors.

Ideally, it should affect all CSS colors equally but not videos and images - that's why Chromium's force-color-profile doesn't help either.
I've also seen dynamic-range-limit, but it doesn't help in this case either.

I'd think that my specific use case is a rather common one and generally it's not always feasible to rework all CSS color rules.

Thanks for any thoughts,
sw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant