Skip to content

Aeris

Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Live, interactive React component · light themeResponsive

About the Aeris Code Block

CodeBlock is code on a soft panel with a hairline and 12 px corners that follows the theme (the soft grey in light, the dark surface at night): a head with the filename or language and a copy button, optional line numbers, and marked lines on a pale wash behind an accent edge. The code is plain text in the mono face (no highlighting); long lines scroll inside the panel, which is a focusable region named by the filename. CopyButton copies any value and announces "Copied"; iconOnly makes it a round icon button. Client component. In a custom grid, give the grid grid-cols-1 (or the cell min-w-0), or on phones the column grows to the longest line and the page scrolls sideways.

It is part of Aeris: white pages, soft grey cards, one electric blue. The style’s 92 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.

The same piece, drawn for a different look. Open one to compare it live.

Bavaria Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Form & Field Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Glass Meridian Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Grove Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Neo-Brutal Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Noir Aurora Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Soft Bento Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.

Swiss Tech Mono Code Block

A code panel with a filename, line numbers, marked lines and a copy button; no syntax highlighting.