# Brand systems & typography

> Build unmistakable products instead of generic templates by locking semantic color tokens, clear type hierarchy, spacing rhythm, and disciplined surfaces early.

- Canonical: https://exaspark.ai/docs/design-systems-and-brands/

## Why generic AI layouts look interchangeable

Visitors spot a boilerplate template in half a second. The giveaways are predictable: muddy blue-purple gradients, rounded eyebrow pill badges stacked above every headline, cards nested inside outer boxes, and five competing accent colors fighting for attention.

Distinctive software customers trust with their credit card relies on **restraint**: a semantic color system, crisp typographic contrast, generous whitespace, and a flat single-plane layout where content leads and chrome steps back.

Locking those tokens takes five minutes on ExaSpark's **Design Canvas** and keeps every screen, email, deck, and creative asset cohesive afterward.

## The four pillars of a production brand system

Every cohesive interface rests on four coordinated token layers. Locking them upfront stops screens built on turn twenty from clashing with your homepage.

| System pillar | What it governs | Production craft standard | Generic anti-pattern |
| --- | --- | --- | --- |
| **Color & surfaces** | Canvas, cards, hairlines, text inks, primary CTA, status tones | 90% calm neutrals, 1 primary brand accent, `>= 4.5:1` contrast | Muddy gradients, rainbow badges, low-contrast grey text |
| **Typography** | Font pairing, size jumps, measure, numeral alignment | Max 2 fonts, clear scale, `60–72ch` prose width, tabular numbers | Flat uniform sizes where titles and labels blur together |
| **Spacing & grid** | Section rhythm, card padding, form gaps, alignment | Consistent `4px / 8px` scale; wider gaps between sections than inside cards | Cramped text walls or random inconsistent margins |
| **Surface elevation** | Borders, shadows, and container depth | Flat single-plane craft: max 0–1 lift plus whisper `1px` hairlines | Nested card-in-card wrappers and heavy grey sub-boxes |

## Semantic color roles and surface discipline

Random hex codes scattered across buttons guarantee visual drift. Assign every color a clear **semantic role** so every component knows its job.

### Assign roles instead of random hex codes

Organize your palette around six disciplined jobs:

- **Canvas background (`--bg-canvas`).** Primary page plane — crisp white, warm alabaster (`#FAF9F6`), or deep charcoal in dark mode.
- **Elevated surface (`--bg-surface`).** Subtle tonal step for primary cards or modals without heavy shadows.
- **Hairline border (`--border-subtle`).** Low-opacity `1px` dividers separating sections cleanly without heavy cages.
- **Ink hierarchy (`--ink-primary`, `--ink-secondary`, `--ink-muted`).** Rich near-black for headings and copy, calmer neutral for metadata with accessible contrast.
- **Single primary accent (`--accent-primary`).** Reserved exclusively for key actions (**Book now**, **Start free**, active tabs) so visitors spot the main CTA instantly.
- **Semantic status tones.** Distinct green (confirmed), amber (pending), and red (destructive/error) used solely for real state meaning.

### Practice flat single-plane craft

Visual clutter usually comes from over-boxing. When a pricing tier places a pill badge inside a grey box inside a shadowed card inside a tinted wrapper, borders overpower the price and button.

Favor generous whitespace and clear type contrast over nested containers. Keep depth flat (at most one gentle surface lift), omit repetitive capsule pills between logos and headlines, and separate list rows with crisp `1px` hairlines.

Use this clean CSS variable foundation inside your brand brief or prompt:

```css
:root {
  --bg-canvas: #faf9f6;
  --bg-surface: #ffffff;
  --border-subtle: rgba(17, 24, 39, 0.10);
  --ink-primary: #14171a;
  --ink-secondary: #4b5563;
  --ink-muted: #6b7280;
  --accent-primary: #1f5c4a;
  --accent-hover: #174638;
  --accent-ink: #ffffff;
  --radius-md: 10px;
  --space-section: 72px;
}
```

## Typography hierarchy and spacing rhythm

Typography expresses more brand character than almost any color or graphic.

### Pair two purposeful fonts at most

Choose either one well-crafted sans-serif family (`Inter`, `Plus Jakarta Sans`, `DM Sans`) or pair one distinctive editorial serif for display headlines (`Instrument Serif`, `Fraunces`, `Newsreader`) with a crisp sans-serif for controls and body copy. Reserve monospace strictly for invoice IDs, DNS records, or code.

### Use a predictable type scale and measure

Create unmistakable visual separation so visitors scan cleanly without reading every line:

- **Display H1 (`36px–56px` desktop, `28px–34px` mobile).** Tight tracking (`-0.02em`), crisp line height (`1.1`), short 1–2 line headline.
- **Section H2 (`24px–32px`).** Clear weight jump and generous top margin announcing a new idea.
- **Body prose (`>= 16px`).** Comfortable `1.55–1.65` line height capped at `60–72` characters per line so desktop paragraphs stay effortless to read.
- **Tabular numerals (`font-variant-numeric: tabular-nums`).** Apply tabular figures to every price, Stripe total, metric, and timer so digits align vertically without jitter.

