Design system open.spotify.com

Spotify - Web Player: Music for everyone

open.spotify.commode sombre2 848 éléments mesurésmesuré il y a 4 heures
Visiter spotify.com

open.spotify.com utilise SpotifyMixUI, SpotifyMixUITitle pour la typographie et #a3694f comme couleur d’accent. Mesuré le 28 septembre 2026.

Utilisez-le avec votre IAaussi dans le zip sous README.md et PROMPT.md

  1. .
  2. Décompressez le pack dans votre projet pour que le dossier se trouve dans design/open.spotify.com-design-pack/.
  3. Facultatif : copiez aussi le dossier dans .claude/skills/open-spotify-com-design/. Le SKILL.md qu’il contient fait charger le pack automatiquement à Claude Code chaque fois qu’il construit une interface.
  4. Collez le prompt ci-dessous dans Claude Code et précisez ce que vous voulez construire.
Prompt

Le prompt reste en anglais : il nomme les fichiers du pack, et votre IA le lit dans n’importe quelle langue.

Use the design pack in `design/open.spotify.com-design-pack/` as the source of truth for how the UI looks and behaves. It was measured from https://open.spotify.com/.

1. Read DESIGN.md (colours, type, spacing, radii, shadows, components) and BEHAVIOR.md (hover, focus, tooltips, menus, motion, scrolling, forms, responsive rules) before writing any code.
2. Look at every image in `design/open.spotify.com-design-pack/screenshots/` and match the composition, density, whitespace and image treatment. Tokens do not carry those; the screenshots do.
3. Style everything with `design/open.spotify.com-design-pack/tokens.css` (or `tailwind.css` if this project uses Tailwind v4). Do not invent colours, radii, shadows or font sizes that are not in the pack.
4. Load the fonts named in DESIGN.md. Where a font is not freely available, use the stand-in it names at the same sizes and weights.
5. Match the breakpoints and hover, focus and motion rules in BEHAVIOR.md. The site has no dark mode, so do not add one.

Now build: [describe the page or app you want]

When you are done, compare the result with the screenshots at desktop and phone widths, fix the biggest visual difference first, and repeat.

Couleurs10 tokens

background
#121212
surface
#000000
surface-2
#333333
surface-3
#1f1f1f
foreground
#b3b3b3
muted-foreground
#ffffff
primary
#a3694f
on-primary
#ffffff
secondary
#1ed760
border
#292929

Espacementsunité de 4 px

4812162432156
Largeur du contenu
fluide
Points de rupture
320, 400, 550, 600, 896px

Arrondis

bouton 9999pxchamp 0pxcarte 0pximage 6px

Ombres2

1
2

Typographie2 familles

SpotifyMixUIauto-hébergée, substitut InterSpotifyMixUITitleauto-hébergée, substitut Inter
headline-displayQuick brown fox16px / 700 / lh 1.4
headline-lgQuick brown fox24px / 700 / lh 1.4
headline-mdQuick brown fox24px / 600 / lh 1.4
body-mdThe quick brown fox jumps over the lazy dog16px / 400 / lh 1.4
label-mdThe quick brown fox jumps over the lazy dog16px / 400 / lh 1.4
buttonThe quick brown fox jumps over the lazy dog16px / 700 / lh 1.4
codeconst pack = extract(url)16px / 400 / lh 1.5
Tailles utilisées
1112141624

Composants

En savoir plusSe connecterAdresse e-mail
bouton secondary
texte #ffffff sur #1f1f1f, r 9999px, h 48px, 16px/400
bouton ghost
texte #b3b3b3 sur transparent sur #000000, r 9999px, h 48px, 16px/400
champ
h 48px, 0px solid #ffffff, r 0px
lien
#ffffff, sans soulignement, 400
en-tête
754px, static, 9 liens à 14 px
h1
16px / 700, alignement start, max 90 px
séparateur
Divider 1px #292929, margin 24px
formulaires
1 forms, 15 inputs. Required markers: 0. Help texts: 0. Submit button is content-width. Label placement: above (3), placeholder-only (1).
tableaux
div.X0xbythb00oWjQBjvqMi.bDR0WqICbHQhtz7WZOPi: 1 columns × 20 visible rows, rows 277px tall, cell padding 0px 0px. No header row.
icônes
Icons: 83 inline SVGs, filled, sizes 24px/16px/25px/32px; icon font classes icon-.

