# Supabase DESIGN.md

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

Supabase markets itself as "The Postgres Development Platform" with a calm, engineering-first aesthetic: a near-white canvas, near-black text, hairline borders instead of shadows, and a single signature green reserved for actions and brand moments. Headlines are set in Manrope at medium weight while everything else runs on Inter at a custom 450 weight, with Source Code Pro for code. Cards are soft-rounded, spacing is an 8px rhythm, and the whole system is generated from an oklch token pipeline (hue 157.5) that also powers a near-black dark theme.

- Website: https://supabase.com
- Primary color: Forest Green `#0E7E4E`
- Fonts: Source Code Pro, Inter, Manrope
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/supabase

## Palette preview

- `brand`: `#3fcf8e`
- `outline`: `#000000`
- `primary`: `#0e7e4e`
- `surface`: `#fdfdfd`
- `on-brand`: `#0b3b24`
- `tertiary`: `#6b35dc`
- `brand-deep`: `#0b7c36`
- `on-primary`: `#fafcfb`

## Typography preview

- `code`: Source Code Pro
- `body-lg`: Inter
- `display`: Manrope

---

## Overview

Supabase presents a **restrained, engineering-first developer aesthetic** — the visual equivalent of a well-organized schema. The marketing site runs on a near-white `#FDFDFD` canvas with near-black `#030303` text, separated into surfaces by 1px hairlines (`#00000014`) rather than drop shadows. The single expressive element is the signature Supabase green: a bright mint `#3FCF8E` for brand marks and gradient words, and a deep `oklch(0.525 0.12 157.5)` ≈ `#0E7E4E` for filled CTAs.

The layout feels spacious and grid-aligned: a 1280px container, a hero pairing a two-line statement headline ("Build in a weekend / Scale to millions" — the second line tinted with a green gradient) with a short feature paragraph, then a dense bento of feature cards. Product UI screenshots, faint wireframe illustrations, and real code samples are the imagery — no stock photography or illustration. Customer-story cards flip to dark, brand-specific backgrounds (`#0C0F24`, `#002533`, `#000000`) as the one place saturated color fields appear. The audience is clearly developers: GitHub star count in the nav, terminal commands, framework tabs ("Use Supabase with React"), and an open-source section quoting tweets.

The site ships a real `.dark` theme (a "Toggle theme" control in the footer): the same token pipeline drops the surface to near-black `oklch(0.19)` with the same hue, so depth is always expressed as tonal steps, never hue shifts.

## Colors

The palette is generated from an oklch pipeline (`--hue: 157.5`) — neutrals are technically green-tinted but measure chroma ≈ 0, reading as pure grays. Green is the only hue with semantic weight.

