useTheme
The purpose of the useTheme
hook is to manage and customise the StockUI Theme
Example Usage:
const { theme, themeAssets, setThemeType, setThemes, themeType, themes } = useTheme();
Hook Argument
themeType
themeType
Type | Default |
---|---|
UseThemeArg | Empty Object |
Hook Return Value
theme
theme
Type | Default |
---|---|
LLTheme | Default colorScheme |
themeAssets
themeAssets
Type | Default |
---|---|
LLThemeAssets | Default assets |
setThemeType
setThemeType
Type |
---|
Function of type: (newThemeType: LLThemeType) => void |
setThemes
setThemes
Type |
---|
Function of type: (_themes: LLThemes) => void |
themeType
themeType
Type | Default |
---|---|
ColorSchemeName | LLThemeType | ColorSchemeName |
themes
themes
Type | Default |
---|---|
LLThemes | Default StockUI Theme |
Updated about 1 year ago
What’s Next