Aller au contenu principal
X Developer Platform

X Developer Platform design system DESIGN.md et guide de style

Developer ToolsProv1.0.0 (Dernière)
developer.twitter.com•Associé le 30 nov. 2026, 04:00•Vérifié par Bestony

Public site for the X API: a pure-black developer surface where white is the primary, an Inter and Geist Mono pair share the page equally, and a nine-step white opacity ramp carries all hierarchy.

Site Pro

Vous pouvez lire gratuitement le récit de design complet et jusqu'à 8 couleurs principales de X Developer Platform. Passez à Pro pour accéder aux 103 design tokens, aux téléchargements complets de DESIGN.md et à 1 révisions.

Affichage de 8 sur 18 couleurs
Clair (100%)
Aa Exemple#FFFFFF
outline
rgb(255, 255, 255)
Clair (100%)
Aa Exemple#FFFFFF
primary
rgb(255, 255, 255)
Sombre (0%)
Aa Exemple#0A0A0A
surface
rgb(10, 10, 10)
Sombre (37%)
Aa Exemple#00BA7C
secondary
rgb(0, 186, 124)
Sombre (0%)
Aa Exemple#000000
background
rgb(0, 0, 0)
Sombre (0%)
Aa Exemple#000000
on-primary
rgb(0, 0, 0)
Clair (100%)
Aa Exemple#FFFFFF
on-surface
rgb(255, 255, 255)
Sombre (0%)
Aa Exemple#000000
on-secondary
rgb(0, 0, 0)
Obtenez la palette complète, les variables CSS et la source DESIGN.md

Passez à DesignMD Pro pour copier toutes les couleurs en :root variables CSS, inspecter les références de tokens de composants et télécharger le fichier source complet.

Règles de design

Overview

The X Developer Platform site is the public face of the X API — docs entry, pricing, an exhibit of community-built tools, and a service-status page. It is built as a pure-black developer surface: the ground is literally #000000, the "primary" color is white, and hierarchy is carried entirely by a translucent-white opacity ramp that steps down from 100% to 30%. Type is a two-family pair — Inter for anything a human reads, Geist Mono for anything a machine reads — and the two are used in almost equal measure, which is the site's core idea: this is documentation for an API, so code and prose share the page on equal terms. Shape is binary: 9999px pills for every interactive control, 16px and 32px for panels. The only color anywhere is X green #00ba7c, and it appears on exactly one thing — HTTP status codes.

Colors

