Skip to content

Guidelines · Shape

Cut corners, never rounded ones

Bevel tokens

bevel-sm, 8px cut

bevel-md, 14px cut

bevel-lg, 22px cut

The focus ring is never clipped

The cut corners are made with clip-path, a CSS rule that trims an element to a shape. It trims everything painted on that element, including the focus ring (the outline that shows where the keyboard is) if it's drawn as the element's own outline. Phase 2's research into similar systems (BUILD-LOG.md, the augmented-ui finding) flagged this as a real risk for any system shaped with clip-path. The fix is to put the ring on an untrimmed wrapper around the shape, never on the trimmed shape itself. Press Tab to reach the button below. The ring draws a clean rectangle around the bevelled shape instead of a clipped fragment of one.