Aura Typography
|
Note
|
Read-Only Properties
Properties which are marked “read-only” aren’t technically read-only. While you can override their values, the intention is to use them only to set values of other properties.
|
Font Family
--aura-font-family-
The font family used for the application. Set on the
<body>element. Defaults to--aura-font-family-instrument-sans. --aura-font-family-systemRead-only-
The system font stack, where the default sans-serif font of the operating system is used.
--aura-font-family-instrument-sansRead-only-
A font stack using the Instrument Sans font by default, and falling back to the system font stack if the web font fails to load.
--aura-font-smoothing-
Set to
autoto disable grayscale/anti-aliased font smoothing and use the default sub-pixel anti-aliasing.
Font Size
--aura-base-font-size-
A number without a unit (e.g.,
16instead of16px) that represents the medium font size in pixels. The default is14.
The base font size is used to compute the following font size properties. The font sizes are defined with the rem unit and rounded to the nearest full pixel size.
--aura-font-size-xsRead-only-
Extra small font size. The default corresponds to
11px. --aura-font-size-sRead-only-
Small font size. The default corresponds to
13px. --aura-font-size-mRead-only-
Medium font size. The default corresponds to
14px. --aura-font-size-lRead-only-
Large font size. The default corresponds to
16px. --aura-font-size-xlRead-only-
Extra large font size. The default corresponds to
18px.
Aura supports the Dynamic Type feature on iOS and iPadOS, which allows the user to set a font size preference in the OS settings.
Line Height
--aura-base-line-height-
A number without a unit (e.g.,
1.5instead of24px), relative to the corresponding font size. The default is1.4.
The base line height is used to compute the following line height properties. The line heights are defined with the rem unit and rounded to the nearest 2 pixels. Each line height is designed to be used together with the corresponding font size.
--aura-line-height-xsRead-only-
Extra small line height. The default corresponds to
16px. --aura-line-height-sRead-only-
Small line height. The default corresponds to
18px. --aura-line-height-mRead-only-
Medium line height. The default corresponds to
20px. --aura-line-height-lRead-only-
Large line height. The default corresponds to
22px. --aura-line-height-xlRead-only-
Extra large line height. The default corresponds to
26px.
Font Weight
Static font weight properties.
--aura-font-weight-regular-
Regular font weight. The default is
400. --aura-font-weight-medium-
Medium font weight. The default is
500. Used for input field labels, buttons, menu/nav/tab items, grid headers, etc. --aura-font-weight-semibold-
Semi-bold font weight. The default is
600. Used for headings and dialog titles.