# Rising Company Design System > One brand, two themes. Same type pairing, same spacing, same voice, same token names — > only the palette and the amount of chrome change. > > - **Mission** (dark) — mission control / technical HUD. Internal and operator-facing surfaces. > - **Daylight** (light) — same system in daylight. Public and user-facing surfaces. > > **Animation quality is the first priority of the design.** Motion is designed before it is > written, built on [Motion](https://motion.dev), and a still view beats a careless one. > See "Motion" below. ## Themes The **default** theme is a product decision: a product picks it by who it serves, below. It may then opt in to letting the reader's own appearance setting decide (`data-theme="auto"`). Both themes expose the *same variable names*, so every component below is written once and works in either. ### Picking a theme | Use it for | Theme | |---|---| | Operator consoles, dashboards, diagram/map views, admin, internal tools | **Mission** | | Anything an external user lands on: marketing, landing pages, onboarding, sign-in for non-staff | **Daylight** | | Long-form reading, forms, data entry, docs, anything used in a bright room or on a projector | **Daylight** | | Ambient / always-on displays, monitoring walls, low-light rooms | **Mission** | Rules of thumb: - **If a stranger sees it first, it's Daylight.** A cold visitor should not be met with a black screen and a bare input. Sign-in is the *end* of a landing page, not a substitute for one. - **If the user is already logged in and doing operator work, it's Mission.** - A product may ship both — Daylight for its public/marketing surface and Mission for the app behind the login. Switch at the auth boundary, not per-page. - **The reader's appearance setting may decide — if the product opts in.** A product picks its default theme by the rules above. It may then opt in to `data-theme="auto"`, which follows the reader's OS setting: Mission unless the OS asks for light, then Daylight. A product that hasn't opted in stays on its theme whatever the OS says. - **Never override a choice the person made.** If the product offers a theme control, it has three states — *System* (= `auto`), *Mission*, *Daylight* — remembers the choice per person, and renders it on the server so the page never flashes the wrong theme first. Nothing switches theme on its own: not the time of day, not the page, not the route. ### Applying a theme Set `data-theme` on the root element. `mission` is the default when the attribute is absent. ```html ``` `auto` is pure CSS — a `prefers-color-scheme: light` block that mirrors the Daylight tokens, including the Increase Contrast overrides — so there is no script and no flash. Put it on `` only. Each theme also sets `color-scheme`, so native scrollbars, date pickers and autofill follow the theme. A product with a theme control writes the person's choice (`auto`, `mission` or `daylight`) into the server-rendered `` — from a cookie, say — rather than swapping it in after load. ```css /* ---- Mission (default / dark) ---- */ :root, [data-theme="mission"] { --bg-base: #0a0c10; --bg-surface: #0d1117; --bg-surface-hover: #0f1520; --bg-inset: #0a1410; --border: #1a2a20; --border-hover: #2a4a38; --border-subtle: #1a3020; --border-grid: #111820; --text-heading: #e8f4ff; --text-body: #c8d8e8; --text-muted: #84a89a; --text-dim: #6e8f80; --accent: #3af0a0; /* brand fill — identical in both themes */ --accent-hover: #6ff7be; /* --accent under hover */ --accent-ink: #3af0a0; /* accent as text / icon / border */ --accent-on: #08150f; /* text on top of --accent */ --accent-wash: #3af0a014; /* accent @ 8% */ --accent-line: #3af0a050; /* accent @ 31% */ --accent-bracket: #3af0a040; /* accent @ 25% */ --accent-2: #2a7adf; --accent-2-ink: #2a7adf; --danger: #ff4a24; --danger-ink: #ff4a24; --danger-wash: #ff4a2414; --danger-line: #ff4a2450; --warning: #f5b83d; --warning-ink: #f5b83d; --warning-wash: #f5b83d14; --warning-line: #f5b83d50; --gradient: linear-gradient(90deg, #3af0a0, #2a7adf); --card-shadow: none; /* elevation is background shift only */ --chrome-scanline: rgba(0, 0, 0, 0.04); /* scanline stripe color */ --chrome-bracket-display: block; /* corner brackets on */ --chrome-glow: rgba(58, 240, 160, 0.05); /* atmosphere radial */ --chrome-grid-line: rgba(17, 24, 32, 0.7); /* atmosphere grid */ } /* ---- Daylight (light) ---- */ [data-theme="daylight"] { --bg-base: #f6f8f7; --bg-surface: #ffffff; --bg-surface-hover: #eef3f0; --bg-inset: #e8f5ee; --border: #dde5e0; --border-hover: #9dc4b0; --border-subtle: #e6ede9; --border-grid: #e9efeb; --text-heading: #0b1a14; --text-body: #26332d; --text-muted: #43564c; --text-dim: #52655b; --accent: #3af0a0; --accent-hover: #22dc8c; /* --accent under hover */ --accent-ink: #0b7a4e; /* mint is illegible on white — text/borders darken */ --accent-on: #08150f; --accent-wash: #0b7a4e12; --accent-line: #0b7a4e45; --accent-bracket: #0b7a4e30; --accent-2: #2a7adf; --accent-2-ink: #1f5fbf; --danger: #ff4a24; --danger-ink: #c02a10; --danger-wash: #c02a1012; --danger-line: #c02a1045; --warning: #f5b83d; --warning-ink: #8a5a00; --warning-wash: #8a5a0012; --warning-line: #8a5a0045; --gradient: linear-gradient(90deg, #0b7a4e, #1f5fbf); --card-shadow: 0 1px 2px rgba(11, 26, 20, 0.04); /* one hairline, never more */ --chrome-scanline: transparent; /* no scanlines in Daylight */ --chrome-bracket-display: none; /* no corner brackets */ --chrome-glow: rgba(11, 122, 78, 0.04); --chrome-grid-line: rgba(11, 26, 20, 0.035); } /* ---- Retired gray names: aliases, so older product code still renders ---- */ :root, [data-theme] { --text-subtle: var(--text-muted); --text-label: var(--text-dim); } ``` ### Contrast Both ramps are tuned to the same rungs, so a component that reads correctly in one theme reads correctly in the other. Contrast vs. the theme's `--bg-base`: | Token | Mission | Daylight | Use | |---|---|---|---| | `--text-heading` | 17.5 | 16.8 | titles | | `--text-body` | 13.5 | 12.4 | body copy | | `--text-muted` | 7.5 | 7.4 | descriptions, subtitles, nav links | | `--text-dim` | 5.5 | 5.8 | labels, placeholders, footer chrome | | `--accent-ink` | 13.2 | 5.0 | accent text, icons, borders | **Four grays, not six.** Heading, body, muted, dim — the same four levels as label, secondary, tertiary and quaternary on Apple platforms. Two grays that sat 0.2 apart in contrast (`--text-muted` / `--text-subtle`, `--text-label` / `--text-dim`) read as one level with a rounding error, so every component carried a decision nobody could see. `--text-subtle` and `--text-label` still resolve — as aliases for `--text-muted` and `--text-dim` — so older product code keeps rendering; new code uses the four names. **Every rung clears AA (4.5:1); the lowest sits at 5.5.** That is deliberate: almost everything on the dim rung is 12px Share Tech Mono, and Share Tech Mono has hairline stems that go grey and blurry on a 1× display. Contrast is what buys those stems back. `--text-dim` is the rung for labels, placeholders, footer chrome and the backlink. `--accent` (`#3af0a0`) is a **fill**, not an ink, in Daylight: 1.4:1 on white. Use it as a button/badge background with `--accent-on` text, never as text or a 1px border on light. ### Theme-conditional chrome | Effect | Mission | Daylight | |---|---|---| | Scanlines | required | off | | Corner brackets | required on full-bleed HUD views | off | | Atmosphere grid | on — mint glow over a 48px grid | on, but near-invisible (`--chrome-grid-line` @ 3.5%) | | Elevation | background shift only (`--card-shadow: none`) | background shift + one hairline (`--card-shadow`) | Page margins, spacing, radii, type and motion are **identical in both themes** — only the four rows above differ. Daylight drops the HUD texture on purpose. The brand carries in Daylight through the Rajdhani titles, the Share Tech Mono labels, the `//` prefix, the mint, and the spacing — not through darkness. --- ## Fonts Import: https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Share+Tech+Mono&family=Rajdhani:wght@500;700&display=swap Three faces, one job each — the tokens live in `rising.css`: | Token | Face | Weights | Job | |---|---|---|---| | `--font-display` | "Rajdhani", sans-serif | 700 | titles (hero, page, section, card) and the wordmark | | `--font-text` | "IBM Plex Sans", system-ui, sans-serif | 400 · 500 · 600 | everything a person reads or presses: body, lede, help, errors, inputs, buttons, links, menu items, field labels | | `--font-mono` | "Share Tech Mono", monospace | 400 | readouts: eyebrows, section labels, stats, badges, tags, status, IDs, build stamps, footers | **The test is what the words are for.** If a person reads it as a sentence or presses it, it is IBM Plex Sans. If it reports the state of the system — a label over a group, a count, a date, an ID, a build — it is mono. If it names the page, it is Rajdhani. `body` is IBM Plex Sans, so anything unclassed reads as text. Titles name their face (`.page-title`, `.sec-title`, `.card-title`, `.hero-title`, `.wordmark` all set `--font-display`); a bare `

