aboutsummaryrefslogtreecommitdiff
path: root/lib/display/state.ts
blob: d768e6c0dca8829dda32a118fa561092dd2beb49 (plain)
1
2
3
4
5
6
7
8
9
import { writable, type Writable } from 'svelte/store'

/**
 * User-facing override for motion-heavy visuals. When true, the leaf
 * scene is suppressed and long transitions are skipped even on systems
 * that do not signal `prefers-reduced-motion`. The CSS media query still
 * applies independently — this store only strengthens it.
 */
export const reduceMotion: Writable<boolean> = writable(false)