QUI React

Font

Due to limitations with the font shorthand, typeface styles are constructed from multiple CSS variables.

Each typeface uses variables for the following properties:

  • font
  • font-stretch

TIP

The font classes below were added in @qui/styles v2.7.0. Please update if you're on an older version.

Body

CSS Class
q-font-body-xxl
CSS Variables
font: --q-font-body-xxl
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xl
CSS Variables
font: --q-font-body-xl
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-lg
CSS Variables
font: --q-font-body-lg
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-md
CSS Variables
font: --q-font-body-md
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-sm
CSS Variables
font: --q-font-body-sm
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xs
CSS Variables
font: --q-font-body-xs
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xxs
CSS Variables
font: --q-font-body-xxs
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa

Body Strong

CSS Class
q-font-body-xxl-strong
CSS Variables
font: --q-font-body-xxl-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xl-strong
CSS Variables
font: --q-font-body-xl-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-lg-strong
CSS Variables
font: --q-font-body-lg-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-md-strong
CSS Variables
font: --q-font-body-md-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-sm-strong
CSS Variables
font: --q-font-body-sm-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xs-strong
CSS Variables
font: --q-font-body-xs-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-body-xxs-strong
CSS Variables
font: --q-font-body-xxs-strong
font-stretch: --q-font-stretch-body
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa

Heading

CSS Class
q-font-heading-xxxl
CSS Variables
font: --q-font-heading-xxxl
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xxl
CSS Variables
font: --q-font-heading-xxl
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xl
CSS Variables
font: --q-font-heading-xl
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-lg
CSS Variables
font: --q-font-heading-lg
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-md
CSS Variables
font: --q-font-heading-md
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-sm
CSS Variables
font: --q-font-heading-sm
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xs
CSS Variables
font: --q-font-heading-xs
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xxs
CSS Variables
font: --q-font-heading-xxs
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa

Heading Subtle

CSS Class
q-font-heading-xxxl-subtle
CSS Variables
font: --q-font-heading-xxxl-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xxl-subtle
CSS Variables
font: --q-font-heading-xxl-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xl-subtle
CSS Variables
font: --q-font-heading-xl-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-lg-subtle
CSS Variables
font: --q-font-heading-lg-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-md-subtle
CSS Variables
font: --q-font-heading-md-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-sm-subtle
CSS Variables
font: --q-font-heading-sm-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xs-subtle
CSS Variables
font: --q-font-heading-xs-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa
CSS Class
q-font-heading-xxs-subtle
CSS Variables
font: --q-font-heading-xxs-subtle
font-stretch: --q-font-stretch-heading
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
Example
Aa

Metadata

CSS Class
q-font-metadata-xl
CSS Variables
font: --q-font-metadata-xl
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-lg
CSS Variables
font: --q-font-metadata-lg
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-md
CSS Variables
font: --q-font-metadata-md
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-sm
CSS Variables
font: --q-font-metadata-sm
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example

Metadata Strong

CSS Class
q-font-metadata-xl-strong
CSS Variables
font: --q-font-metadata-xl-strong
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-lg-strong
CSS Variables
font: --q-font-metadata-lg-strong
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-md-strong
CSS Variables
font: --q-font-metadata-md-strong
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example
CSS Class
q-font-metadata-sm-strong
CSS Variables
font: --q-font-metadata-sm-strong
font-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size:
line-height:
font-weight:
font-stretch:
letter-spacing:
Example