Module: theme
Namespaces
Variables
fontFamily
• Const
fontFamily: Object
Type declaration
Name | Type |
---|---|
primary | string |
Defined in
packages/webapp-libs/webapp-core/src/theme/font.ts:3
fontWeight
• Const
fontWeight: Object
Type declaration
Name | Type |
---|---|
bold | string |
regular | string |
Defined in
packages/webapp-libs/webapp-core/src/theme/font.ts:7
Functions
useTheme
▸ useTheme(): DefaultTheme
Returns the current theme (as provided by the closest ancestor ThemeProvider
.)
If no ThemeProvider
is found, the function will error. If you need access to the theme in an
uncertain composition scenario, React.useContext(ThemeContext)
will not emit an error if there
is no ThemeProvider
ancestor.
Returns
DefaultTheme
Defined in
node_modules/.pnpm/[email protected]_react-dom@[email protected]/node_modules/styled-components/dist/models/ThemeProvider.d.ts:42