DEV Community

Discussion on: Implementing Dark Mode (Part 2)

Collapse
 
ksengine profile image
Kavindu Santhusa • Edited
Collapse
 
mtfoley profile image
Matthew Foley

Thanks for sharing! I will have to remember your techniques here on the next project.

Collapse
 
0vortex profile image
TED Vortex (Teodor Eugen Duțulescu)

This technique was used in chrome and safari dark mode libraries, they have some adjustments but ultimately fall short due to different light mode contrast settings - it's really good as a generic setting, for example implementing your own cross site dark mode, but from a product perspective potentially hurts users and limits design.

Check out some open source projects doing exactly that: github.com/darkreader/darkreader - darkreader.org/help/en/

Collapse
 
ksengine profile image
Kavindu Santhusa

Totally agreed.