Dark mode
#
Default ThemeOnce you set ThemeProvider
the default theme is a light
theme, you can set your default theme on your ThemeProvider
#
Control themeYou can change your theme using useTheme()
#
Check current themeYou can check your theme using these two ways, using theme
and isDarkmode
theme
return a string value betweenlight
ordark
isDarkmode
return a boolean value