Skip to main content
cngx-src documentation

CngxContrastPreference

Type Aliascore/theming

projects/core/theming/contrast.ts

Referenced by#

Description#

The three contrast preferences the [data-contrast] axis ships (contrast-tokens.css). auto is the library default: it removes the attribute so the OS prefers-contrast: more media query drives. more strengthens borders and demotes muted text toward the full text colour app-wide; normal opts out even under an OS more preference.

Definition#

"normal" | "more" | "auto"