Limited supportUse with care and confirm browser support before shipping it to all users.

Overview

The ui-serif, ui-sans-serif, ui-monospace and ui-rounded values for the font-family CSS property use device-default user interface fonts for text. It is useful when you need more deliberate control over presentation or behavior in a focused part of the interface.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
css.properties.font-family.ui-monospace
13.1
13.4
CSS property
ui-rounded
13.1
13.4
ui-sans-serif
13.1
13.4
ui-serif
13.1
13.4
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
.serif-ui { font-family: ui-serif, serif; }
.mono-ui { font-family: ui-monospace, monospace; }
.friendly { font-family: ui-rounded, system-ui; }

Live demo

ui-serif

CSS Ui-serif demo.

PreviewFullscreen

ui-monospace

CSS Ui-monospace demo.

PreviewFullscreen

ui-rounded

CSS Ui-rounded demo.

PreviewFullscreen

Use cases

  • Refine text rhythm

    Use UI fonts to make long-form reading or dense interface copy easier to scan and understand.

  • Support language nuances

    Apply UI fonts when different writing systems or typographic conventions need more deliberate control.

Cautions

  • Test UI fonts in the browsers you support, especially if it changes layout, text handling, or interaction behavior.
  • Plan a fallback or acceptable degradation path when support is still limited.

Accessibility

  • Check readability with zoom, narrow screens, and mixed-language content so text remains understandable.

Powered by web-features