Interactions et animations

  • button primary: background #1f1f1f → #2a2a2a, moves up 1px
  • button secondary "English": border #7c7c7c → #ffffff, moves up 0.6px
  • nav link "Browse podcasts": moves up 0.6px
  • body link "Trending songs": underline appears
  • input: background #1f1f1f → #2a2a2a, shadow added (rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset)
  • focus button primary: no visible focus style measured (may rely on :focus-visible with keyboard only)
  • focus body link: no visible focus style measured (may rely on :focus-visible with keyboard only)
  • focus input: box-shadow ring rgba(255, 255, 255, 0.267) 0px 0px 0px 0.53658px inset
  • infobulles: Tooltips: below the trigger, 12px gap, centered on trigger; transparent on #ffffff, 14px/400, radius 0px, padding 0px 0px, no arrow; appears after a delay; removed instantly on leave.
  • menus: 1 aria-haspopup triggers exist; none opened on hover (click-to-open menus).
  • animations: 288 elements carry transitions; typical 0.15s with cubic-bezier(0.3, 0, 0, 1), mostly on transform, background-color, opacity. 4 running keyframe animations (WvqjIO41Fsk89RJ0u2WC 0.25s 1; LVV5qXMAKD5JxMYTJ5kg auto 1; mKwU8TAUxK2egmWkUsOA auto 1). 96 sizable elements sit at opacity 0 before scrolling: scroll-reveal animations are in use (reveal on enter, fade + rise is the usual recipe).

Thème

The site is dark by default and no light mode responded to prefers-color-scheme, a theme toggle, or a root class/attribute.

Responsive1440 / 1024 / 768 / 390 px

open.spotify.com à 1440 pixels
1440px
open.spotify.com à 1024 pixels
1024px
open.spotify.com à 768 pixels
768px
open.spotify.com à 390 pixels
390px
ViewportContenuGouttièreTexteH1En-têteHeroGrillesBoutons
desktop 1440fluid435px16px16px, 1 line, start754px, 9 links, 1 CTAtext only2→1 col; 2→1 col; 2→1 colcontent-width
laptop 1024fluid435px16px16px, 1 line, start622px, 9 links, 1 CTAtext only2→1 col; 2→1 col; 2→1 colcontent-width
tablet 768fluid335px16px16px, 1 line, start858px, 9 links, 1 CTAtext only2→1 col; 2→1 col; 2→1 colcontent-width
phone 390fluid335px16px16px, 1 line, start680px, 9 links, 1 CTAtext only2→1 col; 2→1 col; 2→1 colcontent-width
  • H1 goes 16px → 16px (100%), 1 → 1 lines.
  • Nav never collapses to a hamburger (9 links still visible at 390px).
  • Card grids: 1 columns → 1 column on phones (gap normal → normal).
  • Body text stays 16px at every width.
  • Phone side gutter 335px.
  • Horizontal overflow at 768, 390px (the source has a responsive bug; do not copy it).
  • Section top padding 16px → 16px.

Fichiers du pack14 fichiers

