# 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 `