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
themeTypeType | Default |
|---|---|
Empty Object |
Hook Return Value
theme
themeType | Default |
|---|---|
Default colorScheme |
themeAssets
themeAssetsType | Default |
|---|---|
Default assets |
setThemeType
setThemeTypeType |
|---|
Function of type: (newThemeType: LLThemeType) => void |
setThemes
setThemesType |
|---|
Function of type: (_themes: LLThemes) => void |
themeType
themeTypeType | Default |
|---|---|
ColorSchemeName |
themes
themesType | Default |
|---|---|
Default StockUI Theme |
Updated 2 months ago
What’s Next
