{{# @name Dark mode toggle @desc The dark mode toggle component when you use class based dark mode. To enable this do the following: 1. Uncomment `darkMode: 'class'` in `tailwind.config.js`. 2. Add `{{ partial:components/dark_mode_toggle }}` to the
in `resources/vies/layout.antlers.html`. 3. Add `{{ yield:dark_mode_toggle }}` as the last list item in the main ul in `resources/views/navigation/_main.antlers.html`. #}} {{# We can't use Alpine logic here since this has to run before anything else. #}} {{# The actual toggle yielded in the `resources/views/navigation/_main.antlers.html`. #}} {{ section:dark_mode_toggle }}