Skip to content

$hasContrastPreference ​

ts
const $hasContrastPreference: Signal<boolean>;

A signal indicating whether the user has any contrast preference set.

Example ​

ts
import { $hasContrastPreference } from "@monstermann/signals-web";

$hasContrastPreference(); // false