diff options
| author | Bobby <[email protected]> | 2026-04-22 09:19:50 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-04-22 09:19:50 +0530 |
| commit | 7d21ed8f09e60d3ed962bedcf304a5e17e07b2d8 (patch) | |
| tree | 85772db514216c5d71f7963b7a730b164f09bff6 /lib/accessibility | |
| parent | 3184ffcec523d19dafa11955778a2e5dafc23843 (diff) | |
| download | hollowdark-7d21ed8f09e60d3ed962bedcf304a5e17e07b2d8.tar.xz hollowdark-7d21ed8f09e60d3ed962bedcf304a5e17e07b2d8.zip | |
Rebuild Settings with Reading, Sound, Accessibility, and About sections per the mockup
Diffstat (limited to 'lib/accessibility')
| -rw-r--r-- | lib/accessibility/state.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/accessibility/state.ts b/lib/accessibility/state.ts new file mode 100644 index 0000000..4736ef5 --- /dev/null +++ b/lib/accessibility/state.ts @@ -0,0 +1,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) |
