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-xxlfont-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-xlfont-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-lgfont-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-mdfont-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-smfont-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-xsfont-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-xxsfont-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-strongfont-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-strongfont-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-strongfont-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-strongfont-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-strongfont-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-strongfont-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-strongfont-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-xxxlfont-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-xxlfont-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-xlfont-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-lgfont-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-mdfont-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-smfont-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-xsfont-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-xxsfont-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-subtlefont-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-subtlefont-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-subtlefont-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-subtlefont-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-subtlefont-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-subtlefont-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-subtlefont-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-subtlefont-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-xlfont-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-lgfont-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-mdfont-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-smfont-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-strongfont-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-strongfont-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-strongfont-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-strongfont-stretch: --q-font-stretch-metadata
Equivalent CSS
font-size: line-height: font-weight: font-stretch: letter-spacing:
Example