Build focus states keyboard users can actually see
Set the colour, width, gap and glow of a focus ring, then tab to the two sample buttons to see it on a light and a dark background. The tool writes the CSS for you to copy.
Building a focus ring that survives contact with real browsers
Focus Ring Architect builds the CSS for a focus indicator that stays visible against whatever background it lands on. This guide is for anyone shipping components who has watched a keyboard user lose track of where they are on a page. The tool works out no contrast ratio, so check the ring colour against each background it will sit on with a contrast checker.
-
Set the element states
Note which interactive elements, buttons, links, form fields, need a visible ring and what background colour sits behind each one.
-
Shape the ring
Adjust the ring's colour, thickness and offset until it stays clear of the element's edge on every background you're testing against.
-
Check the contrast and copy the CSS
Check the ring colour against its background with a contrast checker, aiming for at least 3:1, then copy the CSS into your stylesheet.
Focus Ring Architect
Build a two layer focus ring: a transparent outline that keeps a focus indicator visible in Windows High Contrast Mode, plus a box shadow ring on top. Set the gap colour to match whatever surface the element actually sits on, then tab to the two preview buttons below to see the real result.
Generated CSS
See your focus ring the way a keyboard user will, before you ship it.
Focus Ring Architect lets you set a ring's colour, width and glow, and the size and colour of the gap between the ring and the element. It's built for anyone shipping a keyboard-navigable interface, from a single button to a full design system. The preview shows you what the ring will look like, not whether it meets a specific accessibility standard, so it's worth checking the numbers against your own criteria before you rely on them.
No sign-up, works on any device, always free.
Popular Tools
CSS Variable Architect
An interactive CSS Variable Architect, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Variable Architect
True-Contrast Smart Palette
An interactive True-Contrast Smart Palette, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / True-Contrast Smart Palette
CSS Unit Converter (px / rem / em / vw / vh)
An interactive CSS Unit Converter (px / rem / em / vw / vh), free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Unit Converter (px / rem / em / vw / vh)
Aspect Ratio Calculator
An interactive Aspect Ratio Calculator, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / Aspect Ratio Calculator
CSS Grid Architect
An interactive CSS Grid Architect, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Grid Architect
CSS Specificity Calculator
An interactive CSS Specificity Calculator, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Specificity Calculator