8 CSS & JavaScript Snippets for Switching Between Dark & Light Modes By Eric Karkovack CSS / JavaScript