This is not perfect as the toggle is not set to the right position when the site is reload but as @Wal_ said he would refactor, I just made a working sample good enough imo
This is the frontend side of the Clyde management system
npm install
npm run dev
npm run build
npm run test:unit