{
  "name": "Fedi Design System — Component & Usage Guidelines",
  "version": "1.1.0",
  "markdown": "# Fedi Design System — Guidelines\n\nThese rules tell you (an AI coding assistant) **how to build Fedi-branded UI**. Always pull live values with `get_design_tokens` / `get_css_variables` and component specs with `get_components`. Reference the CSS variables — never hardcode a hex that duplicates a token.\n\n## Principles\n\n1. **Mobile-first.** Design for a 360–390px phone first. Single column, thumb-reachable, primary action pinned to the bottom.\n2. **Calm and clean.** White surfaces, generous breathing room, one accent at a time. Avoid heavy borders and loud color blocks.\n3. **Ink on white.** Text is `--text-primary` (#0B1013) on `--bg-base` (#fff). Secondary text `--text-secondary`. Use the neutral ramp (`--gray-50`→`--gray-500`) for fills, dividers and borders — never arbitrary greys.\n4. **One font: Poppins.** Regular 400, Medium 500, SemiBold 600. Default UI weight is 500; emphasis 600.\n5. **Color is meaning, not decoration.** `--color-primary` (orange) = primary brand accent; `--success` green; `--error` red; `--warning` orange; `--info` blue. Use the `100` tint as background, the `600/700` as text/icon.\n\n## Typography\n\nScale (token · size/line-height): h1 32/40, h2 24/32, h3 20/28, b1 16/24, b2 14/20, b3 12/16, b4 10/14. Each in Regular/Medium/SemiBold. Body default = b1 Medium. Screen title = h3 Medium. Captions = b3 Regular `--text-secondary`.\n\n## Buttons (solid — no gradients/sheen)\n\n- **Primary:** solid black `--btn-k`, white text. The main action; full-width when it's the screen's primary CTA.\n- **Secondary:** solid white `--btn-w`, ink text, 1.5px `--border-strong` border.\n- **Blue:** solid `--btn-blue`, white text, for confirmations / link-actions.\n- **Sizes:** medium 48px (radius 40), small 40px (radius 40), xSmall 32px (radius pill), label Poppins 16 (xSmall 14) / 500.\n- **States:** default; pressed → primary darkens to `--gray-400`, secondary gets an 8% black overlay; disabled → bg `--gray-150`, text `--gray-400`; loading → spinner, keep width, disable.\n\n## Components (see get_components for full specs)\n\n- **Cards:** `--bg-subtle` fill (or white + 1px `--border-default`), radius `--radius-lg` (12px), padding 16px. Selected → tint `--primary-soft`.\n- **Tabs:** pill track `--bg-subtle`, active segment a raised white pill, label `--text-primary`; inactive `--text-secondary`.\n- **Chips:** pill, tinted bg + matching text per state (neutral/pending/approved/rejected/info). Uppercase 'role pill' variant: Poppins 10/700, letter-spaced.\n- **Inputs:** height 48, radius `--radius-sm` (4px), 1px `--border-strong`; focus → ink border + soft ring; error → `--error` border + helper text; disabled → `--bg-subtle`.\n- **Toggle:** track 38×22 pill, knob 18 white; on → `--black` track.\n- **Toast:** dark ink pill, white text, radius 12, `--shadow-regular`, optional leading icon; auto-dismiss.\n- **Bottom sheet / modal:** scrim rgba(11,16,19,.42); sheet white, top corners `--radius-big` (32); centered icon + title (b1Sbd) + body (b2 `--text-secondary`); actions are pill buttons (destructive = `--error`).\n- **Bottom nav:** white bar, top hairline `--border-default`, 5 items (Wallet, Chat, Scan/Paste center FAB, Mini apps, Spaces). Active `--black`, inactive `--gray-400`; center FAB is a raised black circle. Use the canonical icons in `tokens.icons.nav`.\n- **Chat:** sent = `--blue` right-aligned white; received = `--bg-subtle` left-aligned ink; payment = orange with amount + status; reactions = small chips (emoji + count) under the bubble.\n\n## Color usage cheatsheet\n\n| Intent | Token |\n|---|---|\n| Primary text | `--text-primary` |\n| Secondary text | `--text-secondary` |\n| Primary action (button) | `--btn-k` (solid black) |\n| Brand accent | `--color-primary` (orange) |\n| Success | `--success` on `--green-100` |\n| Pending / warning | `--warning` on `--orange-100` |\n| Error / destructive | `--error` on `--red-100` |\n| Info | `--info` on `--blue-100` |\n| Card / section fill | `--bg-subtle` |\n| Border / divider | `--border-default` / `--border-strong` |\n\n## Spacing & layout\n\n- 4pt scale (`--space-1`=4 … `--space-12`=48). Default gap between stacked elements 16px; section gaps 32px.\n- Screen edge margin 24px; 4-column grid, 16px gutters.\n- One primary action visible per screen.\n\n## Voice & copy\n\n- **Plain, warm, human.** Short sentences. Speak to one person ('you'). Avoid jargon and crypto-speak where a plain word works.\n- **Buttons are verbs.** 'Send', 'Add', 'Continue' — sentence case, not Title Case, never ALL CAPS (except the tiny role pills).\n- **Errors are kind and actionable:** say what happened + what to do ('Couldn't connect. Check your network and try again.'). Never blame the user.\n- **Amounts:** show the unit clearly (SATS / the fiat code); right-align in rows.\n- **Empty states** are encouraging and point to the next action.\n\n## Do / Don't\n\n- ✅ Pull tokens/components from the MCP; reference CSS variables.\n- ✅ Single-column, white, calm; one accent at a time.\n- ✅ Solid buttons; 12px cards; the canonical nav icons.\n- ❌ Don't introduce hex/fonts/sizes outside the system, or a second UI font.\n- ❌ Don't use gradients/sheen on buttons, heavy shadows on cards, or square buttons.\n- ❌ Don't invent components — if something's missing, say so and ask."
}
