Hard Edge

Focus Rings That Match a Loud Design

posted by Olu Mensah
September 15, 2026
CSS
Photograph for “Focus Rings That Match a Loud Design”

The default focus ring disappears against thick black borders.

A focus state that fits

Colour is the last thing we add. Getting the structure right in black and white first saves a lot of arguing later.

  • A yellow ring outside the border
  • Two pixels of offset so it never touches
  • The same ring on every control

None of this is new. It is the same advice print designers have given for a century, moved onto screens.

If the mouse gets a lift and a shadow, the keyboard deserves at least that.

We keep a scratch file of small experiments like this one. Most of them go nowhere, but a few end up in every project.

Clients rarely notice these details directly. They notice that the site feels solid, and that nothing jumps around when it loads.

The code is short enough to read in one sitting. That matters, because code you can read is code you can change.

We still get it wrong sometimes. The difference now is that fixing it takes one line instead of an afternoon.

Try it on a small page first, not your whole site. You will learn more from one finished page than a half-finished redesign.

If you build something with this, send it to us. We collect good examples and share the best ones in our reading lists.

We tried this on a client site first, because a real deadline is the only honest test. It held up better than we expected, and the handover notes were half as long as usual.

The trick is to decide once and write it down. Most messy stylesheets are not badly written; they are a record of the same decision being made twenty different ways.

Nothing here needs a framework. A few lines of plain CSS and a template that prints clean markup will get you most of the way.

Leave a Reply

Your email address will not be published. Required fields are marked *