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 …
Nice write up. One comment on `currentColor` you can use <svg><use xlink:href=“…”></svg> to have separate resources and still use `currentColor` in context. We do this in Web Inspector. Mentioned here:https://webkit.org/blog/8892/dark-mode-in-web-inspector/ …
-
-
Thanks for the kind words!
I consider this more of a general SVG advice, but definitely great idea to mention that `currentColor` works even in the reference (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use …) context. I’ll add this.
Your great
work is linked (https://web.dev/prefers-color-scheme/#related-links …) by the way! -
Opened https://github.com/GoogleChrome/web.dev/pull/1079 … to add this info. Thanks again!
Kraj razgovora
Novi razgovor -
Č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.
