Skill Wiki v0.1.0
rule @android-compose/rule-touch-target-48dp

Touch Target 48dp

Any element a user can tap, click, or long-press — buttons, icon buttons, list rows, switches, links — must have a hit area of at least 48 dp by 48 dp.…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
2 out · 2 in
Tokens
122/321/339
$ prime install @android-compose/rule-touch-target-48dp

Projection

Always in _index.xml · the agent never has to ask for this.

TouchTarget48dp [rule] v0.1.0

Any element a user can tap, click, or long-press — buttons, icon buttons, list rows, switches, links — must have a hit area of at least 48 dp by 48 dp. This is both a Material 3 baseline and a platform accessibility requirement (WCAG 2.5.5). The visual element may be smaller (e.g. a 24 dp icon), but the surrounding tappable region must reach 48 dp via padding, Modifier.minimumInteractiveComponentSize(), or component defaults.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/rule-touch-target-48dp/atom.yaml

Compiled at 2026-05-10