DESIGN.md
Format DESIGN.md de Google ; Stitch, Claude Code et Cursor le lisent
9,7 ko
tokens.json
Design tokens W3C (DTCG) pour Style Dictionary et les plugins Figma
6,8 ko
tokens.css
Les mêmes valeurs en propriétés personnalisées CSS
1,6 ko
tailwind.css
Bloc @theme Tailwind v4
875 o
SKILL.md
Skill Claude Code / Cursor qui ordonne la lecture du pack pour l’agent
2,2 ko
BEHAVIOR.md
Survol, focus, infobulles, menus, animations, défilement, tableaux, formulaires, texte, responsive, mode sombre, stack
12 ko
evidence.json
Mesures brutes derrière les deux documents (chaque viewport, sonde et règle)
83 ko
screenshots/
desktop-1440-fold.png, desktop-1440-full.jpg, laptop-1024-fold.png, tablet-768-fold.png, phone-390-fold.png, phone-390-full.jpg
6 images
DESIGN.md234 lignes
---
version: alpha
name: "open.spotify.com"
description: "Design system extracted from https://open.spotify.com/ on 2026-09-28"
colors:
  background: "#121212"
  surface: "#000000"
  surface-2: "#333333"
  surface-3: "#1f1f1f"
  foreground: "#b3b3b3"
  muted-foreground: "#ffffff"
  primary: "#a3694f"
  on-primary: "#ffffff"
  secondary: "#1ed760"
  border: "#292929"
typography:
  headline-display:
    fontFamily: "SpotifyMixUI"
    fontSize: "16px"
    fontWeight: 700
    lineHeight: "1.4"
  headline-lg:
    fontFamily: "SpotifyMixUITitle"
    fontSize: "24px"
    fontWeight: 700
    lineHeight: "1.4"
  headline-md:
    fontFamily: "SpotifyMixUI"
    fontSize: "24px"
    fontWeight: 600
    lineHeight: "1.4"
  body-md:
    fontFamily: "SpotifyMixUI"
    fontSize: "16px"
    fontWeight: 400
    lineHeight: "1.4"
  label-md:
    fontFamily: "SpotifyMixUI"
    fontSize: "16px"
    fontWeight: 400
    lineHeight: "1.4"
  button:
    fontFamily: "SpotifyMixUI"
    fontSize: "16px"
    fontWeight: 700
    lineHeight: "1.4"
  code:
    fontFamily: "SpotifyMixUI"
    fontSize: "16px"
    fontWeight: 400
    lineHeight: "1.5"
rounded:
  none: "0px"
  full: "9999px"
  md: "6px"
  sm: "4px"
spacing:
  unit: "4px"
  1: "4px"
  2: "8px"
  3: "12px"
  4: "16px"
  5: "24px"
  6: "32px"
  7: "156px"
components:
  button-secondary:
    backgroundColor: "#1f1f1f"
    textColor: "#ffffff"
    typography: "{typography.button}"
    rounded: "9999px"
    height: "48px"
    padding: "12px 12px"
  button-ghost:
    backgroundColor: "#000000"
    textColor: "#b3b3b3"
    typography: "{typography.button}"
    rounded: "9999px"
    height: "48px"
    padding: "12px 12px"
  input:
    backgroundColor: "#1f1f1f"
    rounded: "0px"
    height: "48px"
---

# open.spotify.com

## Overview

Spotify - Web Player: Music for everyone

Pill-shaped controls, layered shadows for depth, restrained display type at 16px / 700, a single red accent on neutrals. The site ships in dark mode by default (dark surfaces, light type). Measured from 2848 rendered elements at 1440px wide on 2026-09-28.

Reference screenshots live beside this file; look at them before writing any layout, they carry the composition, density and image treatment that tokens cannot:

- `screenshots/desktop-1440-fold.png`: Desktop 1440, above the fold
- `screenshots/desktop-1440-full.jpg`: Desktop 1440, full page
- `screenshots/laptop-1024-fold.png`: Laptop 1024, above the fold
- `screenshots/tablet-768-fold.png`: Tablet 768, above the fold
- `screenshots/phone-390-fold.png`: Phone 390, above the fold
- `screenshots/phone-390-full.jpg`: Phone 390, full page

## Colors

| Token | Value | Use |
| --- | --- | --- |
| background | `#121212` | Page background |
| surface | `#000000` | Cards, panels, raised or recessed surfaces |
| surface-2 | `#333333` | Secondary surface |
| surface-3 | `#1f1f1f` | Secondary surface |
| foreground | `#b3b3b3` | Primary text |
| muted-foreground | `#ffffff` | Secondary text, captions |
| primary | `#a3694f` | Accent: primary buttons, links, focus |
| on-primary | `#ffffff` | Text on the accent |
| secondary | `#1ed760` | Secondary accent (green) |
| border | `#292929` | Hairlines, dividers, input borders |

