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
fontFamily: FontFamily

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

Inherited from Readonly.fontFamily

fontSize

inheritedinherited
Interface Property
fontSize: number

The base font size in pixels.

Inherited from Readonly.fontSize

fontWeightBold

inheritedinherited
Interface Property
fontWeightBold: FontWeight

The bold font weight value, typically 700.

Inherited from Readonly.fontWeightBold

fontWeightLight

inheritedinherited
Interface Property
fontWeightLight: FontWeight

The light font weight value, typically 300.

Inherited from Readonly.fontWeightLight

fontWeightMedium

inheritedinherited
Interface Property
fontWeightMedium: FontWeight

The medium font weight value, typically 500.

Inherited from Readonly.fontWeightMedium

fontWeightRegular

inheritedinherited
Interface Property
fontWeightRegular: FontWeight

The regular font weight value, typically 400.

Inherited from Readonly.fontWeightRegular

fontWeightSemiBold

inheritedinherited
Interface Property
fontWeightSemiBold: FontWeight

The semi-bold font weight value, typically 600.

Inherited from Readonly.fontWeightSemiBold

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.