Skip to main content
cngx-src documentation

injectContrast

Functioncore/themingv0.1.0

projects/core/theming/contrast.ts

Description#

Read the app-wide contrast signal in an injection context. The returned signal is writable, so injectContrast().set('more') strengthens borders and muted text across the whole document reactively; set('auto') hands control back to the OS preference.

Signature#

injectContrast()

Returns#

WritableSignal