Full painted palette by area (largest first): `#121212`, `#000000`, `#333333`, `#535353`, `#1f1f1f`, `#1ed760`, `#687a80`, `#a3694f`.

Gradients in use: `linear-gradient(rgba(0, 0, 0, 0.6) 0%, rgb(18, 18, 18) 100%), url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0`; `linear-gradient(90deg, rgb(175, 40, 150), rgb(80, 155, 245))`; `linear-gradient(to right, rgba(0, 0, 0, 0) 0px, rgb(42, 42, 42) 10%, rgb(42, 42, 42) 90%, rgba(0, 0, 0, 0) 100%)`.

The accent `#a3694f` is used sparingly: primary buttons, links and focus rings. Everything else stays neutral.

## Typography

- **SpotifyMixUI** for h1, body, label, button, code: self-hosted webfont, not freely available; use **Inter** from Google Fonts as the stand-in.
- **SpotifyMixUITitle** for h2: self-hosted webfont, not freely available; use **Inter** from Google Fonts as the stand-in.

| Role | Family | Size | Weight | Line height | Tracking |
| --- | --- | --- | --- | --- | --- |
| headline-display | SpotifyMixUI | 16px | 700 | 1.4 | normal |
| headline-lg | SpotifyMixUITitle | 24px | 700 | 1.4 | normal |
| headline-md | SpotifyMixUI | 24px | 600 | 1.4 | normal |
| body-md | SpotifyMixUI | 16px | 400 | 1.4 | normal |
| label-md | SpotifyMixUI | 16px | 400 | 1.4 | normal |
| button | SpotifyMixUI | 16px | 700 | 1.4 | normal |
| code | SpotifyMixUI | 16px | 400 | 1.5 | normal |

Type scale in use: 11px, 12px, 14px, 16px, 24px. Base body size 16px.

The H1 renders at 16px / 700, start aligned, up to 90px wide. Sample: "Your Library".

## Layout

- Spacing unit: 4px. Scale in use: 4, 8, 12, 16, 24, 32, 156 (px).
- Flex and grid gaps: 4, 8, 12 px.
- Content max width: not detected (fluid).
- Breakpoints: 320px, 400px, 550px, 600px, 896px.
- Header: 754px tall, static, background `rgba(0, 0, 0, 0)`; 9 nav links at 14px / 700 (Browse podcasts · Legal · Safety & Privacy Center · Privacy Policy · Cookies · About Ads · Accessibility · Notice at Collection).

## Elevation & Depth

Shadows in use, most common first:

- shadow-1: `rgba(0, 0, 0, 0.5) 0px 8px 24px 0px`
- shadow-2: `rgb(18, 18, 18) 0px 1px 0px 0px, rgb(124, 124, 124) 0px 0px 0px 1px inset`

## Shapes

- Buttons: 9999px
- Inputs: 0px
- Cards and panels: 0px
- Images and media: 6px
- Radius scale: none 0px, full 9999px, md 6px, sm 4px

## Components

### Button, secondary

Background `#1f1f1f`, text `#ffffff`, border none, radius 9999px, height 48px, padding 12px 12px, 16px / 400.

### Button, ghost

Background transparent (it sits on `#000000`, so place it on that colour), text `#b3b3b3`, border none, radius 9999px, height 48px, padding 12px 12px, 16px / 400.

### Input

Height 48px, background `#1f1f1f`, border 0px solid #ffffff, radius 0px, 16px text, padding 12px 96px.

### Link

Colour `#ffffff`, no underline at rest, weight 400.

## Dark Mode

The site is dark by default and no light mode responded to prefers-color-scheme, a theme toggle, or a root class/attribute.

## Responsive Behavior

