Skip to main content
reopt Handbook
reopt Handbook
Design Systems for the AI Era

Foundation

Token ArchitectureComponent SpecBuilt-in Accessibility

AI Workflow

Prompt InterfaceDESIGN.md InterfaceAgentic Design Quality ControlWorkflow StrategiesAI-Based Design System EvolutionContext Injection

User Experience

Consistency PatternsInteraction DesignForms and Data Input

Next Interfaces

Agent UI ProtocolsGenerative UISpatial and Multimodal Interfaces

Practice

Execution PlaybookMigration StrategyGovernance and CollaborationCase Studies

Operations

Verification ChecklistUpdate Log
Handbook›Design Systems for the AI Era›Built-in Accessibility
한국어English

Built-in Accessibility

Build accessibility into AI-generated UI by defining ARIA contracts, keyboard behavior, focus management, validation checks, and design-system defaults.

Key takeaways

  • Build accessibility into AI-generated UI by defining ARIA contracts, keyboard behavior, focus management, validation checks, and design-system defaults.
  • Use this chapter as a first-pass operating checklist before changing systems, data, permissions, or customer-facing workflows.
  • Validate platform-specific details against current official docs or internal policy before rollout.

Accessibility should be the default behavior of the system, not an afterthought in generated code. Agents need ARIA contracts, keyboard rules, focus management, and validation checks built into the component layer.

Accessibility Contract

AreaRequired definition
RoleNative element or ARIA role.
NameLabel source and fallback behavior.
KeyboardSupported keys and focus movement.
FocusInitial focus, return focus, trap rules.
Statearia-expanded, aria-invalid, aria-busy, and related attributes.
ErrorHow errors are announced and associated with fields.

Component-Level Defaults

type DialogSpec = {
  role: 'dialog'
  requiresLabel: true
  focusTrap: true
  escapeCloses: true
  returnFocus: true
}

AI should not need to remember these rules. The primitive should enforce them.

Agent Prompt Rules

  1. Prefer native elements before ARIA.
  2. Do not create clickable div elements.
  3. Every icon-only control needs an accessible name.
  4. Every form error needs programmatic association.
  5. Every modal, popover, and menu needs a keyboard interaction contract.

Common Failure Modes

FailurePrevention
Icon button without labelRequire aria-label or visible text.
Focus lost after modal closeComponent returns focus automatically.
Error text not announcedUse aria-describedby and live regions where needed.
Custom select without keyboard supportUse tested primitives.

Verification Pipeline

  • Static linting for accessibility rules.
  • Runtime checks with Playwright and axe-compatible tooling.
  • Keyboard-only smoke tests for core flows.
  • Visual focus-ring snapshots.
  • Review any generated component that bypasses primitives.

Related docs

Interaction Design

Tokenize state feedback, microinteractions, and motion behavior.

Governance and Collaboration

Ownership, change management, and quality gates for AI-ready design systems.

Cmd. /focus

Claude Code Command Master · Changes the visible focus area in fullscreen rendering.

Scenario: Frontend Team

Harness Engineering · Design a harness where browser QA, accessibility, visual state, and design rules are load-bearing.

Cmd. /keymap

Codex Command Master · Inspect and remap TUI keyboard shortcuts.

Component Spec

Component schemas that AI can interpret and generate accurately.

Prompt Interface

Documentation strategies that help AI choose and use the design system correctly.

On this page

Accessibility ContractComponent-Level DefaultsAgent Prompt RulesCommon Failure ModesVerification Pipeline