- **Primary Deep Green (#0E7E4E):** The filled color of every primary CTA ("Start your project", "Get Started" on the Pro tier). Computed as `oklch(0.525 0.12 157.5)`. Reserved for one dominant action per view.
- **Brand Mint (#3FCF8E):** `hsl(153.1 60.2% 52.7%)` — the logo mark, link accents, check icons, and the bright end of headline gradients. Use it as a highlight, never as a large fill behind dark text.
- **Brand Deep (#0B7C36) / Gradient End (#15593B):** The darker stops of the hero's green gradient line and green text on light surfaces.
- **Brand Container Mint (#A9F1CA):** Soft mint fills for status badges and subtle highlights.
- **Near-Black Ink (#030303):** `oklch(0.1 0 337.5)` — all headlines and primary text.
- **Muted Gray (#696969):** `oklch(0.52065 0 337.5)` — secondary copy, placeholders, footer links, timestamps.
- **Surface (#FDFDFD) / Container (#FFFFFF):** Page background vs. card/panel fill. Cards are pure white sitting on the off-white canvas.
- **Outline-variant (#00000014) / Outline (#00000025):** The entire border system — `oklch` black at ~8% and ~15% alpha. Inputs sit on an even fainter field tint (`black @ 1.5%`, compositing to `#F5F5F5`).
- **Tertiary Violet (#6B35DC):** A rare partner/highlight accent seen in inline text; not a structural color.
- A rare amber `#B45309` appears only as warning/status text — not a token worth minting.

**Dark theme** (inferred from the shipped `.dark` custom properties, not captured): surface drops to ~`#131413`, containers lift to ~`#181A19`, text flips to ~`#D3D6D4`, and hairlines become `white @ 8%`. The mint brand green is unchanged.

## Typography

Two sans faces split the work: **Manrope** (200–800) owns all headlines and product names — set at medium weights, `letter-spacing: 0`, line-height collapsing to 1.0 only at display size. **Inter** (100–900) owns everything else at a distinctive `font-weight: 450` — a hair lighter than Regular — with 500 for interactive labels. **Source Code Pro** handles code at 13px/500.

- **Display (Manrope 46/46, 500):** Hero statement. Two lines max, set tight (`line-height: 1`).
- **Headline-lg (Manrope 34, 600):** Section headers — "Stay productive and manage your app without leaving the dashboard".
- **Headline-md (Manrope 28, 600):** Blog index / sub-section headers.
- **Title-lg / Title-md (Manrope 16 & 15, 600):** Card titles and small headers — note how small headline sizes stay in Manrope rather than falling back to Inter.
- **Body (Inter 16/15/14, 450):** Feature copy, list items, footer links — always paired with muted gray or ink.
- **Label-md (Inter 14, 500):** Buttons, nav links, tabs — the workhorse interactive style.
- **Code (Source Code Pro 13, 500):** Inline commands, editor mock-ups.

## Layout

A fixed **1280px container** on a 1440px viewport, centered, with content organized into stacked full-width sections separated by ~96px of vertical padding. Spacing follows an 8px rhythm (their token scale is technically 2px-based: `xs 4 / sm 8 / md 16 / lg 32 / xl 64`), with 24px as the dominant gap inside cards and 8px as the dominant gap between inline elements.

- **Hero:** Two-column — headline + CTAs left, supporting paragraph right — above a multi-column feature bento.
- **Bento grid:** Feature cards (Postgres Database, Authentication, Edge Functions, Storage, Realtime, Vector, Data APIs) in a 3-column mosaic of unequal widths, each card self-contained with icon, Manrope title, short Inter copy, and a mini wireframe or code snippet.
- **Nav:** 64–65px fixed-height bar; logo + dropdown menus left, GitHub stars + "Sign in" ghost + green "Start your project" right.
- **Footer:** Massive link farm in muted gray 14px columns under a repeat CTA.

## Elevation & Depth

Depth is almost entirely **hairline borders + tonal steps**, not shadow. The one recurring shadow is a control treatment on filled buttons: `0 1px 3px rgba(0,0,0,0.04)` plus inset `±1px` and `0 0 0 1px` hairline shadows — a subtle machined edge, not elevation. Cards that need presence get a `white @ 12%` inset ring (on dark story cards) or a plain 1px `#00000014` border (on light cards). Never layer drop shadows to create hierarchy — lift a surface by brightening it one step or outlining it.

## Shapes

Soft geometry throughout, keyed off rem-based radii:

- **8px (`md`):** Buttons, inputs, small cards — the default interactive radius.
- **~11px (`lg`):** Feature-bento cards (measured 10.67px = 0.667rem).
- **~21px (`2xl`):** Large showcase/testimonial cards (measured 21.33px = 1.333rem).
- **Full:** Pills — editor tabs ("Table Editor", "SQL Editor"), blog category filters, badges.
- **2–4px:** Table headers and micro-controls from the underlying token set (`--borderradius-xs: 2px`, `sm: 4px`).

Nothing is fully sharp except full-bleed media; nothing is playful-rounded beyond the pill.

## Motion & Micro-interaction

Motion is minimal and functional. Interactive elements transition `color`, `background-color`, `border-color` and related properties over **150ms** with `cubic-bezier(0.4, 0, 0.2, 1)`. Scroll reveals use **400ms opacity fades** with ease, staggered ~10ms apart per item (the extractor found dozens of `opacity 0.4s ease 0.38–0.51s` rules — a cascade of fade-ins down the page). No parallax, no layout-shifting animation; motion is confined to `opacity` and color properties. Honor `prefers-reduced-motion` and never animate box-shadow or dimensions.

## Voice & Content Strategy

Confident, plain-spoken developer copy — short declaratives that pair an ambitious promise with a concrete mechanism. Sentence case everywhere; no exclamation marks; CTAs are imperative verbs.

- Headline pattern: ambition + scale — "Build in a weekend / Scale to millions", "Open source from day one".
- Feature copy states facts, not benefits-adjectives: "Every project is a full Postgres database, the world's most trusted relational database." / "Easily write custom code without deploying or scaling servers."
- CTAs: "Start your project", "Request a demo", "Get Started", "Start for Free" — action-first, lowercase 'your'.
- Community voice is social proof in users' own words ("Supabase is really good. ⚡"), left unpolished.

## Components

### Buttons

`button-primary` — deep green fill `#0E7E4E`, near-white text, 8px radius, `8px 16px` padding, 38px tall in the hero and 26px in the nav (`button-nav-cta`), with the machined-edge shadow stack described in Elevation. Hover lightens the fill by ~4% lightness (`--button-fill-hover-delta`). `button-secondary` ("Request a demo") is a white fill with `#00000025` border and ink text — same geometry.

### Inputs

`input-default` — near-invisible field tint `black @ 1.5%`, 1px `black @ 15%` border, 8px radius, 33px tall. The blog search uses the same anatomy with a leading icon.

### Cards

`card-feature` — white fill, `#00000014` border, ~11px radius, 24px padding: icon + Manrope title + 2–3 lines of muted Inter copy + inline wireframe/checklist. `card` — the larger 21px-radius variant for testimonials and showcase panels. `card-dark-story` — customer-story tiles that switch to brand-dark fills (`#0C0F24`, `#002533`, `#000000`) with a `white @ 12%` inset ring instead of a border.

### Navigation

Text links in `label-md` ink; dropdown triggers get chevrons; the only filled element is the small green CTA. `tab-pill` pills (full radius, `#00000014` border) switch dashboard previews and blog categories — active state fills near-black or inverts.

### Badges & Code

`badge-status` — mint `#A9F1CA` pill with deep-green text for plan/status markers. `code-inline` — Source Code Pro 13px in muted gray; editor blocks render on dark surfaces with the `--ch-*` syntax palette.

## Do's and Don'ts

- **Do** reserve the deep green `#0E7E4E` for one primary action per view; use white/outline for everything else.
- **Do** build hierarchy with 1px `black @ 8%` hairlines and white-vs-off-white tonal steps — not drop shadows.
- **Don't** use the bright mint `#3FCF8E` as a text color on white or as a fill behind dark text — it fails contrast; it's a graphic accent and gradient stop only.
- **Do** keep headlines in Manrope even at 15–16px card-title sizes; Inter never carries a headline.
- **Do** set body copy at `font-weight: 450`, not the font's Regular 400 — the slightly lighter cut is the house style.
- **Don't** introduce new hues; the entire palette is a single hue plus neutrals (violet/amber are partner/status exceptions only).
- **Do** keep corners at 8px for controls and pills only where the element is literally a pill (tabs, badges); avoid 4px-minimalist or 16px-playful extremes for standard UI.
- **Do** write copy in sentence case with concrete nouns ("a full Postgres database"), and keep CTAs imperative and short.
- **Don't** animate anything except opacity and color; keep transitions at 150ms for state changes and stagger 400ms fades for reveals.
- **Do** prefer real product UI, terminal snippets, and wireframe diagrams over illustration or stock imagery.