| Viewport | Content width | Gutter | Body | H1 | Header | Hero | Grids | Buttons |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| desktop 1440px | fluid | 435px | 16px | 16px, 1 line, start | 754px, 9 links, 1 CTA | text only | 2→1 col; 2→1 col; 2→1 col | content-width |
| laptop 1024px | fluid | 435px | 16px | 16px, 1 line, start | 622px, 9 links, 1 CTA | text only | 2→1 col; 2→1 col; 2→1 col | content-width |
| tablet 768px | fluid | 335px | 16px | 16px, 1 line, start | 858px, 9 links, 1 CTA | text only | 2→1 col; 2→1 col; 2→1 col | content-width |
| phone 390px | fluid | 335px | 16px | 16px, 1 line, start | 680px, 9 links, 1 CTA | text only | 2→1 col; 2→1 col; 2→1 col | content-width |

- H1 goes 16px → 16px (100%), 1 → 1 lines.
- Nav never collapses to a hamburger (9 links still visible at 390px).
- Card grids: 1 columns → 1 column on phones (gap normal → normal).
- Body text stays 16px at every width.
- Phone side gutter 335px.
- Horizontal overflow at 768, 390px (the source has a responsive bug; do not copy it).
- Section top padding 16px → 16px.

## Interaction & Motion

288 elements carry transitions; typical 0.15s with cubic-bezier(0.3, 0, 0, 1), mostly on transform, background-color, opacity. 4 running keyframe animations (WvqjIO41Fsk89RJ0u2WC 0.25s 1; LVV5qXMAKD5JxMYTJ5kg auto 1; mKwU8TAUxK2egmWkUsOA auto 1).

- Hover on button-primary: background #1f1f1f → #2a2a2a, moves up 1px; cursor pointer; transition background-color, color | 0.2s, 0.2s | ease-in-out, ease-in-out | delay 0s, 0s.
- Hover on button-secondary ("English"): border #7c7c7c → #ffffff, moves up 0.6px; cursor pointer; transition border-color, transform | 0.15s | cubic-bezier(0.3, 0, 0, 1).
- Hover on nav-link ("Browse podcasts"): moves up 0.6px; cursor pointer; transition background-color, transform | 0.15s | cubic-bezier(0.3, 0, 0, 1).
- Hover on body-link ("Trending songs"): underline appears; cursor pointer.
- Hover on input: background #1f1f1f → #2a2a2a, shadow added (rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset); cursor text; transition box-shadow, background, color | 0.22s, 0.22s, 0.22s | ease-in, ease-in, ease-in | delay 0s, 0s, 0s.
- Focus on button-primary: no visible focus style measured (may rely on :focus-visible with keyboard only).
- Focus on body-link: no visible focus style measured (may rely on :focus-visible with keyboard only).
- Focus on input: box-shadow ring rgba(255, 255, 255, 0.267) 0px 0px 0px 0.53658px inset.
- Tooltips: below the trigger, 12px gap, centered on trigger; transparent on #ffffff, 14px/400, radius 0px, padding 0px 0px, no arrow; appears after a delay; removed instantly on leave.
- 1 aria-haspopup triggers exist; none opened on hover (click-to-open menus).
- 96 sizable elements sit at opacity 0 before scrolling: scroll-reveal animations are in use (reveal on enter, fade + rise is the usual recipe).
- Portal roots present: ReactModalPortal, ReactModalPortal, ReactModalPortal.

Full detail (every overlay, table, form, scroll and text rule measured) is in `BEHAVIOR.md`; raw evidence in `evidence.json`.

## Do's and Don'ts

- Do use 4px multiples for every padding, margin and gap; the site does not use odd values.
- Do reserve `#a3694f` for actions and focus; never paint large areas with it.
- Do keep body text at 16px in SpotifyMixUI.
- Do match corner radii per element class (buttons 9999px, cards 0px); do not pick one radius for everything.
- Do use the measured shadows above; do not invent heavier ones.
- Don't substitute a different accent hue or introduce gradients that are not listed above.
- Don't rebuild from the tokens alone; open the screenshots for composition, density and image treatment.