Minimal · Fintech
Iris Pay design system template
Payments infrastructure in ink and saffron: Newsreader headlines, warm paper surfaces, near-black actions and a single saffron highlight for the number that matters. Built for business accounts, payment dashboards and checkout.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Newsreader
Business account
Pay anyone in Europe, the same day
One account with local IBANs, virtual cards and invoices your customers can pay by bank transfer or card.
| Payment | Customer | Method | Status | Amount |
|---|---|---|---|---|
| pay_3Kx9 | Atelier Brandt | SEPA | Succeeded | €2,400.00 |
| pay_3Kx8 | Northwind Coffee | Visa 4242 | Succeeded | €18.40 |
| pay_3Kx7 | Lumen Studio | Visa 4242 | Succeeded | €480.00 |
| pay_3Kx4 | Harbor & Co | Amex 0005 | Pending | €1,120.50 |
| pay_3Kx2 | Kjeld Haugen | SEPA | Succeeded | €260.00 |
| pay_3Kx1 | Nils Aaberg | Visa 1881 | Failed | €96.00 |
| pay_3Kw8 | Studio Pelle | SEPA | Refunded | €62.90 |
Atelier Brandt paid invoice 0142 by SEPA
Virtual cards
Create a single-use card for each subscription and freeze it in one tap.
Instant payouts
Move money to any IBAN in seconds, any day of the week.
Smart invoices
Customers pay by card or bank transfer from one link.
“We replaced three vendors with Iris and our reconciliation went from two days to twenty minutes.”
Helena Voss, Head of Finance, Brandt & Partners
Personality. Iris Pay treats money movement as paperwork done properly. The canvas is warm paper `#f5f4f0`, ink is a near-black `#16181d`, and the primary action is ink too: a black button that says Pay, Confirm or Send, with no color on the controls at all. The one color is saffron `#c98a0a`, kept for the figure that matters (this month's received total, the active nav marker, a pending state) so the eye always knows where to land. Headlines are Newsreader at weight 400, calm and slightly editorial; Instrument Sans carries interface text and DM Mono sets every amount in tabular figures, right-aligned, so columns of money line up to the cent. Depth comes from hairlines and small neutral shadows. Dark mode is the same ledger at night: `#0f1013` with an off-white primary button.
Near-black primary buttons with white text; color never appears on a control
Saffron used once per screen on the figure that matters, never as a fill behind text
Newsreader 400 display headlines at 64px with -0.02em tracking, paired with weight-500 Instrument Sans labels
Amounts in DM Mono tabular figures, right-aligned, with the currency code in muted-foreground
Status as a 6px dot plus plain text (Succeeded, Pending, Refunded), never a saturated pill
Color. 21 roles, both modes.
background
#f5f4f0
foreground
#16181d
card
#ffffff
cardForeground
#16181d
muted
#ebeae5
mutedForeground
#5d6068
primary
#16181d
primaryForeground
#ffffff
secondary
#e8e6df
secondaryForeground
#16181d
accent
#f5e7bd
accentForeground
#5a3d00
border
rgba(22,24,29,0.12)
input
rgba(22,24,29,0.26)
ring
#b97a00
destructive
#c0392b
destructiveForeground
#ffffff
success
#1f7a52
successForeground
#ffffff
warning
#c98a0a
warningForeground
#2e2005
Type. Newsreader · Instrument Sans · DM Mono
The file. Drop it in your repo.
1---2name: "Iris Pay"3slug: "iris-pay"4schema: "freedesignmd/v2"5description: "Payments infrastructure in ink and saffron: Newsreader headlines, warm paper surfaces, near-black actions and a single saffron highlight for the number that matters. Built for business accounts, payment dashboards and checkout."6source: "https://freedesignmd.com/system/iris-pay"7aesthetic: "minimal"8industry: "fintech"9default_mode: "light"10fonts:11 display: "Newsreader"12 body: "Instrument Sans"13 mono: "DM Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500&family=Instrument+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#f5f4f0"18 foreground: "#16181d"19 card: "#ffffff"20 cardForeground: "#16181d"21 muted: "#ebeae5"22 mutedForeground: "#5d6068"23 primary: "#16181d"24 primaryForeground: "#ffffff"25 secondary: "#e8e6df"26 secondaryForeground: "#16181d"27 accent: "#f5e7bd"28 accentForeground: "#5a3d00"29 border: "rgba(22,24,29,0.12)"30 input: "rgba(22,24,29,0.26)"31 ring: "#b97a00"32 destructive: "#c0392b"33 destructiveForeground: "#ffffff"34 success: "#1f7a52"35 successForeground: "#ffffff"36 warning: "#c98a0a"37 warningForeground: "#2e2005"38 dark:39 background: "#0f1013"40 foreground: "#f2f0ea"41 card: "#17181c"42 cardForeground: "#f2f0ea"43 muted: "#1f2025"44 mutedForeground: "#9d9ea5"45 primary: "#f2f0ea"46 primaryForeground: "#0f1013"47 secondary: "#25262c"48 secondaryForeground: "#f2f0ea"49 accent: "#3a2f12"50 accentForeground: "#f3d98d"51 border: "rgba(242,240,234,0.12)"52 input: "rgba(242,240,234,0.24)"53 ring: "#e6a92a"54 destructive: "#ff7a6b"55 destructiveForeground: "#2a0a06"56 success: "#4ad39b"57 successForeground: "#04241a"58 warning: "#e6a92a"59 warningForeground: "#2e2005"60chart:61 light: ["#16181d", "#c98a0a", "#7b7e86", "#1f7a52", "#c0392b"]62 dark: ["#f2f0ea", "#e6a92a", "#8b8d95", "#4ad39b", "#ff7a6b"]63type:64 display: { font: display, size: 64, size_mobile: 36, leading: 1.04, weight: 400, tracking: "-0.02em" }65 h1: { font: display, size: 44, size_mobile: 30, leading: 1.1, weight: 400, tracking: "-0.02em" }66 h2: { font: display, size: 28, size_mobile: 22, leading: 1.2, weight: 400, tracking: "-0.01em" }67 h3: { font: display, size: 18, size_mobile: 18, leading: 1.35, weight: 500, tracking: "0em" }68 body: { font: body, size: 16, size_mobile: 16, leading: 1.55, weight: 400, tracking: "0em" }69 small: { font: body, size: 14, size_mobile: 14, leading: 1.5, weight: 400, tracking: "0em" }70 label: { font: body, size: 13, size_mobile: 13, leading: 1.3, weight: 500, tracking: "0.005em" }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.5, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 20, 24, 32, 48, 64, 96]73radius: { sm: "6px", md: "8px", lg: "12px", xl: "18px", full: "9999px" }74shadow:75 light:76 sm: "0 1px 2px rgba(22,24,29,0.06), 0 0 0 1px rgba(22,24,29,0.03)"77 md: "0 10px 24px -14px rgba(22,24,29,0.22), 0 2px 6px -2px rgba(22,24,29,0.08)"78 lg: "0 36px 60px -34px rgba(22,24,29,0.34), 0 14px 28px -16px rgba(22,24,29,0.16)"79 dark:80 sm: "0 0 0 1px rgba(242,240,234,0.08)"81 md: "0 0 0 1px rgba(242,240,234,0.1), 0 16px 32px -12px rgba(0,0,0,0.6)"82 lg: "0 0 0 1px rgba(242,240,234,0.14), 0 40px 80px -20px rgba(0,0,0,0.75)"83motion:84 duration_ms: { instant: 90, fast: 140, base: 220, slow: 420 }85 easing: { standard: "cubic-bezier(0.3, 0, 0.2, 1)", out: "cubic-bezier(0.2, 0.9, 0.2, 1)", in: "cubic-bezier(0.5, 0, 1, 1)" }86 reveal: { distance_px: 12, stagger_ms: 60 }87layout: { max_width: 1160, columns: 12, gutter: 24, section_y: 96, section_y_mobile: 56, measure: "62ch" }88---89 90# Iris Pay, DESIGN.md91 92> Payments infrastructure in ink and saffron: Newsreader headlines, warm paper surfaces, near-black actions and a single saffron highlight for the number that matters. Built for business accounts, payment dashboards and checkout.93 94## How to use this file95 961. Save this file as `DESIGN.md` in the project root and paste the `tokens.css` block (section 10) into your global stylesheet, or import `https://freedesignmd.com/system/iris-pay.css`, which also contains every component class.972. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.983. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`994. **Lovable:** paste section 10 into `src/index.css` and add this file to Project Knowledge; ask for changes by role name (`primary`, `muted-foreground`), never by hex.1005. Default mode is **light**: dark mode is `class="dark"` on `<html>` (both modes are fully specified). Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.101 102## 1. Overview & personality103 104Iris Pay treats money movement as paperwork done properly. The canvas is warm paper `#f5f4f0`, ink is a near-black `#16181d`, and the primary action is ink too: a black button that says Pay, Confirm or Send, with no color on the controls at all. The one color is saffron `#c98a0a`, kept for the figure that matters (this month's received total, the active nav marker, a pending state) so the eye always knows where to land. Headlines are Newsreader at weight 400, calm and slightly editorial; Instrument Sans carries interface text and DM Mono sets every amount in tabular figures, right-aligned, so columns of money line up to the cent. Depth comes from hairlines and small neutral shadows. Dark mode is the same ledger at night: `#0f1013` with an off-white primary button.105 106**At a glance**107 108- Aesthetic: Minimal · Industry: Fintech · Default mode: light109- Type: Newsreader (display) · Instrument Sans (body) · DM Mono (mono)110- Brand color (`primary`): `#16181d` light · `#f2f0ea` dark, on primary, text is `#ffffff` / `#0f1013`111- Corners: 6px / 8px / 12px / 18px · Container 1160px · Base motion 220ms112 113**Signature moves**114 115- Near-black `primary` buttons with white text; color never appears on a control116- Saffron used once per screen on the figure that matters, never as a fill behind text117- Newsreader 400 display headlines at 64px with -0.02em tracking, paired with weight-500 Instrument Sans labels118- Amounts in DM Mono tabular figures, right-aligned, with the currency code in `muted-foreground`119- Status as a 6px dot plus plain text (Succeeded, Pending, Refunded), never a saturated pill120 121## 2. Color122 123Roles follow shadcn/ui naming, so `primary` is always the brand / main-action color and `foreground` is always body text. Every text pair below is WCAG AA (≥ 4.5:1) in both modes.124 125### Light mode (`:root`)126 127| Role | CSS variable | Value | Contrast | Usage |128|---|---|---|---|---|129| `background` | `--background` | `#f5f4f0` | | Page canvas |130| `foreground` | `--foreground` | `#16181d` | 16.14:1 on background | Body text and headings on background |131| `card` | `--card` | `#ffffff` | | Cards, panels, popovers |132| `cardForeground` | `--card-foreground` | `#16181d` | 17.76:1 on card | Text on card |133| `muted` | `--muted` | `#ebeae5` | | Subtle fills: table headers, code, skeletons |134| `mutedForeground` | `--muted-foreground` | `#5d6068` | 5.22:1 on muted | Secondary text, captions, placeholders |135| `primary` | `--primary` | `#16181d` | | Brand color: primary buttons, links, focus, active states |136| `primaryForeground` | `--primary-foreground` | `#ffffff` | 17.76:1 on primary | Text and icons on primary |137| `secondary` | `--secondary` | `#e8e6df` | | Secondary buttons and quiet fills |138| `secondaryForeground` | `--secondary-foreground` | `#16181d` | 14.22:1 on secondary | Text on secondary |139| `accent` | `--accent` | `#f5e7bd` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |140| `accentForeground` | `--accent-foreground` | `#5a3d00` | 8.11:1 on accent | Text on accent |141| `border` | `--border` | `rgba(22,24,29,0.12)` | | Dividers and card outlines |142| `input` | `--input` | `rgba(22,24,29,0.26)` | | Input borders |143| `ring` | `--ring` | `#b97a00` | | Focus ring |144| `destructive` | `--destructive` | `#c0392b` | | Errors and destructive actions |145| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 5.44:1 on destructive | Text on destructive |146| `success` | `--success` | `#1f7a52` | | Positive status |147| `successForeground` | `--success-foreground` | `#ffffff` | 5.30:1 on success | Text on success |148| `warning` | `--warning` | `#c98a0a` | | Caution status |149| `warningForeground` | `--warning-foreground` | `#2e2005` | 5.38:1 on warning | Text on warning |150| `chart-1…5` | `--chart-1…5` | `#16181d` `#c98a0a` `#7b7e86` `#1f7a52` `#c0392b` | | Data series, in this order |151 152### Dark mode (`.dark`)153 154| Role | CSS variable | Value | Contrast | Usage |155|---|---|---|---|---|156| `background` | `--background` | `#0f1013` | | Page canvas |157| `foreground` | `--foreground` | `#f2f0ea` | 16.69:1 on background | Body text and headings on background |158| `card` | `--card` | `#17181c` | | Cards, panels, popovers |159| `cardForeground` | `--card-foreground` | `#f2f0ea` | 15.57:1 on card | Text on card |160| `muted` | `--muted` | `#1f2025` | | Subtle fills: table headers, code, skeletons |161| `mutedForeground` | `--muted-foreground` | `#9d9ea5` | 6.09:1 on muted | Secondary text, captions, placeholders |162| `primary` | `--primary` | `#f2f0ea` | | Brand color: primary buttons, links, focus, active states |163| `primaryForeground` | `--primary-foreground` | `#0f1013` | 16.69:1 on primary | Text and icons on primary |164| `secondary` | `--secondary` | `#25262c` | | Secondary buttons and quiet fills |165| `secondaryForeground` | `--secondary-foreground` | `#f2f0ea` | 13.24:1 on secondary | Text on secondary |166| `accent` | `--accent` | `#3a2f12` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |167| `accentForeground` | `--accent-foreground` | `#f3d98d` | 9.48:1 on accent | Text on accent |168| `border` | `--border` | `rgba(242,240,234,0.12)` | | Dividers and card outlines |169| `input` | `--input` | `rgba(242,240,234,0.24)` | | Input borders |170| `ring` | `--ring` | `#e6a92a` | | Focus ring |171| `destructive` | `--destructive` | `#ff7a6b` | | Errors and destructive actions |172| `destructiveForeground` | `--destructive-foreground` | `#2a0a06` | 7.21:1 on destructive | Text on destructive |173| `success` | `--success` | `#4ad39b` | | Positive status |174| `successForeground` | `--success-foreground` | `#04241a` | 8.71:1 on success | Text on success |175| `warning` | `--warning` | `#e6a92a` | | Caution status |176| `warningForeground` | `--warning-foreground` | `#2e2005` | 7.60:1 on warning | Text on warning |177| `chart-1…5` | `--chart-1…5` | `#f2f0ea` `#e6a92a` `#8b8d95` `#4ad39b` `#ff7a6b` | | Data series, in this order |178 179## 3. Typography180 181Load fonts with:182 183```html184<link rel="preconnect" href="https://fonts.googleapis.com" />185<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />186<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500&family=Instrument+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap" />187```188 189| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |190|---|---|---|---|---|---|---|---|191| `display` | Newsreader | 36px → 64px | 1.04 | 400 | -0.02em | – | `.type-display` |192| `h1` | Newsreader | 30px → 44px | 1.1 | 400 | -0.02em | – | `.type-h1` |193| `h2` | Newsreader | 22px → 28px | 1.2 | 400 | -0.01em | – | `.type-h2` |194| `h3` | Newsreader | 18px | 1.35 | 500 | 0em | – | `.type-h3` |195| `body` | Instrument Sans | 16px | 1.55 | 400 | 0em | – | `.type-body` |196| `small` | Instrument Sans | 14px | 1.5 | 400 | 0em | – | `.type-small` |197| `label` | Instrument Sans | 13px | 1.3 | 500 | 0.005em | – | `.type-label` |198| `mono` | DM Mono | 13px | 1.5 | 400 | 0em | – | `.type-mono` |199 200- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.201- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).202- Only the weights in this table are loaded; never use other weights.203 204## 4. Spacing & layout205 206Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):207 208| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-5` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-24` |209|---|---|---|---|---|---|---|---|---|---|---|210| px | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 48 | 64 | 96 |211 212- Container: max 1160px, 24px side gutters (`.container`).213- Grid: 12 columns, 24px gap.214- Sections: 96px vertical padding on desktop, 56px on mobile (`.section`).215- Long text: max 62ch per line (`.prose`).216- Dashboard: 232px sidebar, 56px top bar, a 12-column grid on a warm paper canvas, one wide payments table above three compact figures.217- Checkout is a single 440px column centered on the page; never add a second column at desktop.218- Tables of payments use 48px rows with the amount as the last, right-aligned column.219 220## 5. Shape & elevation221 222| Radius | Value | Use |223|---|---|---|224| `--radius-sm` | 6px | badges, checkboxes, small chips |225| `--radius-md` | 8px | buttons, inputs, tabs (= shadcn `--radius`) |226| `--radius-lg` | 12px | cards, panels, menus |227| `--radius-xl` | 18px | dialogs, hero media, large surfaces |228| `--radius-full` | 9999px | avatars, pills, toggles |229 230| Shadow | Mode | Value |231|---|---|---|232| `--shadow-sm` | light | `0 1px 2px rgba(22,24,29,0.06), 0 0 0 1px rgba(22,24,29,0.03)` |233| `--shadow-md` | light | `0 10px 24px -14px rgba(22,24,29,0.22), 0 2px 6px -2px rgba(22,24,29,0.08)` |234| `--shadow-lg` | light | `0 36px 60px -34px rgba(22,24,29,0.34), 0 14px 28px -16px rgba(22,24,29,0.16)` |235| `--shadow-sm` | dark | `0 0 0 1px rgba(242,240,234,0.08)` |236| `--shadow-md` | dark | `0 0 0 1px rgba(242,240,234,0.1), 0 16px 32px -12px rgba(0,0,0,0.6)` |237| `--shadow-lg` | dark | `0 0 0 1px rgba(242,240,234,0.14), 0 40px 80px -20px rgba(0,0,0,0.75)` |238 239`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.240 241## 6. Motion242 243**Settle and confirm.** Amounts and balances count up with a short ease-out, and a successful payment morphs its button into a check in one `base` step. Cards rise 12px as they enter and nothing overshoots, so money never feels like it is bouncing around.244 245| Token | Value | Use |246|---|---|---|247| `--duration-instant` | 90ms | press feedback, toggles |248| `--duration-fast` | 140ms | hover, focus, color changes |249| `--duration-base` | 220ms | menus, tabs, popovers, cards lifting |250| `--duration-slow` | 420ms | dialogs and scroll reveals |251| `--ease-standard` | `cubic-bezier(0.3, 0, 0.2, 1)` | state changes |252| `--ease-out` | `cubic-bezier(0.2, 0.9, 0.2, 1)` | entrances and reveals |253| `--ease-in` | `cubic-bezier(0.5, 0, 1, 1)` | exits |254 255- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 12px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 60ms (`--reveal-index`).256- Use no durations other than the four above.257- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).258 259## 7. Components260 261Every component reads only variables from section 10, so light and dark mode work with no extra code. These are the exact rules (also in `https://freedesignmd.com/system/iris-pay.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.262 263### Button264 265```html266<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->267```268 269```css270.btn {271 display: inline-flex;272 align-items: center;273 justify-content: center;274 gap: 8px;275 height: 40px;276 padding: 0 18px;277 font-family: var(--font-sans);278 font-size: 14px;279 font-weight: 500;280 letter-spacing: 0em;281 border-radius: var(--radius-md);282 border: 1px solid transparent;283 white-space: nowrap;284 cursor: pointer;285 text-decoration: none;286 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);287}288.btn-primary {289 background: var(--primary);290 color: var(--primary-foreground);291}292.btn-primary:hover:not(:disabled) {293 background: color-mix(in oklab, var(--primary) 84%, var(--background));294}295.btn-primary:active:not(:disabled) {296 background: color-mix(in oklab, var(--primary) 70%, var(--background));297}298.btn-secondary {299 background: var(--secondary);300 color: var(--secondary-foreground);301}302.btn-secondary:hover:not(:disabled) {303 background: var(--accent);304 color: var(--accent-foreground);305}306.btn-secondary:active:not(:disabled) {307 background: var(--muted);308}309.btn-outline {310 background: var(--card);311 color: var(--foreground);312 border-color: var(--input);313 box-shadow: var(--shadow-sm);314}315.btn-outline:hover:not(:disabled) {316 border-color: var(--foreground);317 background: var(--muted);318}319.btn-outline:active:not(:disabled) {320 background: var(--muted);321}322.btn-ghost {323 background: transparent;324 color: var(--muted-foreground);325}326.btn-ghost:hover:not(:disabled) {327 background: var(--muted);328 color: var(--foreground);329}330.btn-ghost:active:not(:disabled) {331 background: var(--secondary);332}333.btn:focus-visible {334 outline: 2px solid var(--ring);335 outline-offset: 3px;336}337.btn:disabled, .btn[aria-disabled="true"] {338 opacity: 0.45;339 cursor: not-allowed;340 box-shadow: none;341 transform: none;342}343```344 345### Input346 347```html348<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->349```350 351```css352.input {353 display: block;354 width: 100%;355 height: 44px;356 padding: 0 14px;357 font-family: var(--font-sans);358 font-size: 15px;359 color: var(--foreground);360 background: var(--card);361 border: 1px solid var(--input);362 border-radius: var(--radius-md);363 outline: none;364 transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);365}366.input::placeholder {367 color: var(--muted-foreground);368 opacity: 1;369}370.input:hover:not(:disabled):not(:focus) {371 border-color: var(--muted-foreground);372}373.input:focus, .input:focus-visible {374 border-color: var(--ring);375 box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 22%, transparent);376}377.input[aria-invalid="true"] {378 border-color: var(--destructive);379 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);380}381.input:disabled {382 opacity: 0.5;383 cursor: not-allowed;384 background: var(--muted);385}386```387 388### Card389 390```html391<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->392```393 394```css395.card {396 background: var(--card);397 color: var(--card-foreground);398 border: 1px solid var(--border);399 border-radius: var(--radius-lg);400 box-shadow: var(--shadow-sm);401 padding: 24px;402 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);403}404.card-interactive:hover {405 border-color: var(--input);406}407```408 409### Badge410 411```html412<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->413```414 415```css416.badge {417 --tone: var(--primary);418 --tone-foreground: var(--primary-foreground);419 display: inline-flex;420 align-items: center;421 gap: 6px;422 height: 22px;423 padding: 0 10px;424 border-radius: var(--radius-full);425 font-family: var(--font-sans);426 font-size: 12px;427 font-weight: 500;428 letter-spacing: 0em;429 line-height: 1;430 white-space: nowrap;431}432.badge[data-tone="success"] {433 --tone: var(--success);434 --tone-foreground: var(--success-foreground);435}436.badge[data-tone="warning"] {437 --tone: var(--warning);438 --tone-foreground: var(--warning-foreground);439}440.badge[data-tone="destructive"] {441 --tone: var(--destructive);442 --tone-foreground: var(--destructive-foreground);443}444.badge-solid {445 background: var(--tone);446 color: var(--tone-foreground);447 border: 1px solid var(--tone);448}449.badge-soft {450 background: color-mix(in oklab, var(--tone) 12%, var(--card));451 color: var(--foreground);452 border: 1px solid color-mix(in oklab, var(--tone) 28%, transparent);453}454.badge-outline {455 background: transparent;456 color: var(--foreground);457 border: 1px solid var(--border);458}459```460 461### Navigation bar462 463```html464<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>465```466 467```css468.nav {469 display: flex;470 align-items: center;471 gap: 4px;472 height: 64px;473 padding: 0 24px;474 background: color-mix(in oklab, var(--background) 86%, transparent);475 backdrop-filter: blur(14px) saturate(160%);476 -webkit-backdrop-filter: blur(14px) saturate(160%);477 border-bottom: 1px solid var(--border);478}479.nav-link {480 padding: 6px 12px;481 border-radius: var(--radius-sm);482 font-family: var(--font-sans);483 font-size: 14px;484 font-weight: 500;485 letter-spacing: 0em;486 color: var(--muted-foreground);487 text-decoration: none;488 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);489}490.nav-link:hover {491 color: var(--foreground);492 background: var(--muted);493}494.nav-link[aria-current="page"] {495 color: var(--foreground);496 background: var(--accent);497}498```499 500### Tabs501 502```html503<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>504```505 506```css507.tabs {508 display: inline-flex;509 gap: 4px;510 padding: 4px;511 background: var(--muted);512 border-radius: var(--radius-full);513}514.tab {515 height: 34px;516 padding: 0 16px;517 border: 0;518 border-radius: var(--radius-full);519 background: transparent;520 color: var(--muted-foreground);521 cursor: pointer;522 font-family: var(--font-sans);523 font-size: 14px;524 font-weight: 500;525 letter-spacing: 0em;526 transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);527}528.tab:hover:not([aria-selected="true"]) {529 color: var(--foreground);530}531.tab[aria-selected="true"] {532 background: var(--card);533 color: var(--foreground);534 box-shadow: var(--shadow-sm);535}536```537 538### Table539 540```html541<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>542```543 544```css545.table {546 width: 100%;547 border-collapse: collapse;548 font-size: 14px;549 font-variant-numeric: tabular-nums;550}551.table th {552 text-align: left;553 height: 40px;554 padding: 0 16px;555 font-family: var(--font-sans);556 font-size: 13px;557 font-weight: 500;558 background: var(--muted);559 color: var(--muted-foreground);560 border-bottom: 1px solid var(--border);561}562.table td {563 height: 48px;564 padding: 0 16px;565 border-bottom: 1px solid var(--border);566 color: var(--foreground);567 transition: background-color var(--duration-fast) var(--ease-standard);568}569.table tbody tr:hover td {570 background: var(--accent);571 color: var(--accent-foreground);572}573```574 575### Dialog / modal576 577```html578<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>579```580 581```css582.dialog-overlay {583 position: fixed;584 inset: 0;585 background: rgba(14,12,38,0.5);586 backdrop-filter: blur(6px);587 -webkit-backdrop-filter: blur(6px);588 display: grid;589 place-items: center;590 padding: 24px;591}592.dialog {593 width: min(480px, 100%);594 background: var(--card);595 color: var(--card-foreground);596 border: 1px solid var(--border);597 border-radius: var(--radius-xl);598 box-shadow: var(--shadow-lg);599 padding: 28px;600}601```602 603### Text link604 605```html606<a class="link" href="…">Read more</a>607```608 609```css610.link {611 color: var(--primary);612 text-decoration: underline;613 text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent);614 text-decoration-thickness: 1px;615 text-underline-offset: 3px;616 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);617}618.link:hover {619 text-decoration-color: var(--primary);620}621```622 623## 8. Imagery & iconography624 625**Imagery.** Product-first: a real payments table in an app window, hard-cropped by the section edge, with one phone in front of it showing the notification the table just produced. Quiet warm grays, saffron on one figure. Card-network marks appear only at 24px inside payment-method rows. No stock photos of people holding phones.626 627**Icons.** 20px line icons, 1.5px stroke, rounded joins (Lucide). Default `muted-foreground`; saffron only for the active nav item. Card brands and bank logos are monochrome until selected.628 629## 9. Do / Don't630 631**Do**632 633- Set every monetary amount in mono tabular figures with the currency code in `muted-foreground`634- Keep the near-black `primary` for the single money-moving action on a screen635- Lift surfaces with a hairline border first, then `shadow-md` for popovers only636- Show payment state as a soft badge with a dot: Succeeded, Pending, Failed, Refunded637- Keep checkout to one 440px column with the total visible above the pay button638 639**Don't**640 641- Don't set display headlines heavier than 500; the calm weight is the identity642- Don't use `destructive` for anything but failed payments and irreversible actions643- Don't put two filled black buttons on one screen644- Don't round cards beyond `--radius-xl`; fully round shapes are for badges and avatars only645- Don't use gradients, glows or colored shadows anywhere; the only color is one saffron figure646 647## 10. tokens.css648 649Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.650 651```css652/* Iris Pay, tokens.css653 * https://freedesignmd.com/system/iris-pay654 * shadcn/ui-compatible variables. Light on :root, dark on .dark.655 * Default mode: light.656 */657@import url("https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500&family=Instrument+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap");658 659:root {660 --font-display: "Newsreader", 'Iowan Old Style', Georgia, serif;661 --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;662 --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;663 --type-display-size: clamp(36px, 25.60px + 2.667vw, 64px);664 --type-display-leading: 1.04;665 --type-display-weight: 400;666 --type-display-tracking: -0.02em;667 --type-h1-size: clamp(30px, 24.80px + 1.333vw, 44px);668 --type-h1-leading: 1.1;669 --type-h1-weight: 400;670 --type-h1-tracking: -0.02em;671 --type-h2-size: clamp(22px, 19.77px + 0.571vw, 28px);672 --type-h2-leading: 1.2;673 --type-h2-weight: 400;674 --type-h2-tracking: -0.01em;675 --type-h3-size: 18px;676 --type-h3-leading: 1.35;677 --type-h3-weight: 500;678 --type-h3-tracking: 0em;679 --type-body-size: 16px;680 --type-body-leading: 1.55;681 --type-body-weight: 400;682 --type-body-tracking: 0em;683 --type-small-size: 14px;684 --type-small-leading: 1.5;685 --type-small-weight: 400;686 --type-small-tracking: 0em;687 --type-label-size: 13px;688 --type-label-leading: 1.3;689 --type-label-weight: 500;690 --type-label-tracking: 0.005em;691 --type-mono-size: 13px;692 --type-mono-leading: 1.5;693 --type-mono-weight: 400;694 --type-mono-tracking: 0em;695 --space-1: 4px;696 --space-2: 8px;697 --space-3: 12px;698 --space-4: 16px;699 --space-5: 20px;700 --space-6: 24px;701 --space-8: 32px;702 --space-12: 48px;703 --space-16: 64px;704 --space-24: 96px;705 --radius: 8px;706 --radius-sm: 6px;707 --radius-md: 8px;708 --radius-lg: 12px;709 --radius-xl: 18px;710 --radius-full: 9999px;711 --duration-instant: 90ms;712 --duration-fast: 140ms;713 --duration-base: 220ms;714 --duration-slow: 420ms;715 --ease-standard: cubic-bezier(0.3, 0, 0.2, 1);716 --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);717 --ease-in: cubic-bezier(0.5, 0, 1, 1);718 --reveal-distance: 12px;719 --reveal-stagger: 60ms;720 --container-max: 1160px;721 --gutter: 24px;722 --section-y: 96px;723 --section-y-mobile: 56px;724 --measure: 62ch;725 --background: #f5f4f0;726 --foreground: #16181d;727 --card: #ffffff;728 --card-foreground: #16181d;729 --muted: #ebeae5;730 --muted-foreground: #5d6068;731 --primary: #16181d;732 --primary-foreground: #ffffff;733 --secondary: #e8e6df;734 --secondary-foreground: #16181d;735 --accent: #f5e7bd;736 --accent-foreground: #5a3d00;737 --border: rgba(22,24,29,0.12);738 --input: rgba(22,24,29,0.26);739 --ring: #b97a00;740 --destructive: #c0392b;741 --destructive-foreground: #ffffff;742 --success: #1f7a52;743 --success-foreground: #ffffff;744 --warning: #c98a0a;745 --warning-foreground: #2e2005;746 --chart-1: #16181d;747 --chart-2: #c98a0a;748 --chart-3: #7b7e86;749 --chart-4: #1f7a52;750 --chart-5: #c0392b;751 --shadow-sm: 0 1px 2px rgba(22,24,29,0.06), 0 0 0 1px rgba(22,24,29,0.03);752 --shadow-md: 0 10px 24px -14px rgba(22,24,29,0.22), 0 2px 6px -2px rgba(22,24,29,0.08);753 --shadow-lg: 0 36px 60px -34px rgba(22,24,29,0.34), 0 14px 28px -16px rgba(22,24,29,0.16);754}755 756.dark {757 --background: #0f1013;758 --foreground: #f2f0ea;759 --card: #17181c;760 --card-foreground: #f2f0ea;761 --muted: #1f2025;762 --muted-foreground: #9d9ea5;763 --primary: #f2f0ea;764 --primary-foreground: #0f1013;765 --secondary: #25262c;766 --secondary-foreground: #f2f0ea;767 --accent: #3a2f12;768 --accent-foreground: #f3d98d;769 --border: rgba(242,240,234,0.12);770 --input: rgba(242,240,234,0.24);771 --ring: #e6a92a;772 --destructive: #ff7a6b;773 --destructive-foreground: #2a0a06;774 --success: #4ad39b;775 --success-foreground: #04241a;776 --warning: #e6a92a;777 --warning-foreground: #2e2005;778 --chart-1: #f2f0ea;779 --chart-2: #e6a92a;780 --chart-3: #8b8d95;781 --chart-4: #4ad39b;782 --chart-5: #ff7a6b;783 --shadow-sm: 0 0 0 1px rgba(242,240,234,0.08);784 --shadow-md: 0 0 0 1px rgba(242,240,234,0.1), 0 16px 32px -12px rgba(0,0,0,0.6);785 --shadow-lg: 0 0 0 1px rgba(242,240,234,0.14), 0 40px 80px -20px rgba(0,0,0,0.75);786}787 788/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */789@theme inline {790 --color-background: var(--background);791 --color-foreground: var(--foreground);792 --color-card: var(--card);793 --color-card-foreground: var(--card-foreground);794 --color-muted: var(--muted);795 --color-muted-foreground: var(--muted-foreground);796 --color-primary: var(--primary);797 --color-primary-foreground: var(--primary-foreground);798 --color-secondary: var(--secondary);799 --color-secondary-foreground: var(--secondary-foreground);800 --color-accent: var(--accent);801 --color-accent-foreground: var(--accent-foreground);802 --color-border: var(--border);803 --color-input: var(--input);804 --color-ring: var(--ring);805 --color-destructive: var(--destructive);806 --color-destructive-foreground: var(--destructive-foreground);807 --color-success: var(--success);808 --color-success-foreground: var(--success-foreground);809 --color-warning: var(--warning);810 --color-warning-foreground: var(--warning-foreground);811 --color-chart-1: var(--chart-1);812 --color-chart-2: var(--chart-2);813 --color-chart-3: var(--chart-3);814 --color-chart-4: var(--chart-4);815 --color-chart-5: var(--chart-5);816 --font-heading: var(--font-display);817 --font-body: var(--font-sans);818 --font-code: var(--font-mono);819 --radius-ui-sm: var(--radius-sm);820 --radius-ui-md: var(--radius-md);821 --radius-ui-lg: var(--radius-lg);822 --radius-ui-xl: var(--radius-xl);823 --text-display: var(--type-display-size);824 --text-display--line-height: var(--type-display-leading);825 --text-display--letter-spacing: var(--type-display-tracking);826 --text-display--font-weight: var(--type-display-weight);827 --text-h1: var(--type-h1-size);828 --text-h1--line-height: var(--type-h1-leading);829 --text-h1--letter-spacing: var(--type-h1-tracking);830 --text-h1--font-weight: var(--type-h1-weight);831 --text-h2: var(--type-h2-size);832 --text-h2--line-height: var(--type-h2-leading);833 --text-h2--letter-spacing: var(--type-h2-tracking);834 --text-h2--font-weight: var(--type-h2-weight);835 --text-h3: var(--type-h3-size);836 --text-h3--line-height: var(--type-h3-leading);837 --text-h3--letter-spacing: var(--type-h3-tracking);838 --text-h3--font-weight: var(--type-h3-weight);839 --text-body: var(--type-body-size);840 --text-body--line-height: var(--type-body-leading);841 --text-body--letter-spacing: var(--type-body-tracking);842 --text-body--font-weight: var(--type-body-weight);843 --text-small: var(--type-small-size);844 --text-small--line-height: var(--type-small-leading);845 --text-small--letter-spacing: var(--type-small-tracking);846 --text-small--font-weight: var(--type-small-weight);847 --text-label: var(--type-label-size);848 --text-label--line-height: var(--type-label-leading);849 --text-label--letter-spacing: var(--type-label-tracking);850 --text-label--font-weight: var(--type-label-weight);851 --text-mono: var(--type-mono-size);852 --text-mono--line-height: var(--type-mono-leading);853 --text-mono--letter-spacing: var(--type-mono-tracking);854 --text-mono--font-weight: var(--type-mono-weight);855 --shadow-ui-sm: var(--shadow-sm);856 --shadow-ui-md: var(--shadow-md);857 --shadow-ui-lg: var(--shadow-lg);858}859 860@layer base {861 body {862 background: var(--background);863 color: var(--foreground);864 font-family: var(--font-sans);865 font-size: var(--type-body-size);866 line-height: var(--type-body-leading);867 font-weight: var(--type-body-weight);868 letter-spacing: var(--type-body-tracking);869 -webkit-font-smoothing: antialiased;870 }871 .type-display {872 font-family: var(--font-display);873 font-size: var(--type-display-size);874 line-height: var(--type-display-leading);875 font-weight: var(--type-display-weight);876 letter-spacing: var(--type-display-tracking);877 }878 .type-h1 {879 font-family: var(--font-display);880 font-size: var(--type-h1-size);881 line-height: var(--type-h1-leading);882 font-weight: var(--type-h1-weight);883 letter-spacing: var(--type-h1-tracking);884 }885 .type-h2 {886 font-family: var(--font-display);887 font-size: var(--type-h2-size);888 line-height: var(--type-h2-leading);889 font-weight: var(--type-h2-weight);890 letter-spacing: var(--type-h2-tracking);891 }892 .type-h3 {893 font-family: var(--font-display);894 font-size: var(--type-h3-size);895 line-height: var(--type-h3-leading);896 font-weight: var(--type-h3-weight);897 letter-spacing: var(--type-h3-tracking);898 }899 .type-body {900 font-family: var(--font-sans);901 font-size: var(--type-body-size);902 line-height: var(--type-body-leading);903 font-weight: var(--type-body-weight);904 letter-spacing: var(--type-body-tracking);905 }906 .type-small {907 font-family: var(--font-sans);908 font-size: var(--type-small-size);909 line-height: var(--type-small-leading);910 font-weight: var(--type-small-weight);911 letter-spacing: var(--type-small-tracking);912 }913 .type-label {914 font-family: var(--font-sans);915 font-size: var(--type-label-size);916 line-height: var(--type-label-leading);917 font-weight: var(--type-label-weight);918 letter-spacing: var(--type-label-tracking);919 }920 .type-mono {921 font-family: var(--font-mono);922 font-size: var(--type-mono-size);923 line-height: var(--type-mono-leading);924 font-weight: var(--type-mono-weight);925 letter-spacing: var(--type-mono-tracking);926 }927 h1 {928 font-family: var(--font-display);929 font-size: var(--type-h1-size);930 line-height: var(--type-h1-leading);931 font-weight: var(--type-h1-weight);932 letter-spacing: var(--type-h1-tracking);933 }934 h2 {935 font-family: var(--font-display);936 font-size: var(--type-h2-size);937 line-height: var(--type-h2-leading);938 font-weight: var(--type-h2-weight);939 letter-spacing: var(--type-h2-tracking);940 }941 h3 {942 font-family: var(--font-display);943 font-size: var(--type-h3-size);944 line-height: var(--type-h3-leading);945 font-weight: var(--type-h3-weight);946 letter-spacing: var(--type-h3-tracking);947 }948 code, kbd, samp, pre {949 font-family: var(--font-mono);950 }951 ::selection {952 background: var(--primary);953 color: var(--primary-foreground);954 }955 .container {956 width: 100%;957 max-width: var(--container-max);958 margin-inline: auto;959 padding-inline: var(--gutter);960 }961 .section {962 padding-block: var(--section-y);963 }964 .prose {965 max-width: var(--measure);966 }967 .reveal {968 opacity: 0;969 transform: translateY(var(--reveal-distance));970 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);971 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));972 }973 .reveal.is-in {974 opacity: 1;975 transform: none;976 }977 @media (prefers-reduced-motion: reduce) {978 .reveal { opacity: 1; transform: none; transition: none; }979 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }980 }981}982```983 984Tailwind v3:985 986```js987// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)988module.exports = {989 darkMode: "class",990 theme: {991 extend: {992 colors: {993 "background": "var(--background)",994 "foreground": "var(--foreground)",995 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },996 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },997 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },998 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },999 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1000 "border": "var(--border)",1001 "input": "var(--input)",1002 "ring": "var(--ring)",1003 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1004 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1005 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1006 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1007 },1008 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1009 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1010 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1011 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1012 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1013 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1014 },1015 },1016};1017```1018 1019Dependencies: `lucide-react`Save as DESIGN.md in the repo root and add “Follow DESIGN.md for all UI” to CLAUDE.md, AGENTS.md or your Cursor rules.


