Skip to main content
cngx-src documentation

CNGX_CONTRAST

Tokenv0.1.0

InjectionToken<WritableSignal<CngxContrastPreference>>

Description#

Holds the app-wide contrast preference as a WritableSignal. Read it (and write it at runtime) through injectContrast; install the root reflector with provideContrast. Defaults to auto when no provideContrast() is present so an injected signal is always available.

Type#

InjectionToken<WritableSignal<CngxContrastPreference>>

Provided in#

'root'