Skip to content

ThemeProviderProps

type ThemeProviderProps = {
children: ReactNode;
colorMode?: ColorMode;
colors?: ThemeColorValues;
fonts?: ThemeFontValues;
fontStyleSheet?: string;
globalStyles?: GlobalStyleObject;
locale?: AppLocale;
};
Property Type Description
children ReactNode Children to be rendered within this theme.
colorMode? ColorMode Controls the color mode, for apps that keep it themselves. When set, setColorMode and toggleColorMode from useColorMode have no effect. Defaults to the color mode saved with setColorMode, or light.
colors? ThemeColorValues Custom colors for theme.
fonts? ThemeFontValues Font families used for custom theme fonts. Font names must match the names of imported fonts in Font Style Sheet
fontStyleSheet? string Style sheet containing font faces to be used for custom Theme Fonts. See example usage in theme-casper.ui.ts
globalStyles? GlobalStyleObject -
locale? AppLocale Locale used by every localized component in this subtree. Defaults to en-US.