This tutorial shows how to make an easy Dark/Light theme switcher with Tailwind CSS. It’s done in vanilla JS with a single app.js file.
So if I wanted to implement this in a Vue project, would I just dump that code into ~/src/main.js, or is there a better way?