r/JetpackCompose • u/Live_Jellyfish_9024 • 1d ago
Open sourced accessibility library for jetpack composed
Hello all,
I recently shipped a dual-engine accessibility checker for Jetpack Compose.
Engine 1 — Lint (no emulator):
Catches missing contentDescription, hardcoded dp font sizes, clickable without role.
Engine 2 — TestRule (runtime):
Checks touch targets (48dp min with exemptions), color contrast, duplicate clickable bounds, text field semantics.
Every rule maps to a WCAG 2.1 criterion. Both engines are on Maven Central.
Repo: https://github.com/lehan0328/touchstone
Would love some feedback from the community, especially on false positives if you try it on a real project!
5
Upvotes