` with no class is IBM Plex Sans until you give it one. Why IBM Plex Sans: Rajdhani is a display face — condensed, squared, lovely at 56px and tiring over a 15px paragraph. The text face needs to read cleanly at 14–16px on a 1× monitor, and it needs to belong to this brand rather than to every product on the web — which rules out Inter and the system UI font. Plex is an engineered grotesk: its squared curves and flat terminals rhyme with Rajdhani and the mono, so the three read as one instrument panel, while its open apertures and generous x-height keep long text easy. Unchanged across themes. ## Colors Reference the variables above rather than literal hex. Raw values, per theme: ### Backgrounds | Token | Mission | Daylight | Use | |---|---|---|---| | `--bg-base` | `#0a0c10` | `#f6f8f7` | page background | | `--bg-surface` | `#0d1117` | `#ffffff` | cards, panels, elevated containers | | `--bg-surface-hover` | `#0f1520` | `#eef3f0` | interactive surface hover | | `--bg-inset` | `#0a1410` | `#e8f5ee` | badge backgrounds, recessed areas | ### Borders | Token | Mission | Daylight | Use | |---|---|---|---| | `--border` | `#1a2a20` | `#dde5e0` | card borders, dividers | | `--border-hover` | `#2a4a38` | `#9dc4b0` | card hover borders | | `--border-subtle` | `#1a3020` | `#e6ede9` | faint separators, list row rules | | `--border-grid` | `#111820` | `#e9efeb` | background structural lines | ### Text | Token | Mission | Daylight | Use | |---|---|---|---| | `--text-heading` | `#e8f4ff` | `#0b1a14` | page/card titles | | `--text-body` | `#c8d8e8` | `#26332d` | primary body text | | `--text-muted` | `#84a89a` | `#43564c` | descriptions, subtitles, nav links | | `--text-dim` | `#6e8f80` | `#52655b` | section labels, stat labels, placeholders, footer chrome | | `--text-subtle` | → `--text-muted` | → `--text-muted` | retired; alias kept for old code | | `--text-label` | → `--text-dim` | → `--text-dim` | retired; alias kept for old code | ### Accents | Token | Mission | Daylight | Use | |---|---|---|---| | `--accent` | `#3af0a0` | `#3af0a0` | brand fill (button/badge background) | | `--accent-hover` | `#6ff7be` | `#22dc8c` | `--accent` under hover — keeps `--accent-on` text | | `--accent-ink` | `#3af0a0` | `#0b7a4e` | accent text, icons, 1px borders | | `--accent-on` | `#08150f` | `#08150f` | text on top of `--accent` | | `--accent-2-ink` | `#2a7adf` | `#1f5fbf` | secondary accent | | `--danger-ink` | `#ff4a24` | `#c02a10` | error / destructive | | `--warning-ink` | `#f5b83d` | `#8a5a00` | warning / caution | ### Derivatives & chrome Every accent also carries a wash and a line; these are real tokens, not values to recompute at the call site. | Token | Mission | Daylight | Use | |---|---|---|---| | `--accent-wash` | `#3af0a014` | `#0b7a4e12` | selected / active surface wash | | `--accent-line` | `#3af0a050` | `#0b7a4e45` | accent border | | `--accent-bracket` | `#3af0a040` | `#0b7a4e30` | corner brackets | | `--danger-wash` | `#ff4a2414` | `#c02a1012` | error banner background | | `--danger-line` | `#ff4a2450` | `#c02a1045` | error banner border | | `--warning-wash` | `#f5b83d14` | `#8a5a0012` | caution background | | `--warning-line` | `#f5b83d50` | `#8a5a0045` | caution border | | `--gradient` | mint → blue | deep green → blue | card hover bar | | `--card-shadow` | `none` | `0 1px 2px rgba(11,26,20,0.04)` | elevation | | `--chrome-scanline` | `rgba(0,0,0,0.04)` | `transparent` | scanline stripe | | `--chrome-bracket-display` | `block` | `none` | corner bracket visibility | | `--chrome-glow` | `rgba(58,240,160,0.05)` | `rgba(11,122,78,0.04)` | atmosphere radial | | `--chrome-grid-line` | `rgba(17,24,32,0.7)` | `rgba(11,26,20,0.035)` | atmosphere grid | `--accent-2`, `--danger` and `--warning` also exist as full-strength fills (identical in both themes) alongside the `-ink` variants above — use the fill as a background with dark type, the ink as text or a 1px border. ### State Recipe Any accent derives the same way — no extra tokens needed: - Background wash: accent-ink @ 8% alpha (hex suffix `14`, or `12` on light) - Border: accent-ink @ 31% alpha (hex suffix `50`, or `45` on light) - Text/icon: `--accent-ink` at full strength Examples — selected row: `--accent-wash` bg / `--accent-line` border / `--accent-ink` text. Error banner: `#ff4a2414` / `#ff4a2450` / `#ff4a24` in Mission; `#c02a1012` / `#c02a1045` / `#c02a10` in Daylight. ## Text Styles **Seven sizes.** Each step is clearly bigger than the one below it — the eye can't tell 15, 16, 17 and 18 apart, so steps that close read as mistakes rather than levels. Nothing renders between them. | Token | px | rem | Used by | |---|---|---|---| | `--type-label` | 12 | 0.75rem | every mono label — the floor | | `--type-small` | 14 | 0.875rem | help, errors, field labels, nav links, menu items, small buttons, subtitle | | `--type-body` | 16 | 1rem | body, inputs, buttons | | `--type-lead` | 20 | 1.25rem | lede, card title, stat value, wordmark | | `--type-section` | 28 | 1.75rem | section heading; page title on phones | | `--type-page` | 36 | 2.25rem | page title | | `--type-hero` | 56 | 3.5rem | hero title at its widest (`clamp(36px, 7vw, 56px)`) | | Style | Family | Size | Weight | Letter-Spacing | Transform | Color | |---|---|---|---|---|---|---| | Hero Title | Rajdhani | `clamp(36px, 7vw, 56px)` | 700 | 2px | uppercase | `--text-heading` | | Page Title | Rajdhani | 36px (28px below 768px) | 700 | 3px | uppercase | `--text-heading` | | Section Heading | Rajdhani | 28px | 700 | 2px | none | `--text-heading` | | Card Title | Rajdhani | 20px | 700 | 1px | none | `--text-heading` | | Lede | IBM Plex Sans | 20px | 400 | normal | none | `--text-muted` | | Body | IBM Plex Sans | 16px | 400 | normal | none | `--text-muted` | | Button | IBM Plex Sans | 16px (14px `.btn-sm`) | 600 | normal | none | per variant | | Nav Link / Menu Item | IBM Plex Sans | 14px | 500 | normal | none | `--text-muted` / `--text-body` | | Field Label | IBM Plex Sans | 14px | 500 | normal | none | `--text-body` | | Help / Error | IBM Plex Sans | 14px | 400 / 500 | normal | none | `--text-muted` / `--danger-ink` | | Stat Value | Share Tech Mono | 20px | normal | 0.06em | none | `--accent-ink` | | Subtitle | Share Tech Mono | 14px | normal | 0.1em | none | `--text-muted` | | Eyebrow | Share Tech Mono | 12px | normal | 0.2em | uppercase | `--accent-ink` | | Section Label | Share Tech Mono | 12px | normal | 0.2em | uppercase | `--text-dim` | | Badge | Share Tech Mono | 12px | normal | 0.05em | none | `--text-dim` | | Footer | Share Tech Mono | 12px | normal | 0.1em | none | `--text-dim` | Line-height: headings 1.1 · button 1.25 · lede 1.5 · body 1.6 · mono metadata 1.5–1.9. **A control is never the smallest type on the page.** Buttons are 16px, the same as the body they act on; a call to action set in 12px mono caps was the quietest thing on the screen. Hierarchy comes from size and weight, not from caps and tracking. ### On phones (≤ 768px) A phone gets the same type scale with one exception: the page title. The rule for everything else is **wrap or stack, never shrink.** - **Page Title steps down one rung, to 28px** (`--type-section`). At 36px with 3px tracking, uppercase Rajdhani fits barely a dozen characters across a 390px phone once the 24px gutters are taken. A title like `SEPTEMBER 2026` next to its ← → actions breaks into two oversized lines that push the content below the fold. 28px keeps it a heading without taking over the screen, and stays on the scale. - **Hero Title already scales** through its `clamp()`. It needs no override. - **The floors don't move.** Body stays 16px, mono stays 12px, and inputs stay 16px (anything smaller triggers zoom-on-focus in mobile Safari). When something doesn't fit, it wraps or stacks. - **A title that carries data wraps anywhere.** A record's name (a venue, a huddle, a client) can be one long unbroken word. Give the title `min-width: 0` and `overflow-wrap: anywhere` so the word breaks instead of widening the page. - **Nothing scrolls the page sideways.** Actions beside a title wrap beneath it (`.page-header-row` wraps). Toolbars wrap. List rows built as columns stack: the primary label on top with its meta line beneath, the amount on the right. Header rows are hidden. The one sideways scroller is the app nav row, and it says so with an edge fade (see "App Shell"). ### Type follows the reader's text size **Every `font-size` ships in `rem`, never `px`.** The scale above is written in px because that is how a designer reads it; the CSS divides by 16 — 12px is `0.75rem`, 14px is `0.875rem`, 36px is `2.25rem` — and reaches them through the `--type-*` tokens. When a reader has asked for larger text (browser or OS text size, the iOS/macOS accessibility setting), every style grows with it instead of ignoring them. - Borders, radii, spacing and tracking stay in px or `em`. Text grows; the frame around it doesn't have to. - A width that holds text grows with it: the sidebar is `min(16.25rem, 40vw)` (260px at default), module tags are `1.75rem`. A fixed px width around text is a bug at 200%. - At large sizes things wrap, they don't scroll sideways. The landing nav wraps to a second row; a full-width (`.btn-block`) button lets its label wrap. - Check a change at 200%: set `document.documentElement.style.fontSize = "32px"` and look at the desktop and the 390px phone. `scrollWidth` must equal the viewport width. ### Three rules hold the small sizes together Both exist for 1× (non-Retina) displays, where most of this system is actually read: **12px is the floor for Share Tech Mono. Nothing smaller, ever.** Its stems are roughly 7% of the em, so below 12px they sample to under one device pixel on a 1× monitor and render as grey blur. The identical text looks crisp on a Retina laptop, which is why the floor has to be a rule rather than a judgement call — the display you designed on is not the display it ships to. **14px is the floor for IBM Plex Sans; reading text is 16px.** Plex's stems are sturdier than the mono's, so it holds at 14px for help, errors and controls. A paragraph a person reads start to finish is 16px at weight 400 — and Rajdhani never sets a paragraph at all. **Mono tracking is expressed in `em`, never `px`.** Tracking that reads as deliberate HUD spacing at 12px reads as disconnected characters at 10px; `em` pins the ratio whatever the size. `0.2em` is the widest rung in the system — past about a quarter of an em the eye stops resolving words and starts spelling out letters. ## Spacing - Page: 48px — header, main, side padding (24px below 768px) - Landing section: 96px — vertical rhythm between landing-page bands (64px below 768px) - Section: 32px — between major sections inside an app view - Element: 24px — card padding, landing-footer vertical padding - Grid: 16px — grid gap between cards, app-footer vertical padding - Inline: 12px — gap between badges - Tight: 8px — between related text elements ## Border Radius - Card: 6px — cards, panels - Control: 4px — buttons, inputs, tooltips - Badge: 3px — badges, small tags ## Motion **Animation quality is the first priority of Rising Company design.** Motion is the first thing a person feels on a screen and the first thing that reads as cheap when it is wrong — one mistimed panel undoes careful type and color in a single frame. So motion is designed, not added. Before an animation is written, answer five questions: what moves, why, how it enters, how it leaves, and what it does under reduced motion. If any of them has no answer, the element does not animate. **A still view beats a careless one.** Motion is identical in Mission and Daylight — same curves, same distances, same durations. ### Library — Motion (motion.dev), required Everything beyond the CSS hover/focus transitions below is built on [Motion](https://motion.dev) — `npm i motion`. One engine and one set of curves, so every product moves the same way. - React: `import { motion, AnimatePresence, MotionConfig, useReducedMotion } from "motion/react"` - Vanilla / non-React: `import { animate, stagger } from "motion"` - Do not hand-roll animation — no `setTimeout` choreography, no `requestAnimationFrame` loops, no class-toggle sequences — and do not add a second engine (GSAP, react-spring, anime.js). Static CSS `transition` stays for hover, focus and color; that is what it's for. Wrap every React app root once: ```jsx {children} ``` `reducedMotion="user"` turns off transform and layout animation for people who asked for it and keeps opacity — the same contract as the CSS block at the end of this section. The default transition is a critically damped spring: natural deceleration, interruptible, no overshoot. ### Scale Durations and curves are a scale, like spacing. Pick from it; do not invent a value. | Tier | Value | Use | |---|---|---| | Quick | 0.2s `ease` (CSS) · `{ duration: 0.2, ease: "easeOut" }` | hover, focus, color, border, opacity — the transitions on every control | | Base | `{ type: "spring", visualDuration: 0.3, bounce: 0 }` | anything that moves or resizes: menus, panels, drawers, toasts, list rows, layout changes | | Slow | `{ type: "spring", visualDuration: 0.5, bounce: 0 }` · 0.6s `ease` (CSS load reveal) | whole surfaces: page reveal, route transition, modal and scrim | | Ambient | ≥ 2.4s `ease-out`, looping | the status pulse — and nothing else | - **Springs move, tweens fade.** Anything with a position or size uses the spring; opacity and color use the Quick tween. Springs are interruptible — a hover-out halfway through a hover reverses from where it is, not from the end. - **Exits are faster than entries** — about 0.6× the entry and fade-led: `exit: { opacity: 0, transition: { duration: 0.15 } }`. Nothing pops out of existence; conditionally rendered elements sit inside `AnimatePresence`. - **`bounce: 0`, always.** Nothing bounces, overshoots or wobbles. The brand is an instrument panel, not a toy. - Stagger 40–90ms per item and cap the whole sequence at 600ms. Past eight items, batch — a 30-row table does not enter one row at a time. ### Distances Small. Motion suggests where something came from; it does not travel there. - Enter / reveal — sections, cards, toasts: `y: 8 → 0` with opacity. - Menus, tooltips, popovers: `y: 4 → 0`, `scale: 0.98 → 1`, growing from their anchor via `transformOrigin`. - Never scale from 0. Never slide from off-screen unless the element lives off-screen (a drawer or sheet) — then translate the panel at Base and fade the scrim at Quick. ### Rules 1. **Motion has a job** — reveal, confirm, orient (where did this come from) or connect (this became that). Name the job in the code. If you can't, cut the animation. 2. **Transform and opacity only.** `x`, `y`, `scale`, `rotate`, `opacity`. Never animate `width`, `height`, `top`, `left`, `margin`, `padding`, `box-shadow` or `filter`. Size and position changes go through Motion's `layout` prop, which runs them as transforms. 3. **Never block input.** Nothing waits on an animation; a user can click through a reveal. Nothing runs longer than Slow except the status pulse. 4. **One entrance per view.** The page reveals, or the panel opens — a section that is revealing does not also stagger the cards inside it. 5. **Loops are for live state.** The status dot pulses because the system is live. A skeleton may breathe on opacity at Ambient. Nothing else loops, shimmers or spins except a spinner. 6. **Reduced motion is a state, not a fallback.** Every animation has a defined reduced version — transforms off, opacity kept, content at its final state. Verify it by toggling the OS setting, not by assumption. 7. **60fps on a 1× machine.** Test with DevTools CPU throttling at 4×. If it drops frames, simplify: fewer elements, no blur, no `layout` on long lists. `will-change` only on the element about to move, and removed after. 8. **Review it in motion.** A screenshot cannot approve an animation. Watch it live before merging — entrance, exit, interruption (toggle it mid-flight) and reduced motion. ### Recipes Panel / menu — the user menu, popovers, toasts: ```jsx {open && ( )} ``` Staggered list — cards, results; cap at eight: ```jsx {items.map((item) => ( ))} ``` Layout change — a card growing, a row leaving: ```jsx ``` Vanilla, no React: ```js import { animate, stagger } from "motion" animate(".card", { opacity: [0, 1], y: [8, 0] }, { type: "spring", visualDuration: 0.3, bounce: 0, delay: stagger(0.06) }) ``` ### CSS transitions Hover, focus and color states on controls stay in CSS — Quick tier, default `ease`: ```css transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s; ``` Properties: border-color, background, color, opacity, transform. Nothing else. ### Load Reveal (optional) Staggered boot-up on page load — sections fade up in document order: opacity 0 → 1, translateY 8px → 0, 0.6s ease, 90ms stagger per section. CSS keyframes on a static page; `variants` with `staggerChildren: 0.09` in an app. One reveal per page — it is the page's entrance, not each component's. Under `prefers-reduced-motion`: animation none, content fully visible. ### Reduced motion (required) `rising.css` ships this; every product keeps it, alongside `MotionConfig reducedMotion="user"`: ```css @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } /* Transforms off, opacity kept: the press dims instead of shrinking. */ .btn:active:not([disabled]):not([aria-busy="true"]) { transform: none; opacity: 0.8; } } ``` ## Interaction States ### Focus Ring (required) Keyboard focus only — style via `:focus-visible`, never plain `:focus`: ```css :focus-visible { outline: 1px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; } ``` ### Text Selection (required) ```css ::selection { background: var(--accent); color: var(--accent-on); } ``` ### Disabled No new colors — reuse the low-emphasis ramp: text/icon `--text-dim`, border `--border-subtle`, background unchanged. No hover transitions, `cursor: not-allowed`. ### Press (required) The response to touch-down is the first thing a person feels, before any hover, colour or panel. Every button answers it: `scale(0.97)` the instant the pointer goes down (0s on the way in), easing back at Quick on release. Under reduced motion it dims to `opacity: 0.8` instead. Disabled and busy buttons don't press. ```css .btn { transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s; } .btn:active:not([disabled]):not([aria-busy="true"]) { transform: scale(0.97); transition-duration: 0s; } ``` A framework button built on Motion uses `whileTap={{ scale: 0.97 }}` for the same thing. ### Touch Targets (required) A finger needs 44 × 44px. Desktop keeps its density; a touch screen gets the full target, keyed on the pointer rather than the viewport width (an iPad shows the desktop layout with a finger on it): ```css @media (pointer: coarse) { .btn, .user-menu-trigger, .user-menu-item, .app-sidebar-nav a { min-height: 44px; } } ``` Anything new that is tapped joins that list. ### Contrast Preferences (required) **Increase Contrast** (`prefers-contrast: more` — macOS, iOS, Windows) is a reader's request, and both themes answer it through the tokens, so every component follows: | Token | Mission | Daylight | |---|---|---| | `--text-muted` | `#b8ccc2` (11.6:1) | `#26332d` (12.4:1) | | `--text-dim` | `#a3bdb0` (9.8:1) | `#34443c` (9.7:1) | | `--accent-ink` | unchanged | `#075c3a` (7.6:1) | | `--border` / `--border-subtle` | `#466b58` (3.2:1) | `#7a9085` (3.2:1) / `#a7b8af` | | scanlines, glow, grid | off | off | Every text rung clears AAA (7:1); borders clear the 3:1 that control edges need. Select Mission as `:root:not([data-theme="daylight"]), [data-theme="mission"]` inside the query — a bare `:root` there would override Daylight's tokens. **Forced colours** (`forced-colors: active` — Windows High Contrast) hands the palette to the system. Drop the texture (scanlines, atmosphere, brackets), give `.btn` a `ButtonText` border, and use `forced-color-adjust: none` only on the marks whose meaning is their colour: the status dot and the sidebar's active bar (`Highlight`). Transparent borders get painted in this mode, so `.app-nav` links set theirs to `Canvas` and the current one to `Highlight`. Verify with DevTools → Rendering → "Emulate CSS media feature prefers-contrast / forced-colors", or CDP `Emulation.setEmulatedMedia`. ## Visual Effects ### Scanlines (Mission only) Fixed layer **behind** the content (`z-index: -1`), `pointer-events: none`. Texture sits under the words, never over them: any surface — card, list, input, the app bar — covers it, so it reads as the room, not as a film over the text. Driven by the theme token, so the same rule is inert in Daylight. Paint the page ground on `body` only (not `html`, not a full-height wrapper) — anything opaque between the canvas and the content covers the lines: ```css body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: repeating-linear-gradient( to bottom, transparent 0px, transparent 3px, var(--chrome-scanline) 3px, var(--chrome-scanline) 4px ); } ``` ### Corner Brackets (Mission only) 32x32px L-shaped borders at viewport corners. Border color `var(--accent-bracket)`, positioned 16px from edges, `display: var(--chrome-bracket-display)`. ### Card Hover Gradient 2px bar at card top: `var(--gradient)`. Hidden (`opacity: 0`) by default, `opacity: 1` on hover. ### Card Elevation Apply `box-shadow: var(--card-shadow)` unconditionally. Daylight has no dark field to sit on, so it resolves to one hairline (`0 1px 2px rgba(11, 26, 20, 0.04)`); Mission resolves it to `none`, where elevation is background shift only. One rule, both themes. --- ## React components (`@rising/ui`) The system is CSS and markup first: every component above works from `rising.css` and the markup in this file. A **React** product also installs `@rising/ui`, which ships the parts that carry behaviour, so each product doesn't rebuild them (ADR-0016 in the agent handbook). ```bash npm i https://design-system.rising.company/ui/rising-ui-0.1.0.tgz ``` | Import | What it is | |---|---| | `@rising/ui/motion` | The motion scale: `base`, `slow`, `quick`, `exitTween`, and the `panel`, `enter`, `reveal`, `revealItem` recipes. Plain values, safe in a server component. | | `@rising/ui/motion-components` | `MotionProvider` (wrap the app root once), `Reveal` and `RevealItem` (the load reveal). | | `@rising/ui/user-menu` | `UserMenu`, `UserMenuLink`, `UserMenuItem`, `initials` — the App Shell user menu on Base UI's Menu. | ```tsx import Link from "next/link"; import { UserMenu, UserMenuLink } from "@rising/ui/user-menu"; }>Settings ``` - **The components render this file's markup and classes.** They ship no CSS: the product carries the matching `rising.css` rules (or the whole file), as it does today. - **Native first, then Base UI.** Where the platform already does the job, the component is the native element (``, a checkbox with `role="switch"`, radios) and needs no React wrapper. Where it doesn't (menus, popovers, tooltips, toasts, select, combobox), the component is built on [Base UI](https://base-ui.com) (`@base-ui/react`) for focus, keyboard and ARIA, and animated with Motion through Base UI's `render` prop. - **Versions are immutable URLs.** A new release is a new `rising-ui-.tgz`; bump the URL in the product to upgrade. `motion`, `react` and `react-dom` are peer dependencies, so the product's `MotionProvider` drives the package's animations too. - A component that isn't in the package yet is built in the product from this file, as before. When a second product needs it, it moves into the package. ## Components ### Icon **Lucide** (lucide.dev, ISC), made ours by its ends: square caps and mitred joins, which echo Rajdhani's cut corners and the HUD brackets. Lucide's round default reads friendly and generic. No other icon set, and no icon drawn with CSS borders or typed as a glyph (`←`, `+`, `›`). - **Stroke 1.5px at every size.** The stroke doesn't scale with the icon (`vector-effect: non-scaling-stroke`, Lucide's `absoluteStrokeWidth`), so 16px and 24px icons match. - **Three sizes, paired with type:** `.icon-sm` 16px beside 14px text · `.icon` 20px (1.25em) beside 16px text · `.icon-lg` 24px for icon-only buttons and the nav. - **`currentColor` only.** An icon takes the colour of the text beside it. Colour never carries the meaning alone: a warning icon sits next to words that say so. - **Decorative icons get `aria-hidden="true"`.** An icon-only button is `.btn-icon`, a 44px square, named by `aria-label` and given the same words as a tooltip (`title`). The sprite `branding/icons.svg` holds the icons the system uses (arrows, chevrons, plus, minus, check, x, menu, search, info, the three status circles and triangle, external-link, copy, settings, user, log-out). Copy it into the product's public folder — browsers refuse `` across origins — and rebuild it with `tools/icons-sprite.py` when you add one. Any other Lucide icon takes the same class, so a product on React can use `lucide-react` directly: the class's CSS overrides the component's own stroke attributes. ```html ``` ```css .icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: square; stroke-linejoin: miter; } .icon * { vector-effect: non-scaling-stroke; } .icon-sm { width: 1rem; height: 1rem; } .icon-lg { width: 1.5rem; height: 1.5rem; } .btn-icon { width: 2.75rem; height: 2.75rem; padding: 0; gap: 0; } ``` ### Link A link in running text — a sentence, help text, a table cell — is `--accent-ink` and **underlined**. The underline isn't decoration: the ink against body text is 2.45:1 in Daylight and 1.02:1 in Mission, under the 3:1 that lets colour alone mark a link (WCAG 1.4.1). The underline is 1px, sits 0.2em below, at 45% of the ink, and firms to full ink on hover. A visited link keeps the same colour. Write it as a bare ``; nothing else to add. The rule has zero specificity and skips any link with a class, so navigation, footers, the backlink, buttons, cards and list rows keep their own look. Don't restyle a prose link locally. ```css :where(a:not([class])) { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 0.2s; } :where(a:not([class])):hover { text-decoration-color: currentColor; } ``` ### Button IBM Plex Sans 600, sentence case, at body size — a control is something a person reads and presses, so it speaks in the text face. Write the label in sentence case in the markup (`Send magic link`); nothing transforms it. Three variants plus danger; three sizes: `.btn-sm` 34px tall at 14px, `.btn` 44px at 16px, `.btn-lg` 52px at 16px. ```html ``` ```css .btn { font-family: var(--font-text); font-size: var(--type-body); font-weight: 600; line-height: 1.25; padding: 11px 24px; border-radius: 4px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s; } /* Press — see "Press" under Interaction States */ .btn:active:not([disabled]):not([aria-busy="true"]) { transform: scale(0.97); transition-duration: 0s; } .btn-sm { font-size: var(--type-small); padding: 7px 16px; } .btn-lg { padding: 15px 32px; } /* Solid — the loud one. One per view. */ .btn-primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } /* Wash — the HUD default for in-app actions */ .btn-secondary { background: var(--accent-wash); color: var(--accent-ink); border-color: var(--accent-line); } .btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--accent-ink); } /* Neutral */ .btn-ghost { background: transparent; color: var(--text-body); border-color: var(--border); } .btn-ghost:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); color: var(--text-heading); } .btn-danger { background: transparent; color: var(--danger-ink); border-color: var(--danger-ink); } .btn-danger:hover { background: var(--danger-ink); color: var(--bg-base); } .btn[disabled], .btn[aria-busy="true"] { color: var(--text-dim); background: transparent; border-color: var(--border-subtle); cursor: not-allowed; } /* The one button whose label may wrap — at large text a nowrap label pushes its card off a phone */ .btn-block { display: flex; width: 100%; white-space: normal; text-align: center; } ``` **Which variant:** `btn-primary` is reserved for the single most important action on a view — a landing hero CTA, the submit on an auth form. Inside Mission app chrome, prefer `btn-secondary`; a solid mint slab is too loud repeated. `btn-ghost` for everything else. ### Form Field The label has no `//` — fields are items in a set; the prefix goes on the label that opens the form (`// Sign in`), once. See "// Prefix Convention". ```html

