It's less generic and less cool, but this bakes the styles for dark and light into a single stylesheet, and deals with switching without any JS.