Tool Hub

Focus Ring Tester

Outline · box-shadow focus style preview

CSS selector

Keyboard only (recommended)

Focus a control below (click or press Tab) to preview its focus ring.

CSS
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

How to use

  1. Adjust outline width, offset, and colour using the numeric inputs and colour picker.
  2. Choose outline style: solid, dashed, or dotted.
  3. Optionally enable box-shadow and set its spread and colour for a dual-ring effect.
  4. Tab into the preview button or input to see the focus ring rendered live.
  5. Copy the generated CSS to use in your own stylesheet.

Examples

  • Setting width 3px, offset 2px, colour #0066FF, style solid produces outline: 3px solid #0066FF; outline-offset: 2px; visible on the preview button when focused.
  • Enabling box-shadow with spread 4px and colour rgba(0,102,255,0.4) adds a soft glow ring around the outline.

Verify outputs before using in production. No warranty — see Terms.