We'll send a sign-in link — no password.

Not a valid address.

``` ```css .field { display: flex; flex-direction: column; gap: 8px; } .field-label { font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; color: var(--text-body); } .input { font-family: var(--font-text); font-size: var(--type-body); font-weight: 400; color: var(--text-body); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 13px 14px; width: 100%; transition: border-color 0.2s, background 0.2s; } .input::placeholder { color: var(--text-dim); font-weight: 400; } .input:hover { border-color: var(--border-hover); } .input:focus { outline: none; border-color: var(--accent-ink); background: var(--bg-surface-hover); } .input:focus-visible { outline: 1px solid var(--accent-ink); outline-offset: 2px; } .input[disabled] { color: var(--text-dim); border-color: var(--border-subtle); cursor: not-allowed; } .field-help { font-family: var(--font-text); font-size: var(--type-small); color: var(--text-muted); line-height: 1.5; } .field-error { /* a sentence for a person, not a readout */ font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; color: var(--danger-ink); } .field.is-error .input { border-color: var(--danger-ink); } ``` Inputs use 16px text — anything smaller triggers zoom-on-focus in mobile Safari. The label is IBM Plex Sans 14px / 500 in `--text-body`: it names what to type, for a stranger, so it is text, not a readout. Placeholders are `--text-dim` and never stand in for the label. ### Checkbox & Radio The browser's own inputs, tinted with `accent-color: var(--accent-ink)` — never redrawn. They keep the keyboard (Space toggles, arrows move between radios), the screen reader and forced colours for free. With `color-scheme` set by the theme, the unchecked edge holds 5.1:1 on Mission and 4.5:1 on Daylight. - **The row is the `
`** whose `` names the question. Help and error text follow the field rules; an error group points at its message with `aria-describedby` and marks its inputs `aria-invalid="true"`. - **Radio:** one choice among two to five, with one chosen by default when there is a sensible default. More than five → a select. Radios in a group share a `name`. - **Checkbox:** a choice that takes effect when the form is submitted. A setting that takes effect the moment it's flipped is a switch. - **Disabled** rows drop to `--text-dim`; say why in the label or help (`coming soon`). ```html
Tell me when
Who sees the replies
Terms

