Iconography

A distinctly Fern icon set that was crafted with meticulous care.

Reach for it when
  • Every icon comes from @/components/icons. If the glyph you need isn't there, draw it to the style below or ask a designer.
  • The Fern Agent is always AgentMark, never a sparkle.

The short version

If you read nothing else on this page, read these.

Do. Mark the Fern Agent with AgentMark, always.
Don't. Stand in a sparkle, a robot or an “AI” label for the agent.
Do. Keep one stroke across the set, so a row of icons reads as one family.
Don't. Thin or thicken one icon to fix its density. Fix the drawing instead.

Catalog

Every glyph and logo the barrel exports. Pick one to see it on its grid, at each size and in a button, with its import.

Glyphs · 192
Logos · 7

Icon style

Small technical diagrams with a friendly finish: one 16px grid, one 1.25px stroke, built from horizontals, verticals and 45° lines.

On the grid

The dashed outlines are the optical keyshapes every drawing is fitted to: square, circle, horizontal and vertical.

BookOpen · horizontal
Globe · circle
Settings · circle
Users · cut overlap
Sdk · horizontal
Grid
16 × 16
Stroke
1.25px, round caps and joins
Corner
R 1.25 × θ / 90°
Clear space
≥ 1.5px between shapes
  • Don't mix stroke weights inside one icon or between icons.
  • Don't add fills, gradients or a second color.
  • Don't redraw a brand logo to match the grid; scale the original. The only exception is a band mark (Pylon, Linear), drawn on its bands' centrelines.
  • Don't use a sparkle, robot or generic 'AI' icon for the agent; it is always AgentMark.
  • Don't scale an icon with CSS to fix its optical size; fix the drawing.

Creation guidelines

The full brief for drawing a new icon: grid, stroke, corners, construction, spacing, brand marks and the QA checklist.

