Railway — decoded design system
Railway's design system, decoded live by Mozaika: measured color roles, type scale, buttons with real hover/focus states, motion and the brand's own tokens.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/decode/railway.com.
Decoded design system
Railway's decoded design system: background #13111C, text #FFFFFF, accent #553F83, link #A667E4, primary #1F132A; type scale h1 54px / h2 36px / body 16px; 8px spacing base; 6px base radius. The single interactive/action color is #553F83 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #13111C |
| surface | #211F29 |
| border | #36343E |
| text | #FFFFFF |
| text_muted | #A5A4A8 |
| primary | #1F132A |
| accent | #553F83 |
| link | #A667E4 |
| secondary | #553F83 |
| button_bg | #553F83 |
| button_text | #FFFFFF |
Using these colors
- Action color
#553F83— the single interactive color; only on things you click or must notice, never large fills. accent,secondary,button_bgare all#553F83— one role, not several (the action color).- accent
#553F83— THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - primary
#1F132A— a brand color — but the call-to-action uses #553F83, not this. - link
#A667E4— inline text links and link-styled controls.
Typography
- Heading: IBM Plex Serif
- Body: Inter
- h1: 54px
- h2: 36px
- body: 16px
Spacing
- base unit: 8px
- scale: 4px, 6px, 8px, 12px, 16px, 24px, 32px, 40px, 64px, 80px
Radii
- base: 6px
- button: 8px
Motion
Micro-interactions run at 150ms (dominant) with ease-out.
- durations: 150ms · 200ms · 3000ms
- easings:
ease-out·ease-in-out - animated properties: transform, opacity, background-color, color
Native design tokens
| Token | Value |
|---|---|
--osano-clear-dialog-background | rgba(24,13,67,0) |
--osano-button-border-color | #33323e |
--osano-button-background-color | #59497a |
--osano-button-foreground-color | #FFFFFF |
--osano-dialog-background-color | #13111c |
--osano-dialog-foreground-color | #FFFFFF |
--osano-info-dialog-overlay-color | rgba(0,0,0,0.45) |
--osano-link-color | #ffffff |
--osano-toggle-off-track-color | #535361 |
--osano-toggle-off-thumb-color | #FFFFFF |
…and 110 more measured on the page.
Button states (measured)
- primary focus: outline
1px auto rgb(16, 16, 16)
Layout (measured)
- container max-width:
1696px - nav: 32px relative
- common grid: 3 columns
Motion choreography (measured)
Load order: div.flex×2 → div.osano-cm-info-dialog__in → div.osano-cm-window__dialog → button.osano-cm-dialog__close → button.osano-cm-dialog__close → button.osano-cm-dialog__close
Scroll reveal: 23 elements rest at opacity 0, translateY(24px), animate in over 3000ms.
Overlay recipe (measured)
dialog panel: #000000 · radius 12px · enter 200ms linear
Responsive (measured)
- breakpoints: 768px
- mobile (390px): hero 40px · nav inline
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/railway.com
registry item · or query it over MCP: get_design_system("Railway")
Export: DESIGN.md
# Railway — Design System > dark, modern, medium, tailwind — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#13111C` | | surface | `#211F29` | | border | `#36343E` | | text | `#FFFFFF` | | text_muted | `#A5A4A8` | | primary | `#1F132A` | | accent | `#553F83` | | link | `#A667E4` | | secondary | `#553F83` | | button_bg | `#553F83` | | button_text | `#FFFFFF` | **Using these colors** - **Action color** `#553F83` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `accent`, `secondary`, `button_bg` are all `#553F83` — one role, not several (your action color). - **accent** `#553F83` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - **primary** `#1F132A` — a brand color — but the call-to-action uses #553F83, not this. - **link** `#A667E4` — inline text links and link-styled controls. - **Page coverage** (full-page screenshot pixels): `#13111C` 60.2% · `#222B3A` 33.2% · `#4E4B61` 6.6% ## Typography - Heading: **IBM Plex Serif** _(free fallback: Newsreader)_ - Body: **Inter** | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 54px / 500 · lh 60px · tracking -1.96px | | h2 | 36px / 400 · lh 48px · tracking -0.72px | | h3 | 20px / 400 · lh 28px | | body | 16px / 500 · lh 24px | | small | 14px / 500 · lh 20px | - Weight ladder: 400 · 500 · 600 · 700 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** IBM Plex Serif may be proprietary — safe free fallback: Newsreader (Google Fonts). Inter — free, on Google. ## Spacing - base unit: 8px (inferred from the measured scale) - measured scale: 4px, 6px, 8px, 12px, 16px, 24px, 32px, 40px, 64px, 80px — snap all gaps/padding to these - section rhythm: 96px top/bottom padding per section (measured) ## Radius - base: 6px - button: 8px - card: 4px - pill: 9999px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#553F83` / `#FFFFFF` | 1px solid rgba(255, 255, 255, 0.15) | 8px | 12px 24px 12px 24px | 500 20px / -0.2px | none | | secondary | `rgba(0, 0, 0, 0)` / `#F7F7F8` | none | 6px | 0px 12px 0px 12px | 500 14px | none | **States (measured, not guessed)** - primary focus: outline `1px auto rgb(16, 16, 16)` - secondary hover: background `rgba(255, 255, 255, 0.05)` - transition: `filter 0.15s cubic-bezier(0.4, 0, 0.2, 1)` ## Motion - durations: 150ms (dominant) · 200ms · 3000ms - easings: `ease-out` (dominant) · `ease-in-out` - animated properties: transform, opacity, background-color, color Micro-interactions use the dominant duration + easing; nothing on the page animates slower than the longest duration above — don't invent springier motion. ## Their own tokens (verbatim from :root) | Token | Value | |-------|-------| | `--osano-clear-dialog-background` | `rgba(24,13,67,0)` | | `--osano-button-border-color` | `#33323e` | | `--osano-button-background-color` | `#59497a` | | `--osano-button-foreground-color` | `#FFFFFF` | | `--osano-dialog-background-color` | `#13111c` | | `--osano-dialog-foreground-color` | `#FFFFFF` | | `--osano-info-dialog-overlay-color` | `rgba(0,0,0,0.45)` | | `--osano-link-color` | `#ffffff` | | `--osano-toggle-off-track-color` | `#535361` | | `--osano-toggle-off-thumb-color` | `#FFFFFF` | | `--osano-toggle-on-track-color` | `#13111c` | | `--osano-toggle-on-thumb-color` | `#13111c` | _…and 108 more measured on the page._ Prefer these names when extending their system — it's the brand's actual vocabulary. ## Layout (measured) - container max 1696px · common grid: 3-col - nav: 32px relative | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 124 | 1716 | 3 | — | 0/16 | 9/83/9 | | 1840 | 1712 | — | — | 0/0 | — | | 3552 | 765 | — | — | 0/0 | — | | 4317 | 761 | — | — | 0/0 | — | ## Motion choreography (measured) Load order: `div.flex`×2 @0ms → `div.osano-cm-info-dialog__in` @2114ms → `div.osano-cm-window__dialog` @2211ms → `button.osano-cm-dialog__close` @2211ms → `button.osano-cm-dialog__close` @2211ms → `button.osano-cm-dialog__close` @2211ms - `div.bg-pink-200` — transform translateX(-40.9257%)→translateX(-39.9615%) — 150ms cubic-bezier(0, 0, 0.2, 1) - `circle.animate-pulse-station` ×5 — opacity 1→0.1 · transform scale(0)→scale(1) — 3000ms cubic-bezier(0.25, 0.1, 0.25, 0.8) · loops - scroll reveal: 23 elements rest at opacity 0, translateY(24px), animate in over 3000ms (7 revealed during the drive). - overlay dialog (auto-opened): panel #000000 · r 12px · border 1px solid rgba(255, 255, 255, 0.1) · shadow rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px - enter: opacity from 0 · 200ms linear Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - link: #A667E4 · underline ## Responsive (measured) - breakpoints: 768px - mobile (390px): hero 40px · body 16px · nav: inline ## How to apply Paste the Tailwind `@theme` (or CSS variables) as your base, then build each section to its spec — verify every color, radius, and font against these tokens. Hover/focus states, shadows and motion timings above are measured from the live page — match them exactly, don't re-guess them.
An automated reading of Railway's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with railway.com. No screenshots stored. Removal requests: hello@mozaika.design.