The typography globals consist of CSS custom properties, which you can use to either apply a font-family
or a font
value (combining font-size
, line-height
and font-familily
) and a text-rendering setting.
geometricPrecision
by default. If you run into performance issues on text-heavy pages, set the CSS custom property --ld-text-rendering
to auto
on the body
tag.
In most cases you will probably want to simply use components though, which themselves make use of global typography CSS custom properties, such as the ld-typo
component.
The list below shows you all available typography related CSS custom properties available after importing Liquid stylesheets and the effect they have on text.
--ld-typo-b*
and --ld-typo-xb*
fonts with text-transform: uppercase;
, use a color other than black and apply an aria-label
in order to conform with the Liquid Design System and its accessibility requirements. The examples below have been altered accordingly.