Night mode plugin?


I’m looking for a night mode plugin for my site that’s using @mmistakes’s Minimal Mistakes theme. I’ve seen the same plugins across different vendors, like MacStories Wordpress site and @joebuhlig’s site.

Wonder how I can get the same thing for my site. Wondering if it’s JS or whatever.


I actually got inspiration from MacStories for mine. It’s pretty simple the way I did it. It’s CSS styling found here:

And to do the triggering/saving of your preference I used javascript. At the initial, it will check for the cookie and set the theme accordingly:

And then I added the icon that does the toggle, which is activated via javascript as well:

That’s it. It looks a lot more complicated than it really is.

Jekyll Showcase! - Share your sites built with Jekyll

Thanks! Yeah MacStories night mode is quite cool.