Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 40 seconds

How should a button react when you press it?

The rule

When a button is pressed, scale it to 0.97 and darken it one step within 100 ms, then let it spring back as fast on release.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the interface I share for buttons that give no answer when they are pressed. Give every button a pressed state, and change nothing else.

1. Scale: while the button is pressed, scale it to 0.97 (scale: 0.97 on :active).
2. Fill: while it is pressed, darken its background one step, the way a white button goes from #ffffff to #d4d4d8.
3. Timing: reach the pressed look within 100 ms and spring back as fast on release: transition: 100ms ease-out on the button itself.

Keep the content, the features, the layout and every resting colour. When you are done, list each button you changed with its resting and pressed scale and fill.

More prompts like this in the free guide 

The problem

The checkout card in the video has one white button, Pay £24.00. It has no pressed state: its CSS says transition: none, and its :active rule is empty. Tap it and nothing changes. A tap gets no answer until the next page loads, so until then nobody can tell whether their tap landed.

The fix

  1. Scale it to 0.97 on press. The button shrinks to 97% of its size, measured from its resting edge.
  2. Darken it one step. The white fill, #ffffff, becomes #d4d4d8 while the button is held.
  3. Do both within 100 ms, and spring back as fast. Put transition: 100ms ease-out on the button, so it goes in and comes back in the same 100 ms on release.

Why it works

Pressing should feel like pressing. The small shrink and the darker fill are the button answering the finger, and because they arrive within 100 ms the answer feels instant. That instant answer tells people their tap landed, long before the next page loads. The change is small on purpose: at 0.97 the button keeps its place and its words, so nothing around it moves. Coming back as fast on release closes the press, so a quick tap still shows the whole movement, in and back.

How to apply it

Give every button an :active rule with scale: 0.97 and a background one step darker than its resting fill, like .pay:active { scale: 0.97; background: #d4d4d8; }. Add transition: 100ms ease-out to the button itself, not to the pressed rule, so the return is as quick as the press. Then tap each button on a phone and check that it answers the moment your finger lands.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on interaction

All 8 lessons on interaction