Use Zustand to control the state of wether it should be light or dark mode across the application. Always make use of Tailwinds dark: attribute when deciding on how each component should look with dark mode.
Save and read the state from the localStorage Web API
We'll make use of the next-themes to control the state of the theme.
Use Zustand to control the state of wether it should be light or dark mode across the application. Always make use of Tailwinds
dark:
attribute when deciding on how each component should look with dark mode.Save and read the state from thelocalStorage
Web APIWe'll make use of the
next-themes
to control the state of the theme.