Skip to main content
box a11y runs your app and checks its accessibility tree and screen image. It reports unlabeled controls, small touch targets, low-contrast text and duplicate control labels.
The launch screen is always checked first. Each --screen LABEL taps the matching control, then checks the screen that opens. Repeat the option to visit a flow one screen at a time. The command reuses this folder’s open box run session, or starts and stops a session for the audit. A session it reuses stays open; stop it with box stop when you are done. The report uses a 44 by 44 point minimum unless you pass --min-target. Text contrast is measured from the two most frequent pixel colors inside each text element’s frame. The default WCAG threshold is 4.5:1; elements at least 24 points high use 3:1. Duplicate labels are warnings; missing labels, undersized controls and low contrast are errors. Text output shows an issue table. --json prints screen reports and counts as JSON. The report and screenshots are saved in .box/out/<run-job-id>/a11y.json and a11y-<screen>.png. An audit with errors exits 1, and so does a build that fails or a --screen label that cannot be tapped. An invalid option exits 2. Each issue includes a platform-specific fix hint. For example, add .accessibilityLabel("Save") to a SwiftUI control or Modifier.minimumInteractiveComponentSize() to a Compose control. A screen with two small “Open” buttons, a small icon button and gray text reports:
The default blue “Open” buttons on a white background measure 3.52:1, below the 4.5:1 minimum for text under 24 points.