sinewalker / sinewalker.github.io

personal public blog
0 stars 0 forks source link

Switch to toggle dark/light #17

Open sinewalker opened 6 years ago

sinewalker commented 6 years ago

While I like dark pages, I conceed they're not for everyone, and sometimes it would be helpful to have a dark-text-on-light-background look (when outdoors, or projecting to a screen, for instance).

It should be fairly straightforward to customise the colour variables in custom.css for a light page, based upon this CodePen

Altering the nikola_ipython.css should also be possible, though probably not as DRY, without also changing that to use variables in a similar fashion.

sinewalker commented 6 years ago

I also need to figure out where to put the code for the switch on the pages. Somewhere in config.py I think?