Skip to content

Typography#

The Figma brand exports supply Eufemia's font families, body weights, font sizes and line heights. Use the existing --font-family-*, --font-weight-*, --font-size-* and --line-height-* CSS properties. Light and dark mode use the same typography values.

The sync preserves the existing family fallbacks and brand aliases. It updates existing CSS declarations, so it adds no CSS properties or font files to applications. Heading and lead weights keep their existing theme rules. Bold, light, display, monospace and native sizes also keep their code defaults. See the typography mapping for details about which Figma values supply each property.

Responsive typography uses these brand values at Eufemia's existing breakpoints. Try the interactive demo, or see the responsive font sizes and responsive line heights used by <Typography.Context responsive>.

One brand stylesheet per page#

Each brand stylesheet sets its font sizes and line heights on :root, so that apps can override them there. When a page loads the stylesheets of several brands, the brand that loads last sets the sizes for the whole page. For example, Carnegie's larger xx-large size then also applies to content inside <Theme brand="ui">. Colors and font families still follow each Theme.

Suggest an edit
Eufemia · /web/styling-and-themes/design-tokens/typography/ · Version 11.18.1