// WCAG 1.4.3 — High contrast via CSS invert + hue-rotate.
// Uses the shared filter-state module so contrast and grayscale can be active simultaneously.
import { setFilter } from './filter-state';

export function toggle(on: boolean): void {
  setFilter('contrast', on ? 'invert(1) hue-rotate(180deg)' : null);
}
