# Dub DESIGN.md

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

A neutral-gray SaaS system built on Tailwind neutral tokens — Satoshi medium headlines, Inter UI text, pure-black 10px-radius buttons, hairline

- Website: https://dub.co
- Primary color: Black `#000000`
- Fonts: Inter, Satoshi, Geist Mono
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/dub

## Palette preview

- `info`: `#1d4ed8`
- `error`: `#b91c1c`
- `outline`: `#e5e5e5`
- `primary`: `#000000`
- `success`: `#16a34a`
- `surface`: `#ffffff`
- `warning`: `#854d0e`
- `attention`: `#9a3412`

## Typography preview

- `lead`: Inter
- `display`: Satoshi
- `data-mono`: Geist Mono

---

## Overview

Dub sells link attribution and affiliate infrastructure, and the site looks exactly like what it is: a modern open-source SaaS built on Tailwind's neutral ramp. The palette is near-monochrome — pure black buttons, neutral-900 headlines, 500-level gray body text — with color reserved for two jobs: semantic status (a disciplined five-hue info/success/attention/warning/error system) and the pastel icon tiles that brand each product area (violet Affiliate Programs, green Conversion Analytics, orange Short Links).

The mood is clean, friendly, and product-led. Heroes are centered Satoshi headlines over a faint blueprint grid, followed immediately by a large app screenshot in a softly glowing, curved frame. Partner pages wash the grid in soft pastel gradients. Customer pages drop the grid for full-bleed portrait photo cards. Density is moderate — compact 36px controls, lots of white space, and feature lists with small line icons.

## Colors

