[02 - adding dark mode to your gatsby site with emotion js]
March 23, 2019
In finalizing the current version of my portfolio, I wanted to offer a dark mode toggle as a proof of concept, practice working with emotion.js, and just for usability because my blog and portfolio are so light. To implement this, I utilize a toggle component to control state,
<Global /> styles to inject some styles at
:root, and browser supported variables to change everything from font color to backgrounds to link colors.