Agree to the terms to continue.

``` ```css fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; gap: 0; } fieldset.field > legend { padding: 0; margin-bottom: 4px; } fieldset.field > .field-help, fieldset.field > .field-error { margin-top: 4px; } .check { display: flex; align-items: center; gap: 12px; min-height: 2.75rem; font-family: var(--font-text); font-size: var(--type-body); line-height: 1.4; color: var(--text-body); cursor: pointer; } .check input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--accent-ink); cursor: inherit; } .check:has(input:disabled) { color: var(--text-dim); cursor: not-allowed; } ``` ### Switch A setting that **takes effect the moment it flips**: the view, a notification, a sync. If nothing happens until the person presses Save, it is a checkbox. - **A native checkbox with `role="switch"`,** drawn in CSS. No script, it posts with its form, Space toggles it, and screen readers announce "switch, on". - **The row is the `
``` - Container: `--bg-surface`, `1px solid var(--border)`, radius 6px, `--card-shadow`; rows separated by `1px solid var(--border-subtle)` - Row: flex, 24px gap, padding 16px 24px, min-height 44px; hover `--bg-surface-hover`; press `--bg-inset` at once (a fill, so it holds under reduced motion) - Title: IBM Plex Sans 16px / 600, `--text-heading`. Description: 14px, `--text-muted` - Meta: mono 12px uppercase, 0.1em, `--text-dim`, right-aligned; the live state first, in `--accent-ink` (`.is-live`). Below 640px the meta drops under the title, left-aligned ### Tooltip `.tooltip` in `rising.css`; the product positions it and toggles it on hover. - `background: color-mix(in srgb, var(--bg-base) 92%, transparent)` — the theme's own base, never a fixed dark, so it reads in Daylight too — `border: 1px solid var(--accent-line)`, radius 4px, padding 8px 12px, max-width 240px - Name: Rajdhani, 16px, weight 700, `var(--text-heading)`, letter-spacing 1px - Material line: Share Tech Mono, 12px, `var(--accent-ink)`, letter-spacing 0.1em - Description: IBM Plex Sans, 14px, `var(--text-muted)`, line-height 1.5 ### Page Header The per-view heading, one per page, directly under the app bar. Not the app bar itself — see "App Shell" under Page Patterns for the difference. - Structure: eyebrow → page title (actions on the same baseline, right) → subtitle - Inside `.app-main` (which already carries the 48px page padding): `padding-bottom: 24px`, `margin-bottom: 32px`, `border-bottom: 1px solid var(--border)` - Standalone at the top of a page with no app bar: `padding: 48px 48px 32px` - Below 768px: the title is 28px and wraps anywhere, and actions wrap beneath it. See "On phones" under Text Styles. ### Footer Two footers, one voice. `.site-footer` is the landing page's; `.app-footer` is the signed-in product's (see "App Shell"). Both: - Font: Share Tech Mono, 12px, `var(--text-dim)`, letter-spacing 0.1em - `border-top: 1px solid var(--border)`; 24px vertical padding on the landing footer, 16px on the app footer - Must include the rising.company backlink — see below. ### Status Live-state readout: a 6px dot + mono label (`ONLINE`, `SYNCING`, `3 PENDING`). - Dot: `var(--accent)`, pulses a `--accent-line` ring every 2.4s (off under reduced motion) - `.is-degraded` → `var(--warning)` dot, `.is-down` → `var(--danger)` dot, no pulse - Label: Share Tech Mono, 12px, 0.1em, uppercase, `var(--text-dim)` ### Grid Layout - `display: grid`; `grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))`; `gap: 16px` ### HUD Overlay (Mission only) Full-viewport overlay with `pointer-events: none` containing scanlines, 4 corner brackets, and content blocks positioned absolute (title top-left, stats top-right, legend bottom-left, controls bottom-right). --- ## Page Patterns ### Landing Page (Daylight) A user-facing product needs a landing page before it needs a login box. Required order: 1. **Nav** — `.nav-brand` left: the wordmark and, 12px after it, the same `.app-byline` (`by rising.company`) the app bar carries — the way home from a landing page too; links + one `btn-sm` CTA right. 64px tall, `border-bottom: 1px solid var(--border)`, sticky, `background: var(--bg-base)`. Below 640px the byline and the links hide; the wordmark (and the CTA, if any) is the whole phone nav. Don't repeat the backlink among the links — the byline is the header's; the footer keeps its own. 2. **Hero** — eyebrow naming what the product is for (`// Group scheduling`) → hero title → lede (one sentence, ≤ 90 chars) → action row (`btn-primary btn-lg` + `btn-ghost btn-lg`) → mono trust line (`NO PASSWORD · NO CALENDAR ACCESS · FREE`). Max-width 720px for centered heroes. The eyebrow is the product's job, not the parent brand: the nav byline already says whose it is, and the hero's first words are the visitor's first chance to learn what it does. 3. **Proof strip** — one row of `.stat-value.stat-lg` figures over `.stat-label`s, or a single-line quote. Optional. The figures are 28px — larger than the lede — because in a proof strip the number is the claim. 4. **How it works** — 3 numbered steps. Reuse the `01 / 02 / 03` mono numerals from the section-head pattern; each step is a title + one line of body. 5. **Feature grid** — 3 cards, `minmax(280px, 1fr)`. 6. **CTA band** — `background: var(--bg-inset)`, full-bleed, `border-block: 1px solid var(--border-subtle)`. Section heading + one `btn-primary btn-lg`. 7. **Footer** — column links + the rising.company backlink. Vertical rhythm between bands: 96px (64px below 768px). Every band's inner content shares one `max-width: 1080px; margin: 0 auto; padding-inline: 48px` container. ```html
// Group scheduling