- **Black (#000000, `primary`):** the CTA fill — "Sign up", "Start for free", "Start 14-day trial" — plus the pricing slider. Buttons are pure black, a step darker than body text.
- **Neutral text ramp:** `--content-emphasis` #171717 headlines, `--content-default` #404040 nav/body-strong, `--content-subtle` #737373 secondary copy, `--content-muted` #A3A3A3 placeholders.
- **Neutral surface ramp:** #FFFFFF default → #FAFAFA muted → #F5F5F5 subtle (section bands, chips) → #E5E5E5 emphasis.
- **Hairline (#E5E5E5, `outline`):** every card, input, and divider uses this 1px border; `--border-default` #D4D4D4 and `--border-emphasis` #A3A3A3 strengthen it.
- **Semantic ramp (light):** five paired text/container colors — info #2563EB/#DBEAFE, success #16A34A/#DCFCE7, attention #EA580C/#FFEDD5, warning #CA8A04/#FEF9C3, error #DC2626/#FEE2E2 — used for badges, stats, and status chips. Success-green gets the most airtime (counts, growth metrics).
- **Feature tiles (`tertiary`):** saturated 400-level fills — violet #A855F7, blue #3B82F6, green #4ADE80, orange #FB923C, teal #14B8A6 — confined to small rounded icon squares inside chips and feature cards. Violet doubles as the "Advanced" plan accent: #EDE9FE badge + #7C3AED text.
- **Dark theme:** `--bg-default` inverts to pure black with surfaces at #171717/#262626/#404040; content inverts to #FAFAFA/#D4D4D4; semantic text hues brighten to their 300-level counterparts (#93C5FD, #86EFAC, …).

## Typography

Two families share the work. **Satoshi** (weight 500 only, natural tracking) sets all headlines — it reads like a friendlier, slightly geometric grotesque and is the brand's quiet signature. **Inter** sets everything else: nav, body, buttons, tables. **Geist Mono** appears for code, short-link URLs, and data strings.

- **Display / Headline-LG (48px):** Satoshi 500 — homepage hero runs it at 1.15 line-height; section heads tighten to 1.0.
- **Headline-MD (40px) / Headline-SM (36px):** Satoshi 500 for sub-section heroes.
- **Quote (30px/400):** oversized Inter customer quotes — regular weight, not display.
- **Lead (18px/400):** the gray paragraph under every hero.
- **Body-MD (16px) / Body-SM (14px):** Inter regular — most body copy is actually 14px.
- **Label-MD (14px/500) & Label-SM (12px/500):** buttons, nav items, badges; "MOST POPULAR" is the rare uppercase, tracked label.
- **Data-Mono (14px):** Geist Mono for `d.to/…` links and code.

## Layout

Content sits in a **1080px** container — narrower than typical SaaS — with airy 80px+ section rhythm. The hero stack is centered: eyebrow pill → Satoshi headline → 18px lead → button pair → feature-chip row → app screenshot. Inner pages like Pricing and Customers break the pattern and go **left-aligned** (headline, lead, CTAs all flush left), which gives the site a slightly editorial asymmetry. A faint square grid texture sits behind heroes; pastel gradient washes appear on the Partners hero. Pricing puts plan columns inside one big light-gray panel with a shared range slider.

## Elevation & Depth

Depth is minimal and conventional: cards lift with Tailwind `shadow-sm`/`shadow-md` equivalents (`0 1px 2px` at 5%, `0 4px 6px -1px` at 10%), and the hero screenshot frame gets the one dramatic treatment — a large soft shadow plus colored ambient glow bleeding past its edges. Inputs get an inset `0 2px 6px` at 20% inner shadow. Borders (#E5E5E5) do most of the separating; shadows only appear on interactive raises and floating media.

## Shapes

A **soft-rounded** system with three regimes: controls at ~10px radius (36px-tall buttons), nav items and chips at 6–8px, photo cards and panels at 12–16px — and a parallel **pill** family used for toggles, the eyebrow "Introducing our Startup Program" badge, avatar dots, and slider thumbs (9999px is the most frequent radius in the CSS). Feature-icon tiles are small ~6px squares. Avoid sharp rectangles entirely; even the brand color-picker input rounds its outer corners.

## Motion & Micro-interaction

Standard SaaS motion budget: **150ms** `cubic-bezier(0.4,0,0.2,1)` for color/state changes and hovers, **300ms** for transforms and opacity (cards raising, chips fading in), up to **500ms** for larger opacity reveals. Pressed/active states compress to 100ms. The hero's pastel glow and feature chips animate opacity/transform only — no layout-shifting animations, nothing that loops.

## Voice & Content Strategy

- **Tone of voice:** plain-spoken and confident with light repetition for rhythm — "It's fast. It's reliable. It's beautiful. And it scales with you." and "Because you deserve more than vanity metrics. You deserve clarity."
- **Capitalization:** sentence case across headlines, buttons, and nav ("Turn clicks into revenue", "Meet our customers"); eyebrows like "CASE STUDY" and "MOST POPULAR" are the deliberate uppercase exceptions.
- **Terminology:** products are "Affiliate Programs", "Conversion Analytics", "Short Links"; links are "short links" not "URLs"; plans are Free → Pro → Business → Advanced → Enterprise.
- **Button and action labels:** benefit-first verb phrases — "Start for free", "Get a demo", "Start 14-day trial", "Watch demo", "Learn more". Nav CTAs stay terse ("Log in", "Sign up").
- **Numbers, dates, and units:** money uses compact K notation ("$22.6K revenue", "$6.8K payouts"); usage shown as "clicks/mo" and "payouts/month"; prices lead "US$90 /month".
- **Empty, loading, and error states:** the embedded product shots show populated tables (names, revenue, payouts columns), so marketing avoids ever showing an empty dashboard.

## Components

- **Primary button (`button-primary`):** pure-black fill, white 14px medium label, 10px radius, 36px height, 1px black border; hover softens to neutral-900.
- **Secondary button (`button-secondary`):** white fill, #171717 label, 1px #EDEDED hairline, same 36px/10px geometry, plus a faint `0 1px 3px` shadow — the pair sits side by side in every hero.
- **Nav (`nav-item`):** 32px-tall items, #404040 14px medium, 8px hover plate; active section gets a subtle gray pill.
- **Feature chips (`chip-feature` + `tile-feature-*`):** 34px pills/cards pairing a small colored icon tile (violet/green/orange/blue/teal) with a 16px label — the site's main navigation metaphor between product areas.
- **Plan badge (`badge-popular`):** #EDE9FE violet chip with #7C3AED uppercase micro-label marking the highlighted tier.
- **Semantic badges (`badge-*`):** 100-level tinted chip + 600-level text for info, success, attention, warning, error — used for stats, statuses, and "10% discount" callouts.
- **Cards (`card-plan`, `card-photo`):** white 12px-radius surfaces on #F5F5F5 bands for pricing; 16px-radius portrait cards with overlaid logo + "Read story" pill for customers.
- **Dark surfaces (`panel-dark`, `chip-dark`, `divider-dark*`):** the `.dark` theme remaps surfaces to pure black and brightens semantic text to 300-level hues; keep borders at #404040–#525252.

## Do's and Don'ts

- Do keep chrome monochrome — pure black CTAs on white, neutral grays for everything else.
- Do use Satoshi 500 for all headlines and Inter for all UI text; don't set headlines in Inter or body in Satoshi.
- Do confine saturated color to small feature-icon tiles and the violet plan accent.
- Do pair every semantic text color with its 100-level container (#2563EB on #DBEAFE, #16A34A on #DCFCE7…) — note the site's own badges use these pairs at small sizes below 4.5:1 contrast; keep badge text to short icon-assisted labels or step text up to the 800-level shade in product UI.
- Don't add drop shadows to static cards — hairline #E5E5E5 borders separate surfaces; shadows are for hover raises and the hero frame only.
- Don't use radii outside the system: 10px controls, 6–8px chips/nav items, 12–16px cards, 9999px pills.
- Do write CTAs as short benefit verbs ("Start for free", "Get a demo"), never "Submit" or "Learn more about X".
- Don't stack multiple pastel washes — one soft gradient or grid texture per hero.
- Do keep the container at 1080px; wider layouts dilute the compact feel.
- Don't uppercase headline text — only tiny eyebrow and badge labels go uppercase.