The palette is black, white, and the alphas in between. There is no grey ramp in the conventional sense; every "grey" on this site is white at a stated opacity over black.

  • Primary (#ffffff): white is the primary. It fills the Go to Console pill, paints the X wordmark and every heading, and is the text color of every link. On a black ground this inverts the usual assumption and makes white feel like a material rather than an absence.
  • On-primary (#000000): the label inside the white pill. Pure black on pure white, 21:1.
  • Secondary (#00ba7c): X green, and the only chromatic token in the system. It marks the 200 OK label in the Live Data code panels and nothing else. It is applied at 70% opacity in the rendered UI, where it measures roughly 4.2:1 against the panel; the full-strength value measures about 7.7:1, which is why small status text should use the token directly rather than the faded variant.
  • On-secondary (#000000): the inverse pairing, reserved for text set on the green.
  • Background (#000000): the page ground. Not near-black, not #0a0a0a — true black, which is what lets the translucent-white ramp work as a tonal scale.
  • Surface (#0a0a0a) / surface-container (#141414) / surface-container-high (#262626): the three raised steps. #0a0a0a carries the exhibit carousel card, #141414 the status page's loading card, and #262626 the deepest inset.
  • The white ramp: #ffffff at 100% for headings and primary copy, 85% for the language-picker label, 80% for body copy, links, and code, 70% for the secondary button label, 60% for standfirsts and section intros, 50% for eyebrows and footer headings, 45% for exhibit card body copy, 40% for the quietest captions, and 30% for the exhibit page's most recessive metadata. Nine steps, all of them the same hue at different weights.
  • On-surface-subtle (#9ca3af): a cool neutral grey used for the hero standfirst on the home and pricing pages. It is the one value in the system that is not a white alpha, and it reads slightly cooler than the ramp around it.
  • Outline (#ffffff at 10%) / outline-variant (#ffffff at 20%): the hairline and the strong hairline. The 10% step borders every card and panel — it is the most-repeated value on the site after the text ramp. The 20% step borders inputs, ghost buttons, and the carousel card. A 25% step is used for the language picker's border, a 15% step on the exhibit grid, and a 5% step for the faintest dividers.
  • Inverse-surface (#ffffff) / inverse-on-surface (#000000): the light pairing, used only inside the primary pill.

Typography

Two families, and the split is the whole concept.

  • Inter carries display, headings, body, labels, and buttons. Weights are narrow: 400 for almost everything, 500 for the display sizes and card titles, and 600 only for the status page's Service Status heading. There is no bold anywhere.
  • Geist Mono carries the eyebrows, the code panels, the language picker, and the exhibit's small labels. The declared stack is menlo, "menlo Fallback", geistMono, "Geist Mono", monospace — a system-first mono that resolves to Menlo on Apple hardware and to Geist Mono elsewhere. Mono is used more often than Inter on the captured pages, which is unusual for a marketing site and is exactly right for an API product.
  • Display: 72px/500 at a 1.1 line height for the home hero (A New Developer Experience), 60px/500 at 1.0 with -0.025em tracking for Build and Launch on X, 36px/600 for Service Status.
  • Headline: 48px/400 at 1.0 with -0.025em tracking for section statements (Benefits of Pay-Per-Use, Real responses. Lightning quick., Pay-Per-Use vs. Subscription, Official Partners), 30px/400 at 1.2 for sub-sections. Note that these large headings sit at regular weight — the size does the work, not the weight.
  • Title: 20px/500 for card headings, 15px/500 for exhibit list items.
  • Body: 18px/400 at 1.55 for standfirsts, 16px/400 at 1.5 for paragraphs and list copy, 14px/400 at 1.43 for links and captions, 12px/400 for code.
  • Eyebrows: Geist Mono 14px/400 with 0.025em tracking, uppercased by CSS, in white at 50% — [ INTRODUCING ], [ KEY FEATURES ], [ LIVE DATA ], [ X LAUNCH ], [ BROWSE ], [ OFFICIAL PARTNERS ]. The square brackets are part of the string, not decoration, and they are the site's most recognizable typographic tic.
  • Action labels: 14px/400 with 0.1em tracking, uppercased — DOCS, EXHIBIT, FEATURES, PRICING, COMPARISON, STATUS, ENGLISH, SIGN IN, Go to Console, Learn More. Every interactive label on the site is uppercase mono-tracked.
  • Code: Geist Mono 12px/400 at 1.5 in white at 80%, inside the 200 OK / APPLICATION/JSON panels.
  • Letter-spacing is normal everywhere except the two tracked uppercase roles.

Layout

A 1280px container with a 24px gutter, and an 80px sticky header that is transparent until scroll. The header holds the X wordmark at left, six uppercase nav items in the middle, and a ENGLISH language pill plus a SIGN IN pill at right. Below it the page is a stack of full-bleed black bands: a hero with a soft radial spotlight behind it, then the key-features grid, the Live Data section, the credit-consumption detail, the pay-per-use comparison, and a closing CTA. Section measures narrow as the content gets more specific — 896px for prose sections, 768px for the comparison, 672px, 576px, and 448px for the tightest blocks. The hero headline is set against a radial-gradient(ellipse 70% 95% at 50% 18%, rgba(255,255,255,.42), transparent 70%) spotlight plus a radial-gradient(50% 120% at 70% 52%, rgba(180,200,255,.08), transparent 60%) cool wash, which is the only atmospheric effect on the page. The footer is a three-column link index — PRODUCT, DEVELOPER, RESOURCES — with an oversized X watermark behind it.

Elevation & Depth

Depth is done with inset rings, not shadows. The signature treatment is rgba(255,255,255,0.03) 0 0 0 1px — a 3% white hairline drawn inside the element — used on cards and panels across the site, paired with rgba(0,0,0,0.05) 0 1px 2px for the faintest lift. The exhibit carousel card goes further with a stacked treatment: rgba(255,255,255,0.32) 0 1px 0 inset, rgba(255,255,255,0.04) 0 -1px 0 inset, and rgba(0,0,0,0.4) 0 16px 40px — a top highlight, a bottom shade, and a real drop shadow, which makes it the only genuinely three-dimensional object on the site. The hero's spotlight is built from radial gradients rather than from any blurred element. Where the page glows, it glows white: rgba(255,255,255,0.35) 0 0 25px is the only bloom in the system.

Shapes

Two radii carry the entire site, and the split is absolute: every interactive control is a 9999px pill, and every panel is a soft rectangle.

  • Pills (9999px): the Go to Console and Learn More buttons, the ENGLISH language picker, the SIGN IN action, the carousel's prev/next arrows, the STAFF PICKS badge, the category chips, and the dot indicators. Pills are the shape of anything you can click.
  • 16px: the code panels in the Live Data section, and the lg step generally.
  • 32px: the exhibit carousel card, the largest radius on the site and the only one that reads as a "sheet" rather than a panel.
  • 12px: the status page's loading card and the md step.
  • 8px: small inset chips; 21.6px appears once, on the exhibit's rounded media frame.
  • There are no circles except the 6px pill-dot indicators, which are 9999px-radius rectangles 6px tall.

Motion & Micro-interaction

One curve, one duration: 150ms cubic-bezier(0.4, 0, 0.2, 1), applied to color, background-color, border-color, box-shadow, text-decoration-color, fill, and stroke. Every interactive state change on the site lands in a seventh of a second on Material's standard easing. There is nothing else — no keyframe animations on the marketing surface, no parallax, no scroll-triggered reveals, and no page transitions. The only continuous motion is the exhibit carousel, which advances automatically and whose dots are the only state indicator. The Loading status… panel on the status page shows a single static dot; the page's real content is fetched client-side and never appears in the capture.

Voice & Content Strategy

  • Tone of voice: plain and technical, written for developers. It states the product change and its consequence in one sentence — An all-new Developer Console with consumption-based billing. No fixed monthly costs, no monthly caps.
  • Capitalization: sentence case for headings and body (A New Developer Experience, Benefits of Pay-Per-Use, Real responses. Lightning quick., Build and Launch on X). Every uppercase string in the interface is CSS-driven: the bracketed eyebrows, the nav items, and the button labels. The nav is a deliberate exception that reads as a design choice rather than shouting — EXHIBIT is set in Geist Mono with wide tracking, which makes it look like a label rather than a demand.
  • Terminology: "Developer Console" for the dashboard, "credits" for the billing unit, "pay-per-use" against "subscription" for the two pricing models, "endpoint" for an API surface, "rate limits" for throttling. The comparison section is explicitly Old Model against New Model.
  • Button and action labels: verb-first, uppercase, mono-tracked — Go to Console, Learn More, Sign In, View all, See more resources.
  • Empty, loading, and error states: the status page's Loading status… panel is the designed loading state — a 12px-radius card on #141414 with a single dot and a quiet label. The Live Data section's code panels are the designed "content" state, and the 200 OK / APPLICATION/JSON headers are the designed success state. There is no error state on the public surface.
  • Numbers, dates, and units: HTTP status codes are written bare and in green (200 OK), content types in caps (APPLICATION/JSON), and the JSON body is shown verbatim with two-space indentation. Social proof in the exhibit is a ranked list (1. Sprinklr, 2. Sprout Social, 3. Brandwatch) with follower-style counts written as 30,000+.

Real examples from the page:

"A New Developer Experience"

"An all-new Developer Console with consumption-based billing. No fixed monthly costs, no monthly caps."

"Explore tools, bots, and integrations built by developers on the X API."

Components

  • button-primary — Go to Console →: white fill, black 14px/400 label, 9999px radius, 12px 24px padding, 46px height, with the → glyph inline. It is the only filled button on the site and the only place black text appears at size.
  • button-ghost — Learn More, See more resources: transparent fill over the black ground, white 14px/400 label, a 1px #ffffff at 20% border, 9999px radius, 12px 24px padding, 46px height.
  • lang-picker — the header's ENGLISH ⌄: transparent fill, white-at-85% 14px/400 label with 0.1em tracking, a 1px #ffffff at 25% border, 9999px radius, 8px 16px padding, 38px height, with a globe glyph at left and a chevron at right. The dropdown lists ENGLISH, ESPAÑOL, FRANÇAIS, 日本語, 한국어.
  • nav — the 80px transparent header: the X wordmark at left, six items at 16px/400 in white (DOCS, EXHIBIT, FEATURES, PRICING, COMPARISON, STATUS), then the language picker and SIGN IN pill at right. No bar, no border, no background until scroll.
  • eyebrow — the bracketed Geist Mono label: 14px/400, 0.025em tracking, uppercased by CSS, in white at 50%. [ INTRODUCING ], [ KEY FEATURES ], [ LIVE DATA ], [ X LAUNCH ], [ BROWSE ]. It sits directly above its heading and is the most repeated element in the system.
  • code-block — the Live Data panels: #141414 fill, 1px #ffffff at 10% border, 16px radius, 24px padding, Geist Mono 12px/400 in white at 80%, with the status line and content type on their own rows above a two-space-indented JSON body.
  • status-label — the 200 OK line inside a code panel: Geist Mono 12px/400 in #00ba7c, 0 8px padding, on the panel's #141414 ground. The only colored text on the site.
  • carousel-card — the exhibit's featured-app panel: #0a0a0a fill, 1px #ffffff at 20% border, 32px radius, 24px padding, the stacked inset shadow, a STAFF PICKS pill badge, a 60px/500 title, an 18px/50%-white description, circular prev/next arrows at either side, and a row of 6px pill-dot indicators below.
  • pill-dot — the carousel indicator: 9999px radius, 6px height, #ffffff when active and #ffffff at 25% when inactive.
  • footer-heading — PRODUCT, DEVELOPER, RESOURCES: Geist Mono 14px/400, 0.025em tracking, uppercased, in white at 50%.
  • metadata — the 14px #9ca3af line for standfirsts, the Loading status… label, and supporting captions.
  • link — inline and footer links at 14px/400 in white at 80%, underlined by default; the footer index uses 16px/400.

Do's and Don'ts

  • Do keep the ground true black (#000000). The entire tonal system depends on it; a near-black ground would collapse the opacity ramp.
  • Do treat white as the primary color — filled pills, the wordmark, headings, and links are all white, and black is the exception used only inside them.
  • Do build every grey out of white at a stated opacity rather than out of a hex grey. Use the nine-step ramp: 100, 85, 80, 70, 60, 50, 45, 40, 30.
  • Do split the two families cleanly: Inter for prose, Geist Mono for code, eyebrows, and every action label. Never set a heading in mono and never set a code sample in Inter.
  • Do keep headings at regular weight — 48px/400 and 30px/400 are correct, and only the display sizes go to 500.
  • Do uppercase every interactive label and eyebrow with CSS, and always with tracking: 0.025em for mono eyebrows, 0.1em for Inter action labels.
  • Do make every clickable thing a 9999px pill and every panel a 16px or 32px rectangle. The split is absolute and it is how a visitor knows what is interactive.
  • Do draw depth with the 3%-white inset ring (rgba(255,255,255,0.03) 0 0 0 1px) rather than with a drop shadow, and reserve real shadows for the carousel card.
  • Do animate everything with the single 150ms cubic-bezier(0.4, 0, 0.2, 1) curve and nothing else.
  • Do confine #00ba7c to HTTP status codes, and prefer the full-strength token over the 70% variant for anything below 14px.
  • Don't introduce a second hue, a gradient fill on a control, or a coloured hover state. The site has exactly one color and it is already spoken for.
  • Don't bold anything, and don't use a weight above 600.
  • Don't round a panel to a pill or a button to a rectangle; the shape language is the only affordance cue on a black page.
  • Don't use tracking below 0.025em on uppercase text, and never letter-space lowercase body copy.
  • Do note that white on black is 21:1 and the whole ramp clears AA with room to spare — 85% is about 15:1, 80% about 13:1, 70% about 11:1, 60% about 8.5:1, 50% about 5.3:1, and 40% about 3.4:1. The 50% step is the lowest that still passes for normal text, which is exactly where the eyebrows and footer headings sit; the 45% and 30% steps are below AA and should stay on 12px-and-larger supporting copy or be raised. The #9ca3af standfirst measures about 8.3:1, and #00ba7c on #141414 about 7.3:1 at full strength — dropping it to the 70% opacity used in the rendered UI brings it to roughly 4.2:1, so keep status labels at 12px mono or use the token undiluted.

Comment utiliser le DESIGN.md de X Developer Platform avec un agent IA

  1. Récupérer le DESIGN.md de X Developer Platform

    Récupérez https://www.designmdpro.app/websites/x-developer-platform.md ou appelez l'outil get_design_md avec le slug "x-developer-platform" depuis le serveur MCP DesignMD Pro pour obtenir la version publique. Le jeu complet de tokens nécessite Pro.

  2. Enregistrez-le en tant que DESIGN.md à la racine de votre projet

    Placez le fichier à côté d'AGENTS.md ou CLAUDE.md afin que Claude Code, Cursor, Codex et les autres agents de code puissent le trouver.

  3. Demandez à votre agent de le suivre

    Par exemple : « Construis la page de paramètres en suivant le design system de X Developer Platform dans DESIGN.md — utilise ses tokens de couleurs, de typographie et d'espacement. »

Prompt IA style X Developer Platform

Construis une landing page responsive dans le style visuel de X Developer Platform (developer.twitter.com), en suivant son design system DESIGN.md.

## Couleurs
- outline: #FFFFFF
- primary: #FFFFFF
- surface: #0A0A0A
- secondary: #00BA7C
- background: #000000
- on-primary: #000000
- on-surface: #FFFFFF
- on-secondary: #000000

## Typographie
- body-lg: "Inter", 18px, weight 400, line-height 1.55
- eyebrow: "Geist Mono", 14px, weight 400, line-height 1.43, letter-spacing 0.025em

## Rayons de bordure
- lg: 16px
- md: 12px
- sm: 8px

## Règles
- Utilise uniquement les couleurs ci-dessus pour les arrière-plans, textes, bordures et accents ; n'invente pas de nouvelles couleurs.
- Applique les styles typographiques ci-dessus à tout le texte en respectant leur hiérarchie de tailles et de graisses.
- Reprends les rayons de bordure et les espacements des échelles ci-dessus afin que les composants restent cohérents.

DESIGN.md complet : https://www.designmdpro.app/websites/x-developer-platform.md
Personnaliser dans le générateur de prompt v0 →

Questions fréquentes

Quelle est la couleur principale de X Developer Platform ?

La couleur principale de la marque X Developer Platform est Blanc (#FFFFFF). Son DESIGN.md définit 18 color tokens au total.

Quelle police utilise X Developer Platform ?

Les polices principales de X Developer Platform sont Inter et Geist Mono.

Inter est-elle une police gratuite ?

Oui. Inter est gratuite et open source, et disponible sur Google Fonts.

Comment utiliser les design tokens de X Developer Platform dans Tailwind CSS ou shadcn/ui ?

La couleur principale de X Developer Platform (#FFFFFF) est publique sur cette page. Générer un thème Tailwind ou shadcn complet nécessite le DESIGN.md intégral, disponible avec DesignMD Pro.

Ce DESIGN.md de X Developer Platform est-il officiel ?

Non. DesignMD Pro l'a extrait du site public developer.twitter.com. Il n'a aucune affiliation avec X Developer Platform et n'est pas approuvé par cette marque.

Quand le DESIGN.md de X Developer Platform a-t-il été mis à jour pour la dernière fois ?

La version 1.0.0 a été capturée le 30 novembre 2026.

X Developer Platform et ses marques appartiennent à leurs propriétaires respectifs. DesignMD Pro est un projet indépendant, sans affiliation ni approbation de X Developer Platform ; ce DESIGN.md est extrait du site public à titre de référence uniquement.