# Instagram DESIGN.md

> Public preview. The complete DESIGN.md source (all 135 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

Instagram's public web surface pairs an exuberant, media-first brand (the camera-glyph gradient and candy-pink hero accents) with a restrained, near-monochrome product UI built on Meta's FDS token system. Surfaces are white or cool near-white, text is near-black with a single gray ramp, and a new indigo family carries links and CTAs alongside the classic Instagram accent blue.

- Website: https://instagram.com
- Primary color: Indigo `#4A5DF9`
- Fonts: -apple-system, Optimistic, Instagram Sans Regular
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/instagram

## Palette preview

- `link`: `#4150f7`
- `scrim`: `#2b3036`
- `accent`: `#0095f6`
- `caption`: `#737373`
- `primary`: `#4a5df9`
- `surface`: `#ffffff`
- `hairline`: `#dbdbdb`
- `positive`: `#31a24c`

## Typography preview

- `body-md`: -apple-system
- `input-md`: Optimistic
- `display-hero`: Instagram Sans Regular

---

## Overview

Instagram's public web presence is a study in contrast between an exuberant
brand and a disciplined product surface. The logged-out login page leads with
a two-line editorial headline — "See everyday moments from your close
friends." — where the key phrase is swept in the brand's pink-to-coral
gradient, above a collage of phone-mockup photos, sticker chips, and floating
reaction badges. Everything around that moment of brand expression is calm:
a pure-white field, a single column of generous translucent input boxes, and
one indigo call to action.

The audience is everyone; the tone is warm, casual, and photo-first. Density
is low — pages breathe, and media (photos, reels, avatars, stories rings)
carries nearly all the color. The product layer underneath is Meta's FDS
token system (`--fds-*`, `--accent`, `--primary-text`), which is why the same
near-blacks, grays, and hairlines recur across login, explore, and profile
surfaces. A 2025-era refresh is visible in the new indigo action family
(`#4150F7`/`#4A5DF9`) that now sits beside the classic `#0095F6` Instagram
blue rather than replacing it.

## Colors

The palette is a cool neutral canvas punctuated by two blues and the brand
gradient.

- **Primary Indigo (#4A5DF9):** the fill for the new web CTAs — "Log In" in
  the top nav, "Sign up" in the login modal. Reads as a confident periwinkle
  against white.
- **Link Indigo (#4150F7):** text links and secondary actions — "Forgot
  password?", "Sign Up", bio URLs. The pressed/deeper sibling is #3143E3.
- **Accent Blue (#0095F6):** the classic Instagram blue from the FDS token
  `--accent`. Still owns the enabled "Log in" CTA, the verified badge, and
  focus-adjacent highlights. It ships disabled at 30% alpha (`#0095F64D`),
  which is the famous washed-out resting state of the login button until the
  form is filled.
- **Outline Blue (#0064E0):** reserved for the "Create new account" outlined
  pill — border and text.
- **Surfaces (#FFFFFF / #F3F5F7 / #F0F2F5):** white cards and fields on a
  faint wash; gray `#F3F5F7` fills neutral pills ("Log in with Facebook",
  trending chips); `#F0F2F5` is the comment/sunken background.
- **Text ramp (#262626 / #111112 / #8E8E8E / #737373):** near-black body text,
  a slightly warmer near-black on the new login page, mid-gray for secondary
  text and icons, and `#737373` for footer and metadata copy.
- **Hairline (#DBDBDB):** the only border most components ever get — card
  outlines, separators, the nav's bottom edge.
- **Brand gradient:** never a flat color — the camera glyph and the hero
  headline's keyword run yellow → orange → pink → purple (glyph) and
  magenta → coral (headline text). Treat as imagery, not a token.
- **Dark mode:** fully supported via `prefers-color-scheme`. The canvas flips
  to `#0C1014` with `#1C1C1C`-class raised containers and near-white text;
  the indigo CTAs and accent blue persist unchanged.

## Typography

Two custom families share the stage with a system stack. UI text defaults to
`-apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`.
The brand voices are **Instagram Sans** (the 40px editorial hero headline)
and **Optimistic** (Meta's variable brand font, `Optimistic AI VF`, wght
300–800 — used for form inputs and floating labels).

- **Hero:** Instagram Sans Regular, 40px/64.8px, weight 400 — oversized and
  airy, with the gradient doing the emphasizing instead of weight.
- **Headlines:** 24px/30px weight 700 in the system stack ("See what's
  popular on Instagram", modal titles).
- **Body:** 14px/18px weight 400 — the overwhelming default for labels,
  bios, links, and footer text.
- **Labels:** 14px weight 600 for CTAs and counts; 12px weight 600 inside
  chips; 12px weight 400 in `#737373` for metadata.
- **Inputs:** Optimistic 15px weight 500 with a 15px weight-400 floating
  label that shrinks and lifts on focus.

## Layout

Public pages split between a marketing left column and a product column. The
login page is a full-viewport two-pane: the left ~55% holds the gradient
headline and photo collage, the right a 546px-wide form column of 60px-tall
inputs and 44px CTAs stacked at 8–16px gaps. Content pages (explore,
profile) center a roughly 935px column under a 60px white nav with a
hairline bottom edge.

Spacing is a 4px-base rhythm — 6, 8, 12, 16, 20, 24, 32, 40, 52 dominate the
histograms. Cards get 10–16px internal padding; horizontal carousels use
~8px gutters; the modal insets to ~32px. Mobile collapses the two-pane login
into a single column and shrinks the hero to a 24px headline.

## Elevation & Depth

Depth is border-first, shadow-second. Everyday separation comes from the
`#DBDBDB` hairline and tonal fills (`#F3F5F7` chips, `#F0F2F5` sunken areas);
cards like the explore profile tiles are literally `1px solid #DBDBDB` with
no shadow at all. Shadows are reserved for floating layers: the login modal
rides `--shadow-elevated` (`0 8px 20px rgba(0,0,0,.2), 0 2px 4px
rgba(0,0,0,.1)`) over a `rgba(43,48,54,.8)` scrim.

Focus is the one expressive ring: inputs show a double halo — `0 0 0 2px`
white inside `0 0 0 4px #1877F2` — rather than a border-color swap alone.
Media surfaces invert the rule: photos get a `rgba(0,0,0,.1)` *inner* border
so imagery never visually collides with the edge of its frame.

## Shapes

A soft-but-controlled system: small interactive elements stay rectangular,
while containers and media get progressively rounder.

- **Buttons:** 8px (`rounded-sm`) for the indigo CTAs; full `9999px` stadium
  for the neutral/outline pills and trending chips.
- **Inputs:** 16px (`rounded-lg`) translucent boxes — noticeably softer than
  the buttons.
- **Cards:** 16px (`rounded-lg`) with a hairline border; media tiles sit at
  ~12px (`rounded-md`).
- **Modal:** a distinctive 32px (`rounded-2xl`) — the roundest surface in
  the system.
- **Avatars & story rings:** always circles (`50%`), the ring carrying the
  brand gradient as a 2–3px stroke.

## Motion & Micro-interaction

Motion is quiet and uniform: 200ms is the universal duration, applied to
`transform` for positional changes (`cubic-bezier(0.04,0,0,1)`), to
`color`/`fill`/`stroke` for recoloring (`cubic-bezier(0,0.1,0.4,1)`), and to
emphasis moments via the signature FDS curve `cubic-bezier(.08,.52,.52,1)`
(`--fds-soft`). Hovers tint rather than move — a `rgba(0,0,0,.05)` overlay
or a pressed-state opacity. There are no layout-shifting animations; nothing
bounces, parallaxes, or springs on public surfaces. Floating-label and focus
transitions inherit the same 200ms voice.

## Voice & Content Strategy

Copy is short, warm, and second-person plural — "the people who get you".
Headlines are sentence-case fragments ending with a period ("See everyday
moments from your close friends."). CTAs are bare verbs at 14px semibold —
"Log in", "Sign up", "Create new account", "View profile" — never
shouting, never sentence-cased into buttons. Helper copy is plain and
reassuring: "Sign up and never miss a post from instagram." Legal text is
inline, lowercase-ish, and linked directly in the sentence ("By continuing,
you agree to Instagram's Terms of Use and Privacy Policy."). Counts are
terse and casual — "686M followers", "1M posts" — with the metric always
after the number.

## Components

- **Indigo CTA** (`button-primary`): `#4A5DF9` fill, white 14px/600 text,
  8px radius, 32px tall in nav (44px in modal). Pressed deepens to `#3143E3`;
  the same indigo serves text-only "Sign Up" / link buttons.
- **Accent CTA** (`button-accent`): the classic `#0095F6` "Log in" — 44px,
  ~12px radius. Ships visually disabled at 30% alpha until input arrives;
  treat that soft state as designed, not a bug.
- **Neutral pill** (`button-neutral`): `#F3F5F7` stadium chip for "Log in
  with Facebook" — icon + 14px/600 near-black text.
- **Outline pill** (`button-outline`): transparent on white, `#0064E0`
  1px border and text — the "Create new account" de-escalated action.
- **Input** (`input-default`): a 60px translucent box, 16px radius, hairline
  `#CED0D4`-class border that darkens to `#686A6E` under the `#1877F2`
  double focus ring. Floating 15px label in Optimistic; value text 15px/500.
- **Trend chip** (`chip-trend`): `#F3F5F7` pill, "Name • 1M posts" in
  12–14px semibold + gray count.
- **Profile card** (`card`): 222px white tile, 16px radius, `#DBDBDB`
  hairline, circular avatar, name + handle + follower count, indigo
  text action.
- **Modal** (`modal`): 548px, 32px radius, elevated shadow over an
  `rgba(43,48,54,.8)` scrim; brand glyph badge centered on top, headline,
  one-line helper, legal fine print, then the stacked CTAs.
- **Nav** (`nav`): 60px white bar, hairline bottom border, script wordmark
  left, indigo "Log In" + text "Sign Up" right.

## Do's and Don'ts

- **Do** keep the canvas white (or `#0C1014` in dark mode) and let photos
  and the gradient carry all the chromatic energy.
- **Do** reach for the indigo family (`#4A5DF9`/`#4150F7`/`#3143E3`) on new
  surfaces; keep `#0095F6` for the legacy accent moments — badges, the
  enabled login CTA — where it already lives.
- **Do** separate with hairlines and tonal fills; never stack shadows on
  everyday cards.
- **Do** write CTAs as bare verbs at 14px semibold; keep body copy at
  14px/18px and metadata at 12px `#737373`.
- **Don't** put text below ~4.5:1 — note that Instagram itself ships
  exceptions: the 30%-alpha disabled accent CTA, `#0095F6` on white, and the
  green `#31A24C` success badge with white text all sit under the line.
  Preserve them as brand-faithful states, flag them in review, and never
  copy them into new components.
- **Don't** use the brand gradient as a solid fill token — it lives in the
  glyph, story rings, and hero keywords only.
- **Don't** introduce new grays; the ramp is `#262626`/`#111112`/`#8E8E8E`/
  `#737373`/`#DBDBDB`/`#F0F2F5`/`#F3F5F7` and it is complete.
- **Don't** square the modal or the pills — 32px and `9999px` radii are the
  signature ends of the shape scale.
