Theme.js is a javascript library that allows users to toggle between themes with a click of a button. It also takes into account the users preferred color scheme using media querys.
To use theme.js all you need to do it copy the below code
at the ending of your body
tag. Make sure that you do not have anything on your page set to the color of white or black and that the colors are only set by the useragent stylesheet.
<script src="https://itspotter.com/theme.js"></script>
If you choose to use theme.js in your of your projects you will not need to credit me. However, if you modify the code and publish it as your own you will need to credit me as the original creator.