Skip to main content
cngx-src documentation

withContrast

Functioncore/themingv0.1.0

projects/core/theming/a11y-preferences.ts

Description#

Set the initial contrast preference the aggregator installs. Omitting this feature leaves contrast at its auto default, which follows the OS prefers-contrast query.

Signature#

withContrast(value: CngxContrastPreference)

Parameters#

Returns#

CngxA11yPrefFeature