### Lock a 4px / 8px spacing cadence

Spacing communicates grouping immediately. Keep tight gaps (`4px–8px`) between a label and its value, `20px–24px` padding inside cards and forms, and generous vertical margins (`64px–88px` desktop, `40px–52px` mobile) between distinct sections.

## Lock your brand system on Design Canvas first

Locking visual direction in **Design** mode before wiring backend tables prevents costly full-app restyling later.

1. **Attach real brand assets via +** — Upload your logo, 2–4 real product or studio photos, and optionally a reference screenshot whose pacing you admire.
2. **Generate three contrasted directions in Design mode** — Request genuinely different aesthetics (warm editorial, minimal grid, refined dark showcase) to evaluate real structural choices.
3. **Audit at 100% scale and phone width** — Zoom in to judge hierarchy, whitespace, contrast, and CTA clarity instead of judging tiny thumbnails.
4. **Polish tokens with click-to-edit and scoped chat** — Tighten headlines inline, strip redundant boxes or pills, and finalize your primary accent and font pairing.
5. **Adopt the winning direction** — Adopting freezes your chosen tokens as the active design system across **App**, **Web**, **Image**, **Video**, and **Slides** modes.

Use this **Design** prompt to establish a bespoke, template-free brand identity from turn one:

> **Example prompt (Design):** Create three distinct homepage and pricing directions for Solis Ceramics using our attached logo and pottery photos: (1) warm editorial alabaster with serif display headlines and burnt-terracotta CTAs, (2) crisp minimalist white gallery grid with tight black typography and hairline borders, and (3) moody charcoal studio showcase with warm linen accents. Use flat single-plane layouts with generous whitespace — no gradient blobs, no eyebrow pill badges, and no nested card-in-card wrappers.

Already built a working app that feels generic? Run a clean token refactor without changing backend wiring:

> **Example prompt (Web):** Refactor our visual design system across all pages into a calm, high-craft brand layout: replace nested boxes and decorative eyebrow pills with flat single-plane sections, crisp 1px hairlines, and generous whitespace. Define shared CSS variables for warm off-white canvas, deep charcoal ink, one forest-green primary CTA accent, clear type scale with tabular numbers on all prices, and 60-72ch prose widths. Keep all routes, Cloud bindings, and Stripe checkout untouched.

> **Note:** Once your brand system feels sharp on **Design Canvas**, record your semantic color roles, font pairing, and anti-patterns in `PROJECT_RULES.md`. See [Project rules & context](https://exaspark.ai/docs/project-instructions/).

## Diagnosing and fixing visual slop

Spot subtle template habits in **Preview** and repair them directly with targeted prompts.

| Visual symptom | Root cause | Clean fix to request |
| --- | --- | --- |
| **Page looks heavy and boxy** | Stacked card-in-card wrappers and grey sub-boxes everywhere | Flatten to single-plane sections with generous whitespace and crisp `1px` hairlines |
| **No button feels primary** | Multiple bright accent colors compete across badges and headers | Reserve primary brand color strictly for main CTAs; neutralize secondary controls |
| **Hero feels crowded above the fold** | Pill badge + long headline + wall of text + 3 competing buttons | Drop the pill, tighten headline to 6–9 words, and keep one primary CTA plus one text link |
| **Prices and metrics look jagged** | Proportional digits shift horizontal alignment across rows | Apply `tabular-nums` and right-align currency columns consistently |
| **Later admin screens look off-brand** | New pages used ad-hoc colors instead of root CSS variables | Ask the Agent to bind `/account` and `/admin` to your existing root tokens |

## Next steps

- [Design Canvas](https://exaspark.ai/docs/design-canvas/) — Generate, compare, refine, and adopt visual directions before coding.
- [Responsive & dark mode](https://exaspark.ai/docs/responsive-and-dark-mode/) — Extend semantic tokens cleanly across phones, foldables, and dark themes.
- [Accessibility & UI polish](https://exaspark.ai/docs/accessibility-and-motion/) — Pair visual craft with WCAG contrast, keyboard focus, and crisp states.
- [Brand assets & pitch decks](https://exaspark.ai/docs/brand-assets-and-decks/) — Carry locked brand tokens into studio photos, reels, and Slides.

## From the blog

- [Design before you build](https://exaspark.ai/blog/design-before-you-build/) — Why exploring visual identity upfront creates stronger software faster.
- [How to build a landing page](https://exaspark.ai/blog/how-to-build-a-landing-page/) — Structure hierarchy, typography, and whitespace for immediate trust.
- [How to build a portfolio website](https://exaspark.ai/blog/how-to-build-a-portfolio-website/) — Showcase work cleanly with editorial typography and disciplined restraint.
