Check out this tutorial for creating a simple Dark/Light theme switcher using Tailwind CSS. This tutorial utilizes vanilla JS and only requires a single app.js file.
If I want to incorporate this into a Vue project, should I simply paste the code into ~/src/main.js, or is there a more optimal approach?