Widget demo

Accessibility widget, drop-in ready.

Portable accessibility controls you can add to any page. No external CSS, no build step, just include the script.

What it covers

  • Namespaced classes (hw-ada-*) so styles do not collide.
  • Large text, spacing, high contrast, link underline and highlight.
  • Reduce motion, grayscale or invert for visual comfort.
  • Reading guide bar and screen reader outlines.
  • Reset restores defaults; preferences persist via localStorage.

How to add it

Copy the script into your project and include it near the end of body.

<script src="/js/ada-widget.js" defer></script>

Optional: set your own storage key before loading.

<script>
  window.hwAdaConfig = { storageKey: 'mySiteAdaPrefs' };
</script>

Live content to try

This paragraph and the links below respond to every toggle. Try high contrast, underline, or highlight on these links: WCAG and WebAIM.

Large text and spacing make long reads calmer. Reduce motion cuts transitions. The reading guide follows your pointer.

Quick table

Feature What it does Status
Large text Boosts base font size and line-height. Ready
Reading guide Highlights the line under your cursor. Ready
Reset Clears preferences and restores defaults. Ready

Reduce motion preview

Toggle "Reduce motion" in the widget to pause the shimmer and floating orb below.

API hooks

Try the widget

Use the "Accessibility" button floating at the bottom-right. Every option applies to this page immediately.

Related ADA/WCAG resources