Light/dark mode switcher for documentation site

As mentioned in this thread originally, I wanted to create a thread to keep track of this. This doesn’t have to be implemented now, but we should keep this on our radar. It’s always a good idea to allow user to switch between light/dark modes.

Since documentation uses prismjs for syntax highlighting, here’s a good implementation that we can leverage to implement this mode switcher on the documentation site:

https://codepen.io/2kool2/pen/MEbeEg

2 Likes