Thomas Steiner is a Developer Advocate at Google Hamburg, focused on making the Web a better place through standardization, creating and sharing best practices, and doing research.
CSS variables are fantastic for use cases like this. Here's a <dark-mode-toggle> that initially respects prefers-color-schemeand allows for manual overrides. Read more about it in this article.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
CSS variables are fantastic for use cases like this. Here's a <dark-mode-toggle> that initially respects
prefers-color-scheme
and allows for manual overrides. Read more about it in this article.