Marcelo Paiva

Tools

WTFocus

Design a focus indicator and see, while you are still choosing, whether it passes WCAG 2.2. Then copy the CSS, or a link that opens these exact settings for whoever has to build them.

Rebuilt in 2026 from wtfoc.us (opens in a new tab), which was written against the 2.2 draft. Concept by Claudio Luis Vera, design by Marcelo Paiva, and the original code by Marcello Paiva. The case study is under Work.

Focus Styles

Focus Preview

Link

Focus trap keeps Tab inside these examples, the way a modal does. Escape lets go.

WTFocus

This is a workbench with two halves: the controls on the left, and what they make on the right.

From top to bottom

  1. At the top, the site header: my name, which goes home, then links to Writing, Work, Signal, Tools and Resume, then Settings, where you choose the drawings, light or dark, and movement.
  2. The WTFocus heading, what the tool does, and where it came from.
  3. Focus Styles: the controls. Color, background, width, offset and style for a focus indicator, an option for reduced motion, and the CSS it makes, with buttons to copy the CSS or a link.
  4. Focus Preview: to the right of the controls on a wide screen, under them on a narrow one. It checks your indicator against the Web Content Accessibility Guidelines (WCAG) 2.2 as you change it.
  5. Under the checks, sample controls to tab through: an input, a select, a checkbox, a radio button, a link and a button. A focus trap option keeps Tab inside them.
  6. At the bottom, the footer: a note on how this site is built, links to Illustrations, Pens, Concepts and Accessibility, this Describe this page button, then GitHub, LinkedIn and email.

What you can do here

Design a focus indicator, check that it passes, and copy its CSS.