Uniswap — decoded design system
Uniswap'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/uniswap.org.
Decoded design system
Uniswap's decoded design system: background #FFFFFF, text #131313, accent #FF37C7, link #FF37C7, primary #FF37C7; type scale h1 64px / h2 52px / body 24px; 8px spacing base; 4px base radius. The single interactive/action color is #FF37C7 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #FFFFFF |
| surface | #F0F0F0 |
| border | #DBDBDB |
| text | #131313 |
| text_muted | #6C6C6C |
| primary | #FF37C7 |
| accent | #FF37C7 |
| link | #FF37C7 |
| secondary | #2ABDFF |
| button_bg | #FF37C7 |
| button_text | #000000 |
Using these colors
- Action color
#FF37C7— the single interactive color; only on things you click or must notice, never large fills. primary,accent,link,button_bgare all#FF37C7— one role, not several (the action color).- accent
#FF37C7— 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. - secondary
#2ABDFF— optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two.
Typography
- Heading: Basel Grotesk
- Body: Basel Grotesk
- h1: 64px
- h2: 52px
- body: 24px
Spacing
- base unit: 8px
- scale: 2px, 4px, 5px, 6px, 8px, 12px, 16px, 20px, 24px, 32px
Radii
- base: 4px
- button: 12px
Shadows (elevation)
- card:
color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px
Motion
Micro-interactions run at 100ms (dominant) with ease-in-out.
- durations: 100ms · 400ms · 80ms
- easings:
ease-in-out·cubic-bezier(0.34, 1.56, 0.64, 1) - animated properties: opacity, transform, background-color, fill
Native design tokens
| Token | Value |
|---|---|
--c-white | #FFFFFF |
--c-black | #000000 |
--c-scrim | rgba(0,0,0,0.60) |
--c-pinkLight | #FEF4FF |
--c-pinkPastel | #FDAFF0 |
--c-pinkBase | #FC74FE |
--c-pinkVibrant | #F50DB4 |
--c-pinkDark | #361A37 |
--c-redLight | #FFF2F1 |
--c-redPastel | #FDCFC4 |
…and 110 more measured on the page.
Button states (measured)
- primary hover: background
#E500A5 - primary focus: outline
1px auto rgba(0, 0, 0, 0)
Layout (measured)
- nav: 72px
Motion choreography (measured)
Load order: div×28 → div._textDecoration-_platfor×2 → div._display-flex×2 → div → div×44 → span.sc-gLaqbQ×6
Scroll reveal: 2 elements rest at opacity 0, animate in over 1000ms.
Stagger: span ×5 — 100ms apart.
Overlay recipe (measured)
dialog panel: rgba(0, 0, 0, 0) · radius 0px
Input (measured)
height 43.1875px · radius 0px
Themes
dark counterpart: background #131313, text #FFFFFF.
Responsive (measured)
- breakpoints: 450px · 480px · 640px · 768px · 1024px · 1280px
- mobile (390px): hero 36px · nav inline
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/uniswap.org
registry item · or query it over MCP: get_design_system("Uniswap")
Export: DESIGN.md
# Uniswap — Design System > light, modern, high, custom — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#FFFFFF` | | surface | `#F0F0F0` | | border | `#DBDBDB` | | text | `#131313` | | text_muted | `#6C6C6C` | | primary | `#FF37C7` | | accent | `#FF37C7` | | link | `#FF37C7` | | secondary | `#2ABDFF` | | button_bg | `#FF37C7` | | button_text | `#000000` | **Using these colors** - **Action color** `#FF37C7` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `primary`, `accent`, `link`, `button_bg` are all `#FF37C7` — one role, not several (your action color). - **accent** `#FF37C7` — 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. - **secondary** `#2ABDFF` — optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. - **Page coverage** (full-page screenshot pixels): `#FDFDFD` 92.8% · `#CCC7D2` 7.2% ## Typography - Heading: **Basel Grotesk** _(free fallback: Newsreader)_ - Body: **Basel Grotesk** _(free fallback: Newsreader)_ | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 64px / 485 · lh 76px | | h2 | 52px / 485 · lh 50px | | h3 | 36px / 485 · lh 40px | | body | 24px / 485 · lh 29px | | small | 18px / 535 · lh 21px | - Weight ladder: 485 · 535 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** Basel Grotesk may be proprietary — safe free fallback: Newsreader (Google Fonts). ## Spacing - base unit: 8px (inferred from the measured scale) - measured scale: 2px, 4px, 5px, 6px, 8px, 12px, 16px, 20px, 24px, 32px — snap all gaps/padding to these ## Radius - base: 4px - button: 12px - card: 20px - pill: 9999px - sharp: 3px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#FF37C7` / `#000000` | 1px solid rgba(0, 0, 0, 0) | 12px | 8px 12px 8px 12px | 400 13.3333px | none | | secondary | `rgba(0, 0, 0, 0)` / `#FF37C7` | none | 20px | 0px 0px 0px 0px | 485 16px | none | **States (measured, not guessed)** - primary hover: background `#E500A5` - primary focus: outline `1px auto rgba(0, 0, 0, 0)` - transition: `transform 0.1s cubic-bezier(0.17, 0.67, 0.45, 1)` ## Shadows (elevation) - card: `color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px` ## Motion - durations: 100ms (dominant) · 400ms · 80ms - easings: `ease-in-out` (dominant) · `cubic-bezier(0.34, 1.56, 0.64, 1)` - animated properties: opacity, transform, background-color, fill 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 | |-------|-------| | `--c-white` | `#FFFFFF` | | `--c-black` | `#000000` | | `--c-scrim` | `rgba(0,0,0,0.60)` | | `--c-pinkLight` | `#FEF4FF` | | `--c-pinkPastel` | `#FDAFF0` | | `--c-pinkBase` | `#FC74FE` | | `--c-pinkVibrant` | `#F50DB4` | | `--c-pinkDark` | `#361A37` | | `--c-redLight` | `#FFF2F1` | | `--c-redPastel` | `#FDCFC4` | | `--c-redBase` | `#FF5F52` | | `--c-redVibrant` | `#FF0000` | _…and 108 more measured on the page._ Prefer these names when extending their system — it's the brand's actual vocabulary. ## Layout (measured) - nav: 72px ## Motion choreography (measured) Load order: `div`×28 @0ms → `div._textDecoration-_platfor`×2 @1ms → `div._display-flex`×2 @1ms → `div` @1ms → `div`×44 @1ms → `span.sc-gLaqbQ`×6 @5ms - `span.sc-gLaqbQ` ×3 — opacity 0→1 · transform translateY(100px)→translateY(0px) — 1000ms cubic-bezier(0.19, 1, 0.22, 1) - `span.sc-ipUnzB` ×2 — opacity 0→1 · transform translateY(100px)→translateY(0px) — 1000ms cubic-bezier(0.19, 1, 0.22, 1) (delay 300ms) - `div._position-_platformweb_a` ×13 — transform rotate(-22deg)→rotate(22deg) — 4762ms ease-in-out · loops - stagger: `span` ×5 — 100ms apart - scroll reveal: 2 elements rest at opacity 0, animate in over 1000ms (0 revealed during the drive). - overlay dialog (auto-opened): panel rgba(0, 0, 0, 0) · r 0px - exit: opacity from 1 · 100ms cubic-bezier(0.17, 0.67, 0.45, 1) | transform from scale(1) · 100ms cubic-bezier(0.17, 0.67, 0.45, 1) Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - input: h 43.1875px · r 0px · bg rgba(0, 0, 0, 0) · placeholder rgba(19, 19, 19, 0.35) ## Themes (both measured) - dark counterpart: bg `#131313` · text `#FFFFFF` ## Responsive (measured) - breakpoints: 450px · 480px · 640px · 768px · 1024px · 1280px - mobile (390px): hero 36px · 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 Uniswap's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with uniswap.org. No screenshots stored. Removal requests: hello@mozaika.design.