components/icons/GUIDELINES.md
# Dashboard icon guidelines **This file is the single source of truth for dashboard icons**: using them, adding them, drawingthem and reviewing them. Other docs (`CLAUDE.md`, `AGENTS.md`, agent skills) only link here, so whenan icon rule changes, change it in this file and nowhere else. ## Using icons Import every icon from `@/components/icons`, this folder's barrel. Never import from `lucide-react`outside this folder, and never inline a one-off SVG in a component. If the icon you need isn't inthe set, add it (next section). ## What an icon is Icons are small technical diagrams with a friendly finish.They should hold their own next to 14px UI text without looking bigger, darker or busier than it. Drawings live in `./glyphs.ts` (built with `createFernIcon`), brand marks in `./logos.ts`, and theanimated sidebar icons in `components/navbar/*Icon*.tsx`. The animated icons share their drawingwith the static glyph of the same name. ## Adding an icon Every new icon goes through this file, whoever draws it, person or agent. In order: 1. **Look before drawing.** `Foundations/Icons` in Storybook lists every export of `@/components/icons`. Reuse a glyph, or redraw an existing concept, before adding a name.2. **Pick its family.** Find the nearest siblings (lists, arrows, people, documents, charts) and copy their construction: keyshape, rule lengths, rhythm and corners. The new icon should read as one more member of that row.3. **Draw it in `./glyphs.ts`** with `createFernIcon`, following every section below, and export it under its Lucide name plus the `…Icon` alias.4. **Run the QA checklist** at the end of this file on the `Foundations/Icons` → `Review` story.5. **Check it where it ships**, at the size of the icons beside it, in light and dark. ## Grid and size - One master size: **16 × 16 viewBox**. Sidebar icons render at `size-4`, in the desktop column and the mobile drawer alike; the set stays legible from 12 to 20px.- **Optical keyshapes**, measured at the outer stroke edge:  - Square 13 × 13 (stroke-centre box 11.75, `x=2.125`)  - Circle 14 × 14 (`r=6.375` at stroke centre)  - Horizontal 14 × 11 (card `x=1.625 y=3.125 w=12.75 h=9.75`)  - Vertical 11 × 14 (`x=3.125 y=1.625 w=9.75 h=12.75`)  - Diagonal shapes use the circle and are then adjusted by eye.- Centre optically, not mathematically. Shapes that are open at the bottom (gauge) or heavy at the top (sparkle, members) are shifted until they sit level with their neighbours.- **Render at the size of its neighbours**: `size-4` beside other 16px UI icons (header buttons, menus, sidebar rows). The stroke is in viewBox units, so it scales with the icon: 1.25px at 16px is 1.56px at 20px. Don't upsize one glyph to give it presence; give its button a bigger hit area instead. ## Stroke - **1.25px, one weight for every stroke in every icon.** No per-part weights. Fix density with spacing, never by thinning a part.- Round caps and round joins everywhere.- No pixel snapping. The geometry is tuned for balance across 12 to 20px, not for one pixel grid.- Lucide-compatible `strokeWidth` props are authored for Lucide's 24px grid (default 2). On our grid they are scaled by `1.25 / 2`, so the default renders at 1.25. ## Corner radius - **R = 1.25 at the stroke centre on every corner of 90° or wider.** That gives a 1.875 outer edge and a 0.625 inner edge.- **Angle rule for sharper corners: r = 1.25 × θ / 90°.** A 60° triangle corner gets 0.83, a 45° corner 0.63, a 30° bolt or star tip 0.42. Sharp corners stay sharp, and every corner reads as the same family.- One value for containers and small parts alike. A radius only shrinks when the part is too short to hold it (the helper clamps it to half of each adjacent segment).- **Marks are not shapes.** Chevrons, arrowheads, checks, plus and cross marks keep a sharp vertex and rely on the round join.- **Junctions stay sharp.** A corner where an inner line meets the outline (book spine, cube edges, flag at the pole) uses 0 so the lines meet cleanly.- No soft "arch" forms for things that aren't round. The lock shackle, trash handle, door and type crossbars are rounded rectangles at R, not arcs. ## Construction - Start from horizontal, vertical and 45° lines, then round the corners. Take arcs from circles only when the concept is round (clock, gauge, globe, cloud, bell dome, a person's head, wifi).- **Inner strokes meet their container.** Spines, dividers, chart bars, calendar rings and clapper stripes run into the outline. No floating details where a meeting line would explain the object better.- **Extend lines where it's natural**, like monospace type: calendar rings pass through the top edge, the house roof overhangs its walls, the info "i" carries a slab foot, H-numerals are built like monospace digits.- **Closed shapes** over open ones. Torsos are closed shapes with a flat base, speech bubbles are closed with a straight-edged tail.- **Overlaps are cut, not stacked.** When one shape passes in front of another (Users, MessagesSquare, GlobeLock, EyeOff, CloudUpload, SmilePlus), the shape behind is cut back to leave 1.5px of clear space. The `cut()` helper does this from the real geometry.- **Natural proportions.** Tall things stay tall and wide things stay wide.- **Direction.** Diagonals and flying elements run bottom-left to top-right (key, pencil, rocket, external-link arrow, send). A badge sits top-right. Code slashes run top-right to bottom-left. ## Spacing and details - At least 1.5px of clear space between separate shapes (2.75 centre to centre). Inner details sit at least 2px from their container where the space allows.- **Dots:** a pivot or terminal dot is filled at r 1.1 (gauge, bot antenna), "more" and grip dots r 1, info and alert dots r 0.75, list bullets r 0.875.- Plus and cross marks are drawn inside the square keyshape (11px), because they have no mass at the corners. ## Reference shapes - Card: rounded rect 14 × 11 outer, R, stripe meeting both sides (Billing).- Circle: r 6.375 (clock, gauge, globe, status circles).- Person: head circle plus an angular torso: flat base on the bottom of the keyshape, short vertical sides, 45° shoulders and a flat top, at least 1.5 clear of the head (User, Users, UserPlus/Minus/X). In a container (CircleUserRound, ShieldUser) the torso is open: the shoulders run at 45° from the flat top into the outline and meet it sharp.- Gear: 6 tapered teeth on a 12-sided body, hub r 1.625 (General).- Sparkle: 4-point star with concave arc sides, plus badge top-right (`Sparkles`).- Chevron: two 4.25px legs at 90°.- Arrowhead: legs of 3.5 offset at 45°.- Rules (menu, lists, text lines): full-width rules span the square keyshape, `x 2.125 → 13.875`, on rows `y 4 / 8 / 12` (`Menu`, `ListFilter`, `ListCheck`). The shorter 11px length (`2.5 → 13.5`) is for plus, minus and cross marks only. ## Choosing v1 over v2 - When a v1 drawing is preferred, keep its concept and silhouette, then redraw it to these rules: keyshape, 45° construction, R with the angle rule, spacing. Key and Rocket were redrawn this way. ## Sidebar metaphors - Docs: open book, flat pages with a 45° notch into a full-height spine (`BookOpen`).- SDK: `</>` (`Sdk`, same drawing as `Code2`). 90° chevrons with 2.75 legs across the 14px horizontal keyshape, and a solidus at about 75° (a typographic exception to the 45° rule) standing 11px tall, at least 1.5 clear of the chevron ends.- MCP: the official Model Context Protocol mark (`Mcp`, new). See Brand marks.- Automations: a trigger circle connected to an action block by an elbow line (`Automations`, new). Replaces the clock arrow.- Clerk: a pen nib (`Clerk`, new), in the Pencil family: it points bottom-left with Pencil's point (57°, fillet 0.795) and fills the 13 × 13 square keyshape point to section, so it holds its own beside the Github and BookOpen marks (a diagonal glyph sized to the circle looks small next to them). Its sides close in to the neck horizontally and vertically, the neck line meets the outline sharp, and the section past it keeps 1.5 clear inside. The slit runs into a pivot dot centred in the body (as far from the slanted sides as from the closing ones); a ring fills in to a dot at 16px. It marks Clerk wherever Clerk appears: its card in the flow diagram, its setup step, its section on the automations page and its card in the automations empty state.- Members: `Users`. Billing: `CreditCard`. General: `Cog`. API Keys: `Key`.- Design-system site pages: `Hub` (Overview), `Palette` (Color), `CaseSensitive` (Typography), `Shapes` (Iconography), `Box` (Figures), `Layers` (Surfaces), `Motion`, `Accessibility`, `MessageSquareMore` (Design language), `TextCaret` (Content), `Blocks` (Components), `Wireframe` (Patterns), `TerminalWindow` (Fern CLI) and `Loop` (Building with agents). Each is also exported under its page's name (`Iconography`, `DesignLanguage`, `FernCli`), and the catalog lists it under its own. The Agent mark page keeps `AgentMark`.- Agents: `FernAgent`, nine filled dots in a sparkle (the sidebar tab and the header button). It is the agent's mark, so like a logo it keeps its supplied dot sizes (r 1.6 centre, 1.15 diagonals, 0.9 tips) instead of the dot sizes above. The Ask pill uses the animated `AgentMark` (`components/agent/AgentMark.tsx`). ## Brand marks - `FernLeaf`, `Github`, `Mcp`, `Atlassian`, `Linear`, `GoogleDrive` and `Pylon` are logos, not drawings (`./logos.ts`). Keep the original path verbatim on the grid it was drawn on (except the band marks, below); pass that grid to `createFernIcon` (or a transform) so the stroke scales. Only the stroke width is fitted to the system.- Stroke-only (no fills) and `currentColor`, like the icons around them. Ignore everything else here (keyshapes, radii, 45° construction, gaps): logos stay faithful to the original artwork.- FernLeaf is an outside stroke made with a mask. The mask must carry `stroke="none"`, or it inherits the icon stroke and the outline doubles.- Mcp uses the official path data from the MCP docs repo, fitted to the 14px circle keyshape. Its stroke stays in the logo's proportion (about 0.97 at 16px), because 1.25 would close the gaps between the parallel runs.- Pylon and Linear are marks made of even-width bands. Outlining their filled paths closes the gaps at 16px, so they are drawn on the bands' centrelines, measured from the vendor paths on the same grid; only the band width changes to the house stroke. Linear's solid half becomes an outline. ## Colour and animation - Colour comes only from `currentColor` or the passed `strokeColor`, so default, hover and active (Fern green) states are set by the parent.- Animated icons keep the static drawing as their rest frame. Keep the element ids the CSS in `globals.css` targets when redrawing. ## QA checklist (per icon) 1. Fits its keyshape at 400% or more, measured at the outer stroke edge (the `Foundations/Icons` → `Review` story overlays all four; pick the glyph in Controls).2. No cut under 1.5px and no stacked junctions.3. Where it ships (the sidebar, a header, a menu) at 16px, light and dark, no icon looks bigger, darker or busier than its neighbours.4. Checked at 12, 16 and 20px, at 1x and 2x (the `Review` story shows all three; zoom the browser for 2x).

