Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Randy_Johnson's avatar

InertiaJS Dark Mode Light Mode, beginning entry

I want to implement themes into my application following this tutorial https://www.youtube.com/watch?v=vIBKSmWAdIA but I am at the point where I need to find the entry point of the application and grab the current theme from localstorage. I need to find the single point of entry, since have to copy and paste across multiple pages would be a pain in the ass. Please help.

0 likes
1 reply
gych's avatar

You can handle this in boostrap.js file or if you don't use bootstrap.js then directly in app.js

Please or to participate in this conversation.