Follow

If you need to support dark mode in a web page and have SVG images, you can use `color="currentcolor"`, `fill="currentcolor"` or `stroke="currentcolor"` and then use CSS to match the SVG, and set the color you want using the `color` attribute.

developer.mozilla.org/en-US/do

· · Web · 1 · 2 · 1

@lunar And most importantly, start with dark background and get it light if it needs to, when the info is available. Else you'll have a white flash at page load (that can last long on slow machines) and which defeat the purpose of a dark background (regarding night reading comfort). Tip learnt from developping Meta-Press.es #metapress ^_^

Sign in to participate in the conversation
mastodon.potager.org

Un Mastodon pour la communauté du potager.org.