aboutsummaryrefslogtreecommitdiff
path: root/lib/accessibility/state.ts
blob: 4736ef5d09a7864083d654d10d881fe945fbf080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { writable, type Writable } from 'svelte/store'

/**
 * User override that strengthens the `prefers-reduced-motion` media
 * query. When true, long transitions are trimmed regardless of the OS
 * setting. Applied as a class on `<html>`.
 */
export const reduceMotion: Writable<boolean> = writable(false)

/**
 * User override that brightens the foreground palette for readers who
 * need extra contrast. Applied as a class on `<html>`.
 */
export const highContrast: Writable<boolean> = writable(false)