I have done a ton of research
, coded a lot of examples
, released a custom element `<dark-mode-toggle>` 
, and picked some of the smartest brains
inside and outside of Google to make my latest article happen…
Hello Darkness, My Old Friend! https://web.dev/prefers-color-scheme/ …https://twitter.com/ChromiumDev/status/1144258272268115969 …
-
-
Odgovor korisniku/ci @tomayac
Great research!
Thanks!
I'm curious how to calculate the color values of icons, text, etc. for the dark theme from the values for the light theme? Is there any algorithm to keep an acceptable contrast ratio? The inverted colors looks ugly…0 proslijeđenih tweetova 0 korisnika označava da im se sviđa
Odgovor korisniku/ci @alexey_rodionov
No algorithm that I was aware of. One approach to get closer to usable values might be applying `filter: invert() hue-rotate(180deg)` and then working based off these values, but your actual mileage may vary.
08:32 - 27. lip 2019.
0 replies
0 proslijeđenih tweetova
1 korisnik označava da mu se sviđa
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
Dad-of-3. Developer Advocate at
), PhD from
), Postdoc at
).
