Outline Generator

Your workspaceProcessed on your device

Outline and border preview

Outline
Outline sample
Border
Border sample

Focus Start here, then press Tab to test the ring.

Contrast against surrounding fill
6.89 to 1
Contrast against control fill
7.26 to 1
Outline
Comparison border

Generated stylesheet

A few things to know.

Outline widths range from 0 to 14 px and offsets from −14 to 18 px. Colors are sRGB. The focus tester models a solid ring using the entered box and background colors. Rounded outlines use estimated area. Verify clipping and the actual keyboard experience in your application.

  1. Enter an outline style, width and color. Set the offset to move the stroke toward or away from the button’s edge.
  2. Compare the outline and border samples. Open Focus indicator tester to check a solid ring against its surrounding colors and measure the area changed on focus.
  3. Choose Keyboard focus or Always visible, then copy or download the stylesheet.