Dark mode
Default Theme#
Once you set ThemeProvider the default theme is a light theme, you can set your default theme on your ThemeProvider
Control theme#
You can change your theme using useTheme()
Check current theme#
You can check your theme using these two ways, using theme and isDarkmode
themereturn a string value betweenlightordarkisDarkmodereturn a boolean value