Skip to content

Preferred Contrast

Reactive prefers-contrast media query.

🎬 Usage

<script>
    import {preferred_contrast} from "sveltecore"

    const contrast = preferred_contrast()
</script>

👩‍💻API

Returns

A subscribable store with the value of the prefers-contrast media query.

🧪 Playground


Last update: 2022-11-13