← Back to release summary

CSS prefers-bold-text media query

Category
CSS
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Detects whether a user has requested bold text in their operating system's accessibility settings via the prefers-bold-text CSS media query. The media query evaluates to bold when the user has enabled system-wide bold text (such as Android's Bold text accessibility toggle) and no-preference otherwise. This allows web developers to adapt font weights, variable font grade axes, or typography tokens to improve text legibility for users who prefer bold text without breaking existing page layouts or visual hierarchy.

Motivation

Mobile operating systems such as Android and iOS offer a system-wide Bold Text accessibility setting that many users enable to make on-screen text easier to read (roughly 5.2% of Android users and 13% of iOS users, per https://appt.org/en/stats/bold-text). Today, the web platform provides no standard way for pages to detect this setting, so switching from the bolded system UI to web content leaves users with thin, hard-to-read text. At the same time, browsers cannot automatically force bold weights onto all web pages without breaking existing layouts and causing text to overflow or clip. Providing the prefers-bold-text media query lets web developers opt in and adapt their typography—whether by increasing font weights, adjusting a variable font's grade (GRAD) axis to thicken text without changing its width, or switching to a more legible font family while keeping full control over their page layout.

Standards & signals

Ecosystem

Explainers: https://github.com/gregoryd/prefers-bold-text/blob/main/prefers-bold-text%20Explainer.md

View on chromestatus.com