# Identity badges Every account, publication, post, author and labeler the popup names is drawn with one component: `badge` in `src/popup/badge.ts`. The kinds share geometry, a type scale and a spacing scale, so a new surface can add an identity without inventing another visual language. ``` [ media ] ── ROLE ───────────────── Name 12 POSTS @handle A line of bio. ``` - **media** is the picture when there is one, otherwise a monogram. Its frame carries the kind. - **role** is an optional kicker above the name: `This site`, `Author`. It is set in small caps between a red pen mark and a hairline. - **label** is the name a person would say: a display name, a publication name, a label. - **meta** is the second line — a proven handle, a DID, a host. - **bio**, on profile cards, is two clamped lines. ## The paper ticket The badge is not a pill. It is a small paper ticket: a 5px corner, a hairline ink edge, and — on the profile cards — the same hard misprint shadow the menus and the Subscribe sticker use. Cards press into that shadow on hover. This is the brand's existing vocabulary (`--card` paper, `--fg` ink, `--red` pen), applied to identity instead of only to controls. Two spacing scales: | | media | gap | padding | label | |---|---|---|---|---| | `sm` | 20px | 6px | 3px 9px 3px 4px | 12px | | `md` | 30px | 9px | 7px 10px 7px 7px | 14px | `badge--card` is the md ticket used for profiles: 10px 12px padding, a 6px corner, and 12px between cards. ## Kinds | Kind | Media | Used for | |---|---|---| | `account` | round sticker, avatar or monogram | The reader's own account in the header, and the page's own account. | | `publication` | square plate, icon or monogram | The publication record, as the card's masthead. | | `post` | document slip | The article when the popup opens on a document. | | `author` | round sticker, avatar or monogram | The account behind the publication. | | `labeler` | tag, or the severity shape | A moderation label and the labeler credited on a cover. | Account and author share a media shape because they are the same kind of thing: a person. The kicker separates them. A publication's own home has one account and no kicker; a reader page showing somebody else's publication has two — **This site** for the page account, **Author** for the publication's — plus the publication masthead. See `src/lib/site-handle.ts`. ## The masthead The publication row is the one place the badge changes scale rather than frame: `#pub-head` is a full-width ghost ticket with a 32px plate, a 15px name, the post count set in uppercase like a folio (`12 POSTS`), and a rule underneath separating the masthead from the description. ## Color Identity stays neutral. Color is already the severity channel: status pills and moderation labels use it to say how serious something is. Painting "this is a publication" would make the two vocabularies compete. The exceptions are deliberate and local: - The **red pen** is a brand mark: a 10px dash before a role kicker and the left rule on an article slip. It is not a severity claim. - A **labeler** badge's tone is its severity. A neutral label is a tag; an alert or warning label takes the same diamond and triangle shapes as the status pills of that severity, so the meaning survives without color. ## Copy No kind name is printed next to the badge except the role kicker. The media shape says what it is, the label says which one, and the title attribute carries anything longer (a label's description and its labeler, for example).