Rules

Every rule on one list. Open one for the reasoning behind it.

10 rules
  1. 01Small technical diagrams with a friendly finishIcons sit next to 14px text without looking bigger, darker or busier than it. The full rules live in components/icons/GUIDELINES.md.
  2. 02One grid: 16 × 16, one stroke: 1.25pxEvery stroke in every icon is 1.25px with round caps and joins. No per-part weights; fix density with spacing, never by thinning a part. No pixel snapping.
  3. 03Optical keyshapes, centred by eyeSquare 13, circle 14, horizontal 14 × 11, vertical 11 × 14, measured at the outer stroke edge. Shapes open at the bottom or heavy at the top are shifted until they sit level with their neighbours.
  4. 04Corners: R 1.25, scaled by angleEvery 90° corner is rounded at 1.25 on the stroke centre. Sharper corners use r = 1.25 × θ / 90°, so a 45° tip gets 0.63. Marks (chevrons, checks, plus, cross) keep a sharp vertex and rely on the round join.
  5. 05Built from horizontals, verticals and 45°Arcs only where the concept is round (clock, globe, bell). Inner strokes meet their container; lines extend where it's natural, like monospace type. Closed shapes over open ones.
  6. 06Overlaps are cut, not stackedWhen one shape passes in front of another, the shape behind is cut back to leave 1.5px of clear space. Separate shapes keep at least 1.5px between them.
  7. 07Direction and proportionDiagonals and flying things run bottom-left to top-right. Badges sit top-right. Tall things stay tall, wide things stay wide.
  8. 08Logos are not drawingsGitHub, the Fern leaf, the MCP mark, Atlassian and Google Drive keep their original paths verbatim, scaled onto the grid. Only the stroke width is fitted. Pylon and Linear are made of even-width bands that an outline would close up at 16px, so they are drawn on the bands' centrelines, measured from the vendor paths. The Fern Agent's FernAgent dots keep their own sizes, like a logo.
  9. 09Color comes from the parentIcons use currentColor only. Default, hover and active (Fern green) states are set by the surrounding control, never inside the icon.
  10. 10Import from the barrelEvery icon comes from @/components/icons, never lucide-react. The wrapper scales Lucide's 24px stroke to the 16px grid, so strokeWidth={2} renders at 1.25. CI fails on a direct import.

Keep going

Agent mark
The Fern Agent's mark, calm at rest and moving while it works.
Components
Shared components, from single controls to whole features.