It provides functions to modify the theme on the runtime.
1import NiMoon from "@/icons/nexture/ni-moon";
2import NiSun from "@/icons/nexture/ni-sun";
3import { useThemeContext } from "@/theme/theme-provider";
4
5
6export default function Page() {
7 const { isDarkMode } = useThemeContext();
8
9
10 return <>{isDarkMode ? <NiMoon /> : <NiSun />}</>;
11}It has several functions and variables.
ThemeVariant
none
void
theme: ThemeVariant
system | light | dark
none
void
mode: ModeVariant
ContentType
none
void
content: ContentType
boolean
none