Rerun

Primitives and controls

Buttons, badges, icons, switches, cards, tables, the small pieces everything else is built from.

Button

Six variants, eight sizes. The relief comes from the --relief-* shadow tokens, which invert between themes: light falls from above in light mode and from below in dark.

Variants

Every variant at the default size, with and without a glyph.

Button variant

Sizes

size="xs"
size="sm"
size="default"
size="lg"
size="icon-xs"
size="icon-sm"
size="icon"
size="icon-lg"

States

Disabled drops to 40% opacity. Loading swaps the label for a nine dot grid rather than a spinner.

disabled / loading / highlight

highlight injects a BorderBeam inside the button with outset: 1, so the ring lands on the 1px border every variant carries instead of drawing a second line just inside it.

Badge

Every status pill in the product comes from here. A badge is a BorderBeam ring plus a tinted label, so its eight tones are the beam's eight tones.

Tones

soft fill, ring pattern, static. The default a status pill lands on.

brandwhiteneutralgreenredorangecyanyellow
tone

Sizes and fills

size="xs"
softoutlinemedia
size="sm"
softoutlinemedia
size="md"
softoutlinemedia
size="lg"
softoutlinemedia

media is the fill for a badge sitting on an image or a video: a translucent black plate with a forced white label, so it stays readable whatever is behind it.

Patterns and motion

ring draws a full outline, arcs breaks it into four corner segments.

Ring
pattern=ring
Arcs
pattern=arcs
Running
animated
New
shimmer

Leading and trailing

Slots rendered outside the shimmer, for a glyph, a count or an arrow.

PublishedIn reviewFailedRuns12
leading / trailing

IconBadge

The round sibling: a 20px ring with a centred glyph, or a spinner when there is no glyph to show.

IconBadge tone

Icon

The boxed glyph. A rounded tile carrying a faint grid, a radial mask, a glint, and a static BorderBeam whose angle is derived from the React id so two neighbours never share an outline.

Sizes

Five boxed sizes plus fill, which drops the box entirely and lets the glyph take a share of whatever cell holds it.

size="xs" · 20px
size="sm" · 32px
size="md" · 40px
size="lg" · 48px
size="xl" · 64px
size="fill"

Glyphs

Every glyph comes from the Nucleo outline pack through the lucide compatibility shim. Never a hand drawn SVG, never an emoji.

Icon icon={...}

Brand marks

A service logo comes in through src instead of icon. Stored in color, with the tone picked in the URL query rather than a column.

Icon src={...}

Tones

The tone colors the ring, not a CSS border: the beam is an overlay and has no border of its own.

tone="neutral"
tone="brand"
tone="green"
tone="red"

A logo whose mark is close to the background is whitened by an adaptive filter rather than recolored. Zoom to 4x to read the grid, the radial mask and the glint, which are invisible at 40px.

Controls and surfaces

The smaller pieces: toggles, grouped inputs, scroll edges, hatching and the two loaders.

Switch

A 20px track with an emerald thumb, its own glow and a green BorderBeam when it is on.

Switch

SegmentedControl

The pill used for a small exclusive choice. The active segment carries a running arcs beam.

SegmentedControl

InputGroup

An input that carries addons inside its own border, so a prefix, a unit or a button reads as part of the field.

addon inline-start
key
addon inline-end

Collapsible

The disclosure behind every expandable row: a tool call, a reasoning block, a settings group.

Collapsible

Scroll fades

ScrollFade fades the vertical edges of a scroller, HScrollFade does the same horizontally and adds arrows on the sides you can still travel.

Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
ScrollFade
1
2
3
4
5
6
7
8
9
10
HScrollFade

Stripes

Diagonal hatching at 65 degrees, masked so it dies out on one or several edges. It marks a surface as inert: an idle Box, a disabled row.

fade="bottom"
fade="top"
fade="right"
fade="vertical"
fade="edges"

The hatch is painted with --stripes-ink. Tighten band and period on a short surface, where the default pitch reads as three fat blocks instead of a texture.

Loaders

Two, and only two. The spinner is the Nucleo silhouette redrawn in currentColor, the dot loader is a grid of dots playing a frame list.

Spinner
DotLoader 3x3
DotLoader 3x3 at scale

Card and Table

The two containers everything else is laid out in.

Card

Header, title, description, an action pinned to the top right, content and footer. Two sizes.

Support Triage
Reads new tickets, labels them and drafts a reply.
Ran 41 times this week, 3.1k tokens on average.
Card
Release Notes
Turns merged pull requests into a weekly post.
Scheduled every Friday at 17:00.
Card size="sm"

Table

Plain rows, a hairline between them, a muted header. Status goes through the shared Badge, never a hand styled span.

CoworkerStartedDurationTokensStatus
Support Triage09:0214s3.1kDone
Revenue Reporter09:002m 08s48.7kRunning
Release Notes08:4431s12.4kWaiting
Inbox Sweeper08:304s0.9kFailed
Table

Stacked and scrolled cards

Two ways to show a set of cards without a grid.

CardStack

A deck that fans out and flicks the front card away on a spring. It turns on its own every five seconds.

Support TriageReads new tickets, labels them, drafts a reply.
Revenue ReporterPulls yesterday from Stripe and posts the numbers.
Release NotesTurns merged pull requests into a weekly post.
Inbox SweeperArchives what nobody will ever answer.
Lead ScorerRanks new signups and tells sales who to call.
CardStack

CardCarousel

A snapping row with edge fades and round arrows that only appear in the directions still left to scroll.

CardCarousel

Your first coworker is
three minutes away

Start for free