Mercari
Mercari
mercari
Design System
Mercari logo

Mercari

Mercari is Japan's largest C2C marketplace (50M+ downloads, 350K daily listings) and its design system is a textbook example of mature semantic token architecture. The production site at jp.mercari.com exposes 681 CSS custom properties on :root, organized into the well-named --alias-color-* namespace: --alias-color-background-{role}-{state},

01

Color Palette

Brand

Accent

Neutrals

Semantic

02

Typography

Type Scale

Rendered in system-ui to clearly show scale & weight.

display48px · 600 · 1.25
Design at scale
32px32px · 600 · 1.25
Section heading
heading-lg24px · 600 · 1.4
Subheading
body16px · 400 · 1.5
Body text. The quick brown fox jumps over the lazy dog. Designed for readable line-height in long-form content.
small12px · 400 · 1.5
Supporting text
caption12px · 400 · 1.5
Caption · timestamp · 2026
label10px · 500 · 1.5
BADGE / LABEL

Fonts

Primary
Inter
Open · OFL
Designed by Rasmus Andersson. Variable font with full weight range.
Install via Google Fonts
03

Spacing & Shape

Spacing

PurposeValuePreview
Densitycompact
Base unit4px
Section gap28px
Card padding16px
Element gap8px

Border Radius

ElementValuePreview
buttons11px
inputs11px
cards11px
dialogs11px
badges8px
pillPill9999px

Elevation

Shadow 1
Tooltip / popover
Modal / dropdown
Strong overlay
04

Guidelines

Do and Don't guidelines parsed from DESIGN.md.

Do

  • Use the --alias-color-* semantic tokens. The 681 variables cover virtually every UI surface — never hardcode hex values when an alias exists.
  • reserve Mercari Red (#ff333f) for the attention semantic — sale prices, danger actions, the brand mark, error states.
  • Use weight 700 for primary CTAs and prices. Weight 400 for navigation, secondary actions, body.
  • keep border-radius: 4px on buttons and cards. Mercari's commerce voice is sharp and functional.
  • apply circular thumbnails (border-radius: 50%) to brand/category icons in navigation. It's a distinctive Mercari pattern.
  • Use the locale-aware font stack with Hiragino/Meiryo "Custom" variants. The optical tuning matters for Japanese readability.
  • Use the explicit named z-index tokens (--mer-z-index-*) — Mercari's stacking order is deliberate.

Don't

  • invent new color values. Mercari's palette is exhaustive; if you can't find an alias, use the closest one.
  • Use red for general "primary" CTAs that aren't attention-grabbing. Mercari's primary actions are often blue-accent (#0095ee) or neutral, not red.
  • Use weight 500 or 600 — they're not part of Mercari's typography rhythm.
  • Use pill-shaped or large-radius buttons — that breaks the marketplace density aesthetic.
  • Use shadows on flat product cards — let the white card on #f5f5f5 secondary bg provide separation.
  • load custom web fonts. Mercari's audience is mobile-first across slow connections; system fonts respect that.
  • Use arbitrary z-index values like 9999 — that breaks the layered system.
05

Components

Buttons

button-primary
Background#ff333f
Text#ffffff
Radius4
Padding11px 15px
Font15px/700
Use: Primary attention CTA
button-accent
Background#ffffff
Text#0095ee
Radius4
Padding8px 12px
Font15px/700
Use: Accent CTA Shop Now
button-neutral
Background#ffffff
Text#333333
Radius4
Padding8px
Font15px/400
Use: Login/Signup secondary

Inputs

search-input
Background#f5f5f5
Text#999999
Radius4
Use: Full-width top search bar

Cards

product-card
product-card
Background#ffffff
Radius4
Use: Product/brand card, image-led

Tabs

TabTabTab
tab
Background#ffffff
Text#333333
Active#ff333f text with 2px red underline
Use: Underline-driven section tabs

Toasts

snackbar
snackbar
Background#333333
Text#ffffff
Use: Dark snackbar/toast

Dialogs

modal
Dialog content placeholder
modal
Background#ffffff
Radius8
Use: Centered modal, strong scrim backdrop

Related design systems