Uniswap — Design System
Uniswap swaps in Basel Grotesk at 64px on a tuned 485 weight, ink #131313 on white, with hot pink #FF37C7 12px-radius buttons as the only shout. Token grids and swap widgets float in generous whitespace — DeFi's blue-chip protocol dressing like a Swiss exchange with one neon sign.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/uniswap.
Tokens
Uniswap's decoded design system: background #FFFFFF, text #0A0A0B, accent #FF37C7, link #FF37C7, primary #FF37C7; type scale h1 64px / h2 36px / body 16px; 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 | #DADADA |
| text | #0A0A0B |
| text_muted | #676767 |
| primary | #FF37C7 |
| accent | #FF37C7 |
| link | #FF37C7 |
| secondary | #2ABDFF |
| button_bg | #FF37C7 |
| button_text | #222222 |
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: 36px
- body: 16px
Spacing
- base unit: 8px
- scale: 2px, 4px, 5px, 6px, 8px, 12px, 16px, 20px, 24px, 32px
Radii
- base: 4px
- button: 9999px
Shadow
color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px
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
Per-section tokens (5)
- Hero — light · bg #FDFDFD · text #E4D8E3 · 1 col · left
- Stats / Metrics — light · bg #FDFDFD · text #9C9F9C · 3 col · split
- Bento Grid — light · bg #FDEDFC · text #C692C0 · 3 col · split
- Feature — light · bg #FDFDFD · text #BFBFBF · 1 col · left
- Footer — light · bg #FDFDFD · text #D3D3D3 · 1 col · left
Export: DESIGN.md
# Uniswap — Design System > light, modern, high, custom — deep decode (measured live) Uniswap swaps in Basel Grotesk at 64px on a tuned 485 weight, ink #131313 on white, with hot pink #FF37C7 12px-radius buttons as the only shout. Token grids and swap widgets float in generous whitespace — DeFi's blue-chip protocol dressing like a Swiss exchange with one neon sign. ## Colors | Role | Value | |------|-------| | bg | `#FFFFFF` | | surface | `#F0F0F0` | | border | `#DADADA` | | text | `#0A0A0B` | | text_muted | `#676767` | | primary | `#FF37C7` | | accent | `#FF37C7` | | link | `#FF37C7` | | secondary | `#2ABDFF` | | button_bg | `#FF37C7` | | button_text | `#222222` | **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: 9999px - 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 | color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px | | 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` - button: `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. --- > **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/ds/uniswap
Export: Tailwind v4 (@theme)
@theme {
/* action color #FF37C7 — the one interactive color; buttons/links/emphasis only, never large fills. */
--color-bg: #FFFFFF;
--color-surface: #F0F0F0;
--color-border: #DADADA;
--color-text: #0A0A0B;
--color-text-muted: #676767;
--color-primary: #FF37C7; /* primary brand / action color. */
--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. */
--color-link: #FF37C7; /* inline text links — shares the action color. */
--color-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. */
--color-button-bg: #FF37C7; /* primary-button fill — the main call-to-action color. */
--color-button-text: #222222;
/* fonts: Basel Grotesk may be proprietary — safe free fallback: Newsreader (Google Fonts). */
--font-heading: "Basel Grotesk", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Basel Grotesk", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
/* measured weights: 485, 535 — use these, not 400/600 */
--text-hero: 64px; --font-weight-hero: 485; --leading-hero: 76px;
--text-h2: 52px; --font-weight-h2: 485; --leading-h2: 50px;
--text-h3: 36px; --font-weight-h3: 485; --leading-h3: 40px;
--text-body: 24px; --font-weight-body: 485; --leading-body: 29px;
--text-small: 18px; --font-weight-small: 535; --leading-small: 21px;
--radius-base: 4px;
--radius-button: 9999px;
--radius-card: 20px;
--radius-pill: 9999px;
--radius-sharp: 3px;
--shadow-card: color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px;
--color-btn-hover: #E500A5; /* measured primary hover fill */
--outline-focus: 1px auto rgba(0, 0, 0, 0); /* measured focus ring */
--ease-brand: ease-in-out;
--duration-fast: 80ms; /* use: duration-[var(--duration-fast)] */
--duration-base: 100ms;
--duration-slow: 400ms;
--spacing: 8px; /* measured base — drives the p-*/gap-* scale. steps seen on the page: 2, 4, 5, 6, 8, 12, 16, 20, 24, 32px */
}Export: CSS variables
:root {
/* action color #FF37C7 — the one interactive color; buttons/links/emphasis only, never large fills. */
--bg: #FFFFFF;
--surface: #F0F0F0;
--border: #DADADA;
--text: #0A0A0B;
--text-muted: #676767;
--primary: #FF37C7; /* primary brand / 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. */
--link: #FF37C7; /* inline text links — shares the action color. */
--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. */
--button-bg: #FF37C7; /* primary-button fill — the main call-to-action color. */
--button-text: #222222;
--font-heading: "Basel Grotesk", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Basel Grotesk", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--text-hero: 64px; --weight-hero: 485; --leading-hero: 76px;
--text-h2: 52px; --weight-h2: 485; --leading-h2: 50px;
--text-h3: 36px; --weight-h3: 485; --leading-h3: 40px;
--text-body: 24px; --weight-body: 485; --leading-body: 29px;
--text-small: 18px; --weight-small: 535; --leading-small: 21px;
--radius: 4px;
--radius-button: 9999px;
--radius-card: 20px;
--radius-pill: 9999px;
--radius-sharp: 3px;
--shadow-card: color(srgb 0.0745098 0.0745098 0.0745098 / 0.00313726) 0px 0px 10px 0px;
--btn-bg-hover: #E500A5;
--focus-ring: 1px auto rgba(0, 0, 0, 0);
--ease: ease-in-out;
--duration-fast: 80ms;
--duration-base: 100ms;
--duration-slow: 400ms;
}
/* their own tokens, verbatim from the site's :root */
:root {
--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;
}
/* fonts: Basel Grotesk may be proprietary — safe free fallback: Newsreader (Google Fonts). */