Huddle

Find a meeting time without the back-and-forth. Share one link.

No password · No calendar access · Free
``` ```css .hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 96px 0 64px; } /* No margin on the title itself — hero rhythm comes from .hero .lede below, so .hero-title stays reusable in auth panels and anywhere else. */ .hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(var(--type-page), 7vw, var(--type-hero)); letter-spacing: 2px; line-height: 1.1; text-transform: uppercase; color: var(--text-heading); } .lede { font-family: var(--font-text); font-size: var(--type-lead); line-height: 1.5; color: var(--text-muted); } .hero .lede { margin: 16px auto 0; max-width: 52ch; } .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; } .hero-trust { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-top: 24px; } ``` ### Auth Screen **A bare centered form on an empty field is not an auth screen** — it gives a first-time visitor nothing to decide with. Two sanctioned layouts: **Split (default for user-facing products)** — 50/50 above 900px, stacked below. Left: the pitch (eyebrow, product name, one-line lede, 3 mono checkpoints marked `+`). Right: a surface card holding the form. The pitch panel may use `background: var(--bg-inset)` to separate it. **Pitch and form meet at the seam:** the pitch's content sits against the right edge of its column and the card against the left edge of its own, 96px apart across the divider, so the eye reads one composition rather than a pitch adrift in an empty field. Inside the card, everything after the `// Sign in` label is a sentence — helper text and "Got a link? Just open it" are the text face, not mono caps. **Centered (staff / operator sign-in)** — a single `max-width: 400px` surface card: eyebrow → product name → one-line purpose → field → `btn-primary btn-block` → helper text → backlink. Only appropriate when everyone signing in already knows what the product is. ```html
// Group scheduling

