Outline smoothing

The byline chips' blue outline drawn several ways, to find the one that looks smoothest. Smoothness depends on the screen (1x or Retina) and the browser's zoom, so judge it here, not from a screenshot.

Each row is the real chip with only its outline changed: at rest, active (the blue it gets on hover and while open, held still), and a live one to hover. The styles are in page.module.css; the chips themselves are in byline-chips.module.css.

A. Border, 1px

What the chips use now.

Jay GriffinJay Griffin

B. Inset ring, 1px

A box-shadow inside the edge (Tailwind's ring-1 ring-inset). Takes no layout space, like the border.

Jay GriffinJay Griffin

C. Outer ring, 1px

The same ring drawn just outside the edge.

Jay GriffinJay Griffin

D. Inset ring, 1.25px

Box-shadows keep fractional widths that borders round off, which can even out a line that steps.

Jay GriffinJay Griffin

E. Border, 8px radius

The current border with gentler corners, which alias less than tight ones.

Jay GriffinJay Griffin

F. Inset ring, softened

The 1px inset ring plus a half-pixel blur of the same colour, to feather the edge.

Jay GriffinJay Griffin

G. Border, 0.5px

A hairline border; on a Retina screen it's one device pixel, on a 1x screen browsers draw it at 1px.

Jay GriffinJay Griffin