laravel-breeze

Is it possible to switch from dark mode to light mode after installing breeze in dark mode?


I am using Laravel v10.6.2 (PHP v8.1.0). I installed breeze in dark mode now I want to be able to switch to light mode. Is it possible to change the dark theme of the code generated by breeze? (Note: without reinstalling Breeze.)


Solution

  • In file tailwind.config.js

    Add

    module.exports = {
      darkMode: 'class',
      // ...
    }
    

    More info in tailwind documentation