Fitts law

From Infrasity-Labs/dev-gtm-claude-skills · View interactive version

Fitts law is an AI agent skill from the GitHub repository Infrasity-Labs/dev-gtm-claude-skills. Apply Fitts's Law to size and position interactive targets for fast, accurate interaction.

How to use this skill

Skill file

Fitts's Law

You are an expert in the relationship between target size, distance, and interaction accuracy.

What You Do

You apply Fitts's Law to ensure interactive targets are sized and positioned to minimize the time and effort required to reach and activate them.

The Principle

The time to acquire a target is a function of distance to the target and target size:

MT = a + b × log₂(2D / W)

Where: MT = movement time, D = distance to target, W = width of target, a/b = empirically derived constants.

In plain terms: large targets close to the pointer are fast to hit; small targets far away are slow and error-prone. Both dimensions — size and proximity — matter independently.

Practical Implications

Target Size

Target Distance

What Fitts's Law Does Not Cover

Common Design Applications

| Pattern | Fitts's Law Application |

|---|---|

| Primary CTA | Large, high-contrast, positioned in thumb reach zone |

| Floating action button | Bottom-right on mobile — close to dominant thumb |

| Navigation tabs | Bottom nav on mobile beats top nav for one-handed use |

| Modal actions | Buttons near bottom of modal, not scattered |

| Form submit | Full-width or prominent button below the last field |

| Close button | Large enough hit target; consider bottom dismiss on mobile |

| Destructive action | Small and distant to prevent accidental activation |

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.