Remove the Dark Mode
To remove the Tailwind dark mode functionality from the StreamWind theme, follow these steps:
Open the
app.js
file and remove the following functions and code blocks:setThemeBasedOnSystemPreference
functionCode block that sets the initial theme
Dark mode media query event listener
Dark mode toggle event listener
Remove any dark mode related styles from your CSS or remove the
dark:
variants in your Tailwind CSS classes.Remove the dark mode toggle element from your HTML, which is typically identified by the ID
darkModeToggle
.Remove
darkMode: 'class',
fromtailwind.config.js
Last updated
Was this helpful?