Huddle

Find a meeting time without the back-and-forth.

  • One link — everyone marks their times
  • No calendar access required
  • Works for people without an account

We'll email you a sign-in link. No password to remember.

rising.company
``` ```css .auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; } .auth-pitch, .auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; } .auth-pitch { background: var(--bg-inset); border-right: 1px solid var(--border-subtle); } /* Meet at the seam: each column pushes its content toward the middle. */ .auth-pitch { align-items: flex-end; } .auth-pitch > * { width: 100%; max-width: 420px; } .auth-panel { align-items: flex-start; } .auth-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.05em; color: var(--text-muted); } .auth-points li { display: flex; align-items: center; gap: 10px; } .auth-points .icon { color: var(--accent-ink); } .auth-card { max-width: 400px; width: 100%; display: flex; flex-direction: column; gap: 24px; } @media (max-width: 900px) { /* min-height: 0 releases the 100vh floor once stacked, or the two panels add up to two full screens. align-items centers the card in the panel. */ .auth { grid-template-columns: 1fr; min-height: 0; } .auth-pitch { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 64px 24px 48px; align-items: stretch; } .auth-panel { padding: 48px 24px 64px; align-items: center; } } ``` Copy rules for auth: say what the product does *before* asking for an address; name the mechanism ("we'll email you a link — no password"); never let the button be the only text on screen. ### App Shell (both themes) The chrome behind the auth boundary. Every signed-in Rising product uses the same three pieces so that moving between products feels like moving between rooms of one building: ``` ┌──────────────────────────────────────────────────────────────────┐ │ [mark] PRODUCT BY RISING.COMPANY · CONTEXT NAV NAV NAV ● ONLINE [BC] who ⌄ │ app-bar 56px, sticky, --bg-surface ├──────────────────────────────────────────────────────────────────┤ │ // EYEBROW │ │ PAGE TITLE [ action ] │ page-header │ subtitle · mono │ │ ───────────────────────────────────────────────────────────────── │ │ content │ app-main --bg-base, 48px padding │ │ ├──────────────────────────────────────────────────────────────────┤ │ // PRODUCT · BUILD 2026-09-18 · 0a7d685 STATUS PRIVACY RISING.COMPANY │ app-footer 16px, --bg-surface └──────────────────────────────────────────────────────────────────┘ ``` 1. **App bar** — `56px` min-height, sticky, `background: var(--bg-surface)`, `border-bottom: 1px solid var(--border)`, full-bleed with the 48px page gutter. Three slots, left to right: - **Brand** — the favicon mark (24px, from `branding/favicon.svg`) + the product name as a `.wordmark` at 20px. Links to the product's home route. The mark carries the Rising identity, so the name is the product's own — there is no `// Rising` eyebrow up here. - **Byline** — `.app-byline`, always: `by rising.company`, 12px from the wordmark, in the mono label voice (`by` in `--text-dim`, the domain in `--text-muted`, whole thing `--accent-ink` on hover). It is the link to https://rising.company and the one consistent way home from every product. Same tab — it is navigation, not a reference. Never make the mark or the wordmark the way home: the brand is one target, the product's own. - **Context** — optional `.app-context` after the byline (mono, `--text-dim`, `·`-separated) names a *real* tenant, workspace or environment: `· ACME`, `· STAGING`. Omit it when there is none; the byline already says whose product this is. - **Nav** — the product's top-level sections as IBM Plex Sans 14px / 500 links in sentence case, `--text-muted`, hover `--accent-ink`. They are controls, not readouts. The current one takes `aria-current="page"`: `--text-heading` with a 1px `--accent-ink` rule under it. Three to five links; more than that is a sidebar product. - **Session** — right-aligned: an optional `.status` readout, then the **user menu**. Its trigger shows identity at a glance — a 24px initials chip, the email in mono `--text-muted` (truncates at 24ch, hides below 640px; the chip stays), a chevron. The panel opens under it, right-aligned: `// Signed in as` + full email, then the product's account items (Settings, Switch organization, …), then **Sign out** last, ruled off, `--danger-ink` on hover. Sign-out is always the bottom item so muscle memory carries across products. Status stays outside the menu — it is system state, not user state. The reference build is `
`/`` (no JS needed; add light-dismiss on outside click and Escape). A React product uses `UserMenu` from `@rising/ui/user-menu` (see "React components"), which keeps these classes and this item order; another framework builds its own popover — a button with `aria-expanded` and the Motion panel recipe — the same way. 2. **Page header** — inside `.app-main`, one per view. See the component entry above. 3. **App footer** — `background: var(--bg-surface)`, `border-top: 1px solid var(--border)`, `padding: 16px 48px`, mono 12px `--text-dim` uppercase. Left: `// PRODUCT · BUILD · `. Right: two or three links at most (status, privacy, docs) and the rising.company backlink last. It is a status strip, not a sitemap. Pinned to the viewport bottom on short pages by `.app { display: flex; flex-direction: column; min-height: 100vh }`. Rules: - **Chrome is surface, content is base.** Bar and footer sit on `--bg-surface`; the view sits on `--bg-base`. That one-step lift is the whole hierarchy — no shadows, no heavier borders. - **Both bars are full-bleed.** An app is not width-limited like a landing page. A view that wants the 1080px column puts `.shell` inside `.app-main`, not around the bars. - **The app bar is not the landing nav.** `.nav` is 64px on `--bg-base` with a CTA button; `.app-bar` is 56px on `--bg-surface` with none. Switch at the auth boundary, with the theme. - **Don't put account controls anywhere else.** Email, settings, org switching and sign-out live in the user menu, top-right, in that order — never in the page header, never spread along the bar — so an operator's eye never has to hunt for the exit. - **Corner brackets are for viewport-scale surfaces** (auth, HUD overlays, maps). The bar and footer already frame the app; don't add brackets on top of them. - **Sidebar products** (os, safe) keep a 260px `.app-sidebar` for module navigation on desktop. The slots relocate, they do not change: `.app-sidebar-top` = brand + byline + context, `.app-sidebar-nav` = `// Modules` and the module links (`.tag` + `.label`, current one `aria-current="page"` with a 2px accent bar), `.app-sidebar-bottom` = `// Signed in as`, email, account items, **Sign out**, a rule, build ident, backlink — the sidebar bottom *is* the footer. ``. **Mobile (≤ 768px) — one form for every product.** The shell has exactly one phone layout, and a sidebar product uses it too: - **Bar products:** the bar becomes two rows. Row one is brand + session (56px). Row two is the nav as a **44px touch row** that bleeds to the viewport edges and scrolls sideways under the 24px gutters, with a 24px fade at each edge to say there is more; the active link's 1px rule sits on the bar's bottom border. Gutters drop to 24px. Below 640px the byline, context and email hide (the chip stays; the footer backlink is the way home) and the footer centers. - **Sidebar products:** the sidebar is desktop chrome. Below 768px it hides and the product renders the ordinary `.app-bar.app-bar-mobile` + `.app-footer.app-footer-mobile` instead (both `display: none` above 768px): modules become the scrolling nav row (labels only, no tags), status + user menu sit top-right, the org switcher and the account items move into the user menu, build + backlink into the footer. No drawer, no hamburger — a phone user of os sees the same bar a phone user of Huddle sees. Worked example: `patterns/app-shell-sidebar.html`. ```html
Huddle
Online
ben@rising.company
ben@rising.company
Settings Switch organization
…
``` ```css .app { display: flex; flex-direction: column; min-height: 100vh; } .app-main { flex: 1; position: relative; z-index: 1; padding: 48px; } .app-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; /* wraps only when the reader's text is too large to fit */ min-height: 56px; padding-inline: 48px; background: var(--bg-surface); border-bottom: 1px solid var(--border); } .app-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--text-heading); text-decoration: none; } .app-brand img, .app-brand svg { width: 24px; height: 24px; border-radius: 4px; } .app-brand .wordmark { letter-spacing: 3px; } /* 20px, from .wordmark */ .app-byline { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; white-space: nowrap; transition: color 0.2s; } .app-brand + .app-byline { margin-left: -20px; } /* bar gap 32px → brand gap 12px */ .app-byline span { color: var(--text-muted); transition: color 0.2s; } .app-byline:hover, .app-byline:hover span { color: var(--accent-ink); } .app-context { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; } .app-context::before { content: "·"; margin-right: 12px; color: var(--text-dim); } .app-nav { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; min-width: 0; } /* auto basis: too wide → wraps to its own row */ .app-nav a { /* a control: text face, sentence case */ font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; color: var(--text-muted); text-decoration: none; white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; } .app-nav a:hover { color: var(--accent-ink); } .app-nav a[aria-current="page"] { color: var(--text-heading); border-bottom-color: var(--accent-ink); } .app-session { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; } /* User menu —
/; a framework may swap in its own popover but keeps the classes and the item order. */ .user-menu { position: relative; } .user-menu > summary { list-style: none; } .user-menu > summary::-webkit-details-marker { display: none; } .user-menu-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; border-radius: 4px; color: var(--text-muted); transition: color 0.2s; } .user-menu-trigger:hover, .user-menu[open] > .user-menu-trigger, .user-menu-trigger[aria-expanded="true"] { color: var(--text-heading); } .user-menu-email { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.05em; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .user-initials { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid var(--accent-line); } .user-menu-chevron { transition: transform 0.2s; } .user-menu[open] .user-menu-chevron, .user-menu-trigger[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); } .user-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 240px; padding: 6px; background: var(--bg-surface); border: 1px solid var(--border-hover); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); } [data-theme="daylight"] .user-menu-panel { box-shadow: 0 12px 32px rgba(11, 26, 20, 0.12); } .user-menu-head { padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); } .user-menu-head .section-label { letter-spacing: 0.15em; margin-bottom: 4px; } .user-menu-head .user-menu-email { max-width: none; color: var(--text-body); } .user-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 4px; text-align: left; font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; color: var(--text-body); background: none; border: 0; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s; } .user-menu-item:hover, .user-menu-item[data-highlighted] { background: var(--bg-surface-hover); color: var(--text-heading); } .user-menu-signout { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 4px 4px; padding-top: 12px; } .user-menu-signout:hover, .user-menu-signout[data-highlighted] { color: var(--danger-ink); } .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; } .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: status-pulse 2.4s ease-out infinite; } .status.is-degraded::before { background: var(--warning); animation: none; } .status.is-down::before { background: var(--danger); animation: none; } @keyframes status-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } .page-header { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border); } .page-header .eyebrow { margin-bottom: 8px; } .page-header .subtitle { margin-top: 8px; } .page-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; } .page-header-row .page-title { min-width: 0; overflow-wrap: anywhere; } @media (max-width: 768px) { .page-title { font-size: var(--type-section); } } .app-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 48px; background: var(--bg-surface); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); } .app-footer a { color: inherit; text-decoration: none; transition: color 0.2s; } .app-footer a:hover { color: var(--accent-ink); } .app-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; } /* Sidebar products — desktop chrome; hidden below 768px (see above) */ .app.has-sidebar { flex-direction: row; } .app.has-sidebar > .app-main { min-width: 0; } .app-sidebar { display: flex; flex-direction: column; flex-shrink: 0; width: min(16.25rem, 40vw); /* 260px at default text size */ position: sticky; top: 0; height: 100vh; background: var(--bg-surface); border-right: 1px solid var(--border); } .app-sidebar-top { padding: 40px 32px 28px; display: flex; flex-direction: column; gap: 12px; } .app-sidebar-top .app-brand .wordmark { letter-spacing: 2px; } .app-sidebar-top .app-brand + .app-byline { margin: -4px 0 0; } .app-sidebar-top .app-context::before { content: none; } .app-sidebar-rule { height: 1px; margin: 0 24px; background: var(--border); flex-shrink: 0; } .app-sidebar-nav { padding: 28px 20px; flex: 1; min-height: 0; overflow-y: auto; } .app-sidebar-nav .section-label { margin: 0 4px 20px; } .app-sidebar-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--text-muted); transition: background 0.2s, color 0.2s; } .app-sidebar-nav a + a { margin-top: 4px; } .app-sidebar-nav a:hover { color: var(--text-heading); background: color-mix(in srgb, var(--bg-surface-hover) 50%, transparent); } .app-sidebar-nav a[aria-current="page"] { color: var(--text-heading); background: var(--bg-surface-hover); } .app-sidebar-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; border-radius: 1px; background: var(--accent); } .app-sidebar-nav .tag { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 1px; width: 1.75rem; flex-shrink: 0; color: var(--text-muted); } .app-sidebar-nav a[aria-current="page"] .tag { color: var(--accent-ink); } .app-sidebar-nav .label { font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; } .app-sidebar-bottom { padding: 20px 32px; display: flex; flex-direction: column; gap: 8px; } .app-sidebar-bottom .user-menu-email { max-width: none; color: var(--text-muted); } .app-sidebar-bottom a, .app-sidebar-bottom button { align-self: flex-start; padding: 0; background: none; border: 0; cursor: pointer; font-family: var(--font-text); font-size: var(--type-small); font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s; } .app-sidebar-bottom a:hover, .app-sidebar-bottom button:hover { color: var(--text-heading); } .app-sidebar-bottom .user-menu-signout { margin: 0; border: 0; padding: 0; width: auto; } .app-sidebar-bottom .user-menu-signout:hover { color: var(--danger-ink); } .app-sidebar-bottom .app-sidebar-rule { margin: 12px 0; } .app-sidebar-bottom .build { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; } .app-sidebar-bottom .rising-backlink { /* the backlink keeps its mono voice */ font-family: var(--font-mono); font-size: var(--type-label); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); } .app-bar-mobile, .app-footer-mobile { display: none; } @media (max-width: 768px) { .app-main { padding: 24px; } .app-footer { padding-inline: 24px; } .app-bar { flex-wrap: wrap; gap: 0 24px; padding-inline: 24px; min-height: 0; } .app-brand, .app-session { min-height: 56px; } .app-brand + .app-byline { margin-left: -12px; } /* 44px touch row, full-bleed scroll under the gutters, 24px edge fade */ .app-nav { order: 3; flex-basis: 100%; gap: 24px; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); } .app-nav::-webkit-scrollbar { display: none; } .app-nav a { padding: 15px 0 14px; line-height: 1; } /* Sidebar products swap the sidebar for the bar and the footer */ .app.has-sidebar { flex-direction: column; } .app-sidebar { display: none; } .app-bar-mobile, .app-footer-mobile { display: flex; } } @media (max-width: 640px) { .app-byline, .app-context, .user-menu-trigger .user-menu-email { display: none; } .app-footer { justify-content: center; text-align: center; } } ``` Copy rules for the shell: the product name in the brand, never "Rising" (the mark says that); the exit is `Sign out` in every product — no "Disconnect", "Log out" or other variants; the footer ident is `// PRODUCT · BUILD · ` so a screenshot always says which build it came from. ### Empty State Eyebrow → one-line explanation in `--text-muted` → one `btn-secondary`. Centered, max-width 420px, 96px vertical padding. Never a bare "No results." ### Link Preview Card The one page pattern nobody visits and everybody sees: 1200 × 630, Daylight, shot to a PNG the product's shares carry. Worked template `patterns/og-card.html`; the spec and the tags it goes with are in "Link Preview Card (required branding)" below. Required of every product. --- ## Brand Assets All brand imagery lives in `branding/` and is served from `https://design-system.rising.company/branding/`. Reference it by URL or copy the file into the product — never redraw the mark. | File | Size | Alpha | Use | |---|---|---|---| | `favicon.svg` | 64×64 viewBox | yes | Browser tab icon. Preferred favicon — scales cleanly. Dark base, rounded corners baked in. | | `favicon.png` | 512×512 | yes | Raster fallback for the favicon, PWA manifest icons. Not the social thumbnail — that is the link preview card. Rounded corners baked in. | | `favicon-xl.png` | 1024×1024 | yes | Same mark at 2× — app-store listings, splash screens, any place asking for ≥512px. | | `apple-icon.png` | 180×180 | no (opaque) | `` and Next.js `app/apple-icon.png`. Square corners on purpose — iOS applies its own mask; a pre-rounded or transparent icon shows black wedges. | | `rising-logo-transparent.png` | 1200×497 | yes | Horizontal wordmark (arrow + "RISING COMPANY") for **light** grounds — Daylight `--bg-base` / `--bg-surface`. The lettering holds 3.2:1 on Daylight. | | `rising-logo-dark.png` | 1200×497 | yes | The same wordmark for **dark** grounds — Mission `--bg-base` / `--bg-surface`. Arrow opaque in its own gradient; lettering in `--text-heading` `#e8f4ff` (17.5:1). | | `icons.svg` | 24×24 symbols | — | The Lucide icons the system uses, squared by `.icon` (see Components → Icon). Copy into the product; `` won't cross origins. Rebuilt by `tools/icons-sprite.py`. | | `rising-logo-white.png` | 2026×898 | no (white bg) | The master both are built from (`tools/logo-from-master.py`). Don't place it on a page — use the transparent file. | Rules: - The mark is the mint→blue rising arrow (`#3af0a0` → `#2a7adf`) on `--bg-base` `#0a0c10`. Tab and app icons always use the dark base, in both themes — the icon is not themed. - Wire favicons in the ``: ```html ``` - Next.js App Router: copy `favicon.png` → `app/icon.png` and `apple-icon.png` → `app/apple-icon.png`; the framework emits the `` tags itself. - **One wordmark per ground:** `rising-logo-transparent.png` on Daylight, `rising-logo-dark.png` on Mission. Never the light file on a dark ground — its lettering drops to about 3:1 and the arrow goes muddy. Under `data-theme="auto"`, swap the file with ``. - Inside a product, the app bar still uses the favicon mark + the product's own name in Rajdhani; the Rising wordmark is for Rising's own surfaces (rising.company, decks, docs). - Minimum clear space around the mark: the arrow's own width on all sides. Minimum rendered size: 16px (favicon) / 120px wide (wordmark). --- ## Rising Company Backlink (required branding) Every Rising Company product must include a subtle backlink to https://rising.company: - Target: https://rising.company, opens in new tab (`target="_blank" rel="noopener noreferrer"`) - Text: "rising.company" (lowercase, standalone) or wrap an existing "rising company" mention - Style: footer mono token — Share Tech Mono, 12px, 0.1–0.2em letter-spacing, `var(--text-dim)`, uppercase if standalone - Hover: transition to `var(--accent-ink)` over 0.2s, no underline - Placement: auth screens (below the form, 24–48px gap), app layouts (last link in the `.app-footer`, or the sidebar bottom near logout), landing/marketing pages (inline within the site footer copy) Signed-in products additionally carry the **app-bar byline** — `.app-byline`, `by rising.company` after the product wordmark (see App shell). The byline is the *way home* and opens in the same tab; the footer backlink is the *attribution* and opens in a new one. Products have both. ```css .rising-backlink { font-family: var(--font-mono); font-size: var(--type-label); letter-spacing: 0.2em; color: var(--text-dim); text-transform: uppercase; text-decoration: none; transition: color 0.2s; } .rising-backlink:hover { color: var(--accent-ink); } ``` --- ## Link Preview Card (required branding) Every Rising Company product ships a link preview card. A product travels by link — a Slack message, a text, a post — and the card is the product's first impression far more often than its home page is. Shipped without one, a share renders as a bare rectangle with a URL under it; shipped with a wordmark on a colored field, it tells a reader nothing the URL did not already say. **The card makes the product's argument, using the product's own data.** True Cost to Phone's card is its own carrier chart — same segments, same colors, same cheapest-first ranking — so someone can take the point from the card and click to verify rather than to find out. If the product has a number, the number is on the card. Worked template: `patterns/og-card.html`. Copy it into the product as `tools/og.html`, replace the evidence band, and shoot it. The card is not hand-drawn and not a screenshot of the live page — it is a rendered artifact the repo can rebuild. ### Anatomy 1200 × 630 CSS px, **Daylight always** (a stranger in a timeline sees it first — the same rule that makes landing pages Daylight), `--bg-surface` ground, 52px / 64px padding. 1. **Edge rule** — 6px down the left, `linear-gradient(180deg, var(--accent), var(--accent-2))`. That gradient is the rising arrow; it is the whole brand mark the card needs. A wordmark would cost a third of the headline's room. 2. **Eyebrow** — `// product.rising.company`, Share Tech Mono 17px / 0.18em / `--accent-ink`. The `//` opens the card the way it opens any region, once. 3. **Headline** — Rajdhani 700, 62px, `--text-heading`, with the one decisive value in `--accent-ink`. The argument, not the product name: `og:site_name` already carries the name. 4. **Lede** — Rajdhani 500, 25px, `--text-muted`, one plain sentence written for a stranger. 5. **Evidence** — the product's own object, built from the product's own data: the chart, the grid, the ranking, the state. This is the band that does the work. 6. **Footer** — `--border-subtle` rule, legend left (what the colors mean), stamp right (`--text-dim`, what the numbers are as of). ### Two rules the card lives or dies by - **It has to read at thumbnail size.** Feeds render the card at 300–400px wide, so everything on it is sized for a 3× downscale: headline ≥ 48px, lede ≥ 24px, nothing mono below 14px, and no two states distinguishable only by a hairline or a wash. `--accent-wash` on `--bg-surface-hover` is invisible at 400px; derive a real tint (`color-mix(in srgb, var(--accent) 30%, var(--bg-surface))`) instead. - **Shoot at 2×.** The card is 1200 × 630 CSS px, captured at `deviceScaleFactor: 2` to a 2400 × 1260 PNG, and `og:image:width` / `:height` declare the **file's** pixels. Wait on web fonts before the shot — `document.fonts.ready` sets `data-og-ready`; a card captured mid-swap bakes fallback type into every share ever made of it. ```sh python3 -m http.server 8000 agent-browser set viewport 1240 760 2 agent-browser open http://localhost:8000/tools/og.html agent-browser wait --load networkidle agent-browser screenshot "#og-card" og.png # writes 2400x1260 ``` ### The tags All absolute — scrapers do not resolve relative URLs — and `og:image` carries a `?v=` stamp that is the date the card was last true: ```html ``` - **The `?v=` stamp is not optional.** Facebook, Slack and X cache `og:image` by URL. A regenerated card behind an unchanged URL keeps serving last month's numbers for days — the exact failure that regenerating the card was meant to prevent. Bump the stamp in the same commit that replaces the PNG. - **`og:image:alt` carries the argument in words.** It is the card for screen readers and for every scraper that does not fetch the image. - **`og:title` is the headline, not the page title.** Same words as the card. ### Keeping it honest A card built from product data goes stale the moment the data moves, and nothing in a browser notices. **Pin it with a test** (`tests/og.test.mjs` in True Cost to Phone): assert the numbers printed on the committed PNG against what the data now produces, and the `?v=` stamp against the data's own timestamp. Moving the data without regenerating the card then fails a test instead of quietly advertising a price that is no longer true. Next.js products get the same card from `src/app/opengraph-image.tsx` (`ImageResponse`, `size = { width: 1200, height: 630 }`) — the framework emits the tags and a content hash, so the `?v=` stamp is handled for you. Everything above still applies: Daylight, the six parts, the product's own data, the alt text. --- ## Voice & Tone Identical in both themes. Daylight is lighter in *value*, not in tone. ### // Prefix Convention `//` is the system speaking *about* what follows — a comment, not content. **It opens a region, once.** Use it on the first line of a region when that line frames what sits under it: - the eyebrow over a page or hero title — `// Group scheduling`, `// Huddles` - the label that opens a group — `// Sign in` over a form, `// Materials` over a legend, `// Signed in as` at the head of a menu, `// No huddles yet` on an empty state - the footer ident — `// Huddle · build 2026-09-18 · 0a7d685` Never on: - **data** — a status, count, date, category, material. `OPEN · 5 REPLIES`, `BRASS / COPPER` — not `// OPEN · 5 REPLIES`. - **items in a set** — card tags in a grid, list items, table heads, form field labels. If it would repeat across uniform siblings it belongs on the set's label or nowhere. A form gets one `// Sign in`; its fields are `Email`, `Workspace`. - **controls** — nav links, buttons, tabs, menu items. - **what is already framed** — titles, the wordmark, a subtitle sitting under a `//` eyebrow. Budget: a screen carries a handful. More than about four in one viewport means some are decorating data, and the mark has stopped meaning anything. ### Case Rules - Uppercase: eyebrows, section labels, stat labels, status, page/hero titles — readouts and the page's name - Sentence case: buttons, nav links, menu items, field labels — every control. Write it that way in the markup; nothing transforms it. - Normal case: card titles, body text, descriptions, tooltip content, ledes, help, errors ### Copy Style - Terse technical fragments for chrome; **plain sentences for anything a stranger reads.** Landing ledes, help text, and error messages are written for humans, not operators. - Em dashes (—) over commas for joining - Middle dot (·) as inline separator: "SYSTEM A · SYSTEM B" - No exclamation marks. No emoji. No casual language. ### Layout Philosophy - **Theme-appropriate ground:** Mission's darkness is a feature; Daylight's white is a feature. Neither is empty space. 48px page margins in both. - Sparse grids: auto-fill responsive, ample gap. Content breathes. - Layered depth: Base → Surface → Surface Hover. Elevation through background shifts; Daylight adds one hairline shadow, never more. - Motion is designed, not added — see "Motion". Subtle interaction: 0.2s transitions, border shifts, gradient reveals, springs with `bounce: 0`. Nothing bounces. - Scanlines and brackets are Mission-only. Do not port them to Daylight.