A Nuxt module that provides real-time accessibility feedback and automated testing right in your browser during development.
Nuxt Accessibility integrates directly into the Nuxt DevTools, giving you actionable insights to fix WCAG violations, improve accessibility compliance, and ensure your application is usable by everyone without ever leaving your development environment.
To install and add the module, you can run the following command:
npx nuxt module add a11y
The module is now automatically installed and added to your nuxt.config.ts. Now you can open your Nuxt app, go to the DevTools, and click the Nuxt a11y icon to get started.
Nuxt Accessibility provides a rich, interactive UI inside the Nuxt DevTools panel.

A central hub showing:

Each violation displays:

Nuxt a11y uses axe-core to perform comprehensive accessibility audits. The module automatically:
The module hooks into your application to provide interactive debugging:
<html> and <body> tags with helpful notificationsEnable optional real-time scanning that listens to user interactions:
export default defineNuxtConfig({
modules: ['@nuxt/a11y'],
a11y: {
// Enable/disable the module (default: true in dev mode)
enabled: true,
// Auto-highlight all violations when detected
defaultHighlight: false,
// Log violations to browser console
logIssues: true,
// Configure axe-core
axe: {
// axe-core configuration options
options: {},
// axe-core run options
runOptions: {},
},
},
})
enabledbooleantrue (in development mode only)Enable or disable the accessibility module. By default, the module only runs in development mode.
defaultHighlightbooleanfalseAutomatically highlight all accessibility violations when they are detected. When enabled, all violations on the current page will be pinned and highlighted with numbered badges.
a11y: {
defaultHighlight: true, // Auto-highlight all violations
}
logIssuesbooleantrueControls whether accessibility violations are logged to the browser console. When enabled, violations will be logged with appropriate styling and severity levels.
a11y: {
logIssues: false, // Disable console logging
}
axe.options & axe.runOptionsobject{}Configure the underlying axe-core runner. See the axe-core documentation for available options.
a11y: {
axe: {
options: {
// Customize which rules to run
rules: {
'color-contrast': { enabled: true },
},
},
runOptions: {
// Customize how axe-core runs
runOnly: ['wcag2a', 'wcag2aa'],
},
},
}
# Install dependencies
pnpm install
# Generate type stubs
pnpm dev:prepare
# Develop with the playground
pnpm dev
# Build the playground
pnpm dev:build
# Run ESLint
pnpm lint
# Run Vitest
pnpm test
pnpm test:watch
# Release new version
pnpm release