Skip to content

Interface

The typography variables for the jimu-theme.

Inheritance: TypographyRecord<TypographyVariantTypographyStyle>Readonly<FontStyle>TypographyUtils

Properties

Hide inherited properties
PropertyTypeNotes
fontFamily
inherited
FontFamily

The font family to be used, e.g. 'Avenir Next', 'Arial', etc.

fontSize
inherited
number

The base font size in pixels.

FontWeight

The bold font weight value, typically 700.

FontWeight

The light font weight value, typically 300.

FontWeight

The medium font weight value, typically 500.

FontWeight

The regular font weight value, typically 400.

FontWeight

The semi-bold font weight value, typically 600.

fontFamily

inheritedinherited
Interface Property

fontSize

inheritedinherited
Interface Property

fontWeightBold

inheritedinherited
Interface Property

fontWeightLight

inheritedinherited
Interface Property

fontWeightMedium

inheritedinherited
Interface Property

fontWeightRegular

inheritedinherited
Interface Property

fontWeightSemiBold

inheritedinherited
Interface Property

Methods

Hide inherited methods
MethodReturnsNotes
pxToRem(px)
inherited
string

Convert pixels to rems.

remToPx(rem)
inherited
string

Convert rems to pixels.

pxToRem

inheritedinherited
Interface Method
pxToRem(pxstring | number): string

Convert pixels to rems.

Parameters
ParameterType
pxstring | number
Returns 
string

remToPx

inheritedinherited
Interface Method
remToPx(remstring | number): string

Convert rems to pixels.

Parameters
ParameterType
remstring | number
Returns 
string

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.