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 | #131313 |
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 500ms (dominant) with ease.
- durations: 500ms · 100ms · 400ms
- easings:
ease·cubic-bezier(0.34, 1.56, 0.64, 1) - animated properties: opacity, transform, filter, background-color
Native design tokens
| Token | Value |
|---|---|
--shadow-color | #00000026 |
--shadow-color-hover | #0003 |
--background | #fff |
--foreground | oklch(14.5% 0 0) |
--card | oklch(100% 0 0) |
--card-foreground | oklch(14.5% 0 0) |
--popover | oklch(100% 0 0) |
--popover-foreground | oklch(14.5% 0 0) |
--primary | oklch(20.5% 0 0) |
--primary-foreground | oklch(98.5% 0 0) |
…and 110 more measured on the page.
Button states (measured)
- primary hover: background
#E500A5 - primary focus: background
#E500A5· outline1px solid rgb(229, 0, 165)
Layout (measured)
- container max-width:
1440px - nav: 72px relative
Motion choreography (measured)
Load order: div.flex×19 → div.flex×15 → span.sc-kjwdDK×3 → div.flex → span.sc-eVqvcJ×2 → div.flex×15
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 oklch(0.985 0 0).
Responsive (measured)
- breakpoints: 480px · 640px · 768px · 1024px · 1280px · 1536px
- mobile (390px): nav inline
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add https://mozaika.design/r/decode/uniswap.org
Or as a Meta Astryx theme — a ready defineTheme file with the measured hover/press states baked in:
curl -o src/themes/uniswap.theme.ts https://mozaika.design/api/astryx/decode/uniswap.org.ts
registry item · astryx theme · 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 | `#131313` | **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.4% · `#CFC4CF` 7.6% ## 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: 50px - pill: 9999px - sharp: 3px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#FF37C7` / `oklch(0.145 0 0)` | 1px solid rgba(0, 0, 0, 0) | 12px | 8px 12px 8px 12px | 485 16px | none | | secondary | `#FFEFFB` / `oklch(0.145 0 0)` | none | 20px | 0px 0px 0px 0px | 485 16px | none | **States (measured, not guessed)** - primary hover: background `#E500A5` - primary focus: background `#E500A5` · outline `1px solid rgb(229, 0, 165)` - 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: 500ms (dominant) · 100ms · 400ms - easings: `ease` (dominant) · `cubic-bezier(0.34, 1.56, 0.64, 1)` - animated properties: opacity, transform, filter, background-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 | |-------|-------| | `--shadow-color` | `#00000026` | | `--shadow-color-hover` | `#0003` | | `--background` | `#fff` | | `--foreground` | `oklch(14.5% 0 0)` | | `--card` | `oklch(100% 0 0)` | | `--card-foreground` | `oklch(14.5% 0 0)` | | `--popover` | `oklch(100% 0 0)` | | `--popover-foreground` | `oklch(14.5% 0 0)` | | `--primary` | `oklch(20.5% 0 0)` | | `--primary-foreground` | `oklch(98.5% 0 0)` | | `--secondary` | `oklch(97% 0 0)` | | `--secondary-foreground` | `oklch(20.5% 0 0)` | _…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 1440px - nav: 72px relative ## Motion choreography (measured) Load order: `div.flex`×19 @0ms → `div.flex`×15 @1ms → `span.sc-kjwdDK`×3 @1ms → `div.flex` @1ms → `span.sc-eVqvcJ`×2 @306ms → `div.flex`×15 @925ms - `span.sc-kjwdDK` ×3 — opacity 0→1 · transform translateY(100px)→translateY(0px) — 1000ms cubic-bezier(0.19, 1, 0.22, 1) - `span.sc-eVqvcJ` ×2 — opacity 0→1 · transform translateY(100px)→translateY(0px) — 1000ms cubic-bezier(0.19, 1, 0.22, 1) (delay 300ms) - `div.flex` ×14 — transform rotate(-22deg)→rotate(22deg) — 5714ms 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 `oklch(0.985 0 0)` - tokens that flip between modes: - `--shadow-color`: `#00000026` → `#0006` - `--shadow-color-hover`: `#0003` → `#00000080` - `--background`: `#fff` → `#131313` - `--foreground`: `oklch(14.5% 0 0)` → `oklch(98.5% 0 0)` - `--card`: `oklch(100% 0 0)` → `oklch(20.5% 0 0)` - `--card-foreground`: `oklch(14.5% 0 0)` → `oklch(98.5% 0 0)` - `--popover`: `oklch(100% 0 0)` → `oklch(20.5% 0 0)` - `--popover-foreground`: `oklch(14.5% 0 0)` → `oklch(98.5% 0 0)` ## Responsive (measured) - breakpoints: 480px · 640px · 768px · 1024px · 1280px · 1536px - mobile (390px): 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. --- > **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/decode/uniswap.org
Measured changes over time
- 2026-07-26: motion.dominant_ms 400→500, motion.dominant_easing ease-in-out→ease
- 2026-07-19: motion.dominant_ms 100→400
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.