Most accessibility overlays promise to magically fix your site. This isn’t that.
This is a small floating panel that gives your visitors controls they actually want — font sizing, contrast modes, a dyslexia-friendly font, animation pausing, text-to-speech, and more. Think of it as the browser’s built-in accessibility settings, just easier to find.
Real accessibility means semantic HTML, proper ARIA, keyboard navigation, and alt text baked into your code. No widget replaces that work. We support the Overlay Factsheet and built this as a complement, not a substitute.
⚠️ This widget does not guarantee compliance with WCAG, ADA, Section 508, or any other standard. See the full DISCLAIMER.
Drop this into your HTML and you’re done:
<script src="https://cdn.jsdelivr.net/gh/ifrederico/accessible-web-widget@latest/dist/accessible-web-widget.min.js"></script>
It initializes on page load. No config needed.
To pin a specific version:
<script src="https://cdn.jsdelivr.net/gh/ifrederico/accessible-web-widget@1.1.4/dist/accessible-web-widget.min.js"></script>
Or self-host — just download dist/accessible-web-widget.min.js and serve it yourself.
Plus: 10 languages, persistent settings, system preference detection, keyboard accessible, and mobile friendly.
Everything below is optional. The widget works with zero config.
<div data-acc-position="bottom-right"></div> <!-- default -->
<div data-acc-position="bottom-left"></div>
<div data-acc-position="top-left"></div>
<div data-acc-position="top-right"></div>
<div data-acc-offset="24,24"></div> <!-- x, y in pixels -->
<div data-acc-size="44"></div> <!-- px, rem, or any CSS unit -->
<div data-acc-lang="en"></div>
<div data-acc-icon="default"></div> <!-- default | icon-2 | icon-3 | icon-4 -->
TTS uses native browser voices. When enabled, visitors click any text block to hear it read aloud.
<script>
window.AccessibleWebWidgetOptions = {
ttsNativeVoiceName: "Samantha", // best-effort match
ttsNativeVoiceLang: "en-US",
ttsRate: 1.0, // 0.5 – 2.0
ttsPitch: 1.0 // 0 – 2.0
};
</script>
Add ?acc-dev=true to any page URL to get inline annotation markers and a full accessibility report powered by axe-core. Useful for development, not meant for production.
Chrome/Edge 88+, Firefox 78+, Safari 14+, iOS Safari 14+, Chrome for Android.
Want to help? See CONTRIBUTING.md for setup, testing, and how to submit a PR.
Open an issue — include your browser/version, repro steps, expected vs. actual behavior, and screenshots if you can.
MIT — see LICENSE.