Aura Typography
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. Assign it to
--aura-font-familyto use it; don’t redefine the stack itself. --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. Assign it to
--aura-font-familyto use it; don’t redefine the stack itself. To use a different font, set--aura-font-familyto your own stack. --aura-font-smoothing-
Set to
autoto disable grayscale/anti-aliased font smoothing and use the default sub-pixel anti-aliasing. Aura leaves this property unset, so its fallbacks apply:antialiasedfor-webkit-font-smoothingandgrayscalefor-moz-osx-font-smoothing.
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, which are read-only. The font sizes are defined with the rem unit and rounded to the nearest full pixel size. To scale them all, set --aura-base-font-size rather than any of the individual properties.
--aura-font-size-xsRead-only-
Extra small font size. The default corresponds to
12px. --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, which are read-only. 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. To change them all, set --aura-base-line-height rather than any of the individual properties.
--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.