5

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.)

N69S
  • 16,110
  • 3
  • 22
  • 36
lordyhas
  • 360
  • 1
  • 11

2 Answers2

1

In file tailwind.config.js

Add

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

More info in tailwind documentation

-3

If you want to disable dark mode completely just reinstall with

php artisan breeze:install

This reruns the install procedure and you can now avoid to install dark mode.

Be aware this will overwrite some files related to Breeze.

Andreas
  • 247
  • 4
  • 12