Skip to main content

Design System

This page migrates the root DESIGN.md into the Docusaurus site. It defines the UltimateUI documentation theme: a developer-platform surface inspired by Vercel, with stark ink on near-white canvas, crisp hairlines, geometric sans typography, mono technical labels, and a hero-scale multi-color mesh gradient as the only decorative system.

Design Voice

The default surface is near-white. Text is #171717 ink, with secondary body copy at #4d4d4d. The only large decorative element is the mesh gradient made from cyan, blue, violet, magenta, coral, and amber stops. It should not be miniaturized into icons, cropped into swatches, or reduced to a single-color gradient.

Key characteristics:

  • Primary CTAs are black ink pills; secondary CTAs are white pills with a hairline border.
  • Section eyebrows, code blocks, commands, and technical labels use mono.
  • Headlines use sentence case and cap at weight 600.
  • Cards rely on inset hairlines and subtle stacked shadows, never heavy drops.
  • Page rhythm alternates between canvas-soft, canvas, and polarity-flipped dark bands.

Colors

TokenValueUse
primary / ink#171717Primary CTAs, headings, dark section background
on-primary#ffffffText on dark surfaces
body#4d4d4dSecondary copy, nav links, footer links
mute#888888Lowest-priority copy and placeholders
hairline#ebebeb1px dividers, card borders, input borders
canvas#ffffffCards, dialogs, nav
canvas-soft#fafafaDefault page background
canvas-soft-2#f5f5f5Inset regions and code-panel interiors
link#0070f3Body links and informational states
error#ee0000Destructive / validation states
warning#f5a623Pending / caution states
violet#7928caPreview gradient start
cyan#50e3c2Brand gradient cyan stop
highlight-pink#ff0080Preview gradient highlight stop

Brand Gradient

PairStartEndUse
Develop#007cf0#00dfd8Blue -> teal
Preview#7928ca#ff0080Violet -> pink
Ship#ff4d4d#f9cb28Coral -> amber

The three pairs collapse into one mesh gradient for hero use. Treat it as one unified object and reserve it for large atmospheric sections.

Typography

Font strategy:

  • Geometric sans: Geist, Inter, system-ui for display, body, buttons, and nav.
  • Mono: Geist Mono, JetBrains Mono, ui-monospace for code, commands, and eyebrows.
  • Display weight caps at 600; buttons use 500; body uses 400.
  • Body paragraphs should not use mono.
TokenSizeWeightLine HeightLetter SpacingUse
display-xl48px60048px-2.4pxHero headline
display-lg32px60040px-1.28pxSection headline
display-md24px60032px-0.96pxCard headings, pricing tiers
display-sm20px60028px-0.6pxSmall display headings
body-lg18px40028px0Lead paragraph
body-md16px40024px0Default body
body-sm14px40020px-0.28pxSecondary copy, nav
caption12px40016px0Badges and fine print
caption-mono12px40016px0Mono eyebrows
code13px40020px0Code and terminal text
button-lg16px50024px0Marketing CTAs
button-md14px50020px0Nav and small buttons

Principles:

  • Display sizes may use negative tracking; body copy stays neutral.
  • Headlines are sentence case and may use a final period for product voice.
  • Mono is only for the technical layer.

Layout

The base spacing unit is 4px.

TokenValue
xxs4px
xs8px
sm12px
md16px
lg24px
xl32px
2xl40px
3xl48px
4xl64px
5xl96px
6xl128px
section192px

The content container maxes at about 1400px. Desktop gutters are 24px; mobile gutters are 16px. Three-column features, three-column pricing, and five-column template grids collapse down to one column on mobile.

Responsive strategy:

RangeBehavior
< 600pxHero stacks, nav collapses, feature/pricing grids become one column
600-959pxThree-column grids become two columns
960-1199pxFull three-column grids
1200-1399pxCentered content near max width
>= 1400pxFull-bleed backgrounds with 1400px content cap

Elevation

LevelTreatmentUse
0 FlatNo shadow, no borderHero bands and dark full-width sections
1 Inset Hairline0 0 0 1px #00000014 insetDefault card edge
2 Subtle DropTwo weak shadows + inset hairlineTemplate card
3 Soft StackMedium weak stack + inset hairlineFeature card
4 Float StackWider weak stack + inset hairlinePricing and callout panels
5 ModalThree-layer modal stack + inset hairlineDialogs and dropdowns

Do not use one heavy shadow. Card edges stay crisp through inset hairlines.

Radius

TokenValueUse
none0pxFull-width bands
xs4pxTight inline controls
sm6pxNav buttons, inputs
md8pxFeature/template cards
lg12pxPricing and large cards
xl16pxLarge media cards
pill-sm64pxGhost tabs
pill100pxMarketing CTAs
full9999pxIcon buttons and ghost nav links

Components

Buttons

  • button-primary: black 100px pill, white text, marketing primary CTA.
  • button-secondary: white pill, black text, hairline border.
  • button-primary-sm: smaller black button for nav/card contexts.
  • button-secondary-sm: smaller white secondary button.
  • tab-ghost: white pill for centered tab rows.
  • icon-button-circular: circular white icon button with a hairline border.

Cards

  • card-marketing: white, 24px padding, 8px radius, Level 3 shadow.
  • card-marketing-large: white, 32px padding, 12px radius, Level 4 shadow.
  • card-soft: soft-canvas card.
  • template-card: white, 16px padding, 8px radius, 16:9 thumbnail cap.
  • code-editor-mockup: black mono code panel, 24px padding, 8px radius.
  • pricing-card: default white pricing tier.
  • pricing-card-featured: polarity-flipped black featured tier.

Forms

  • form-input: white, hairline border, 40px tall, 6px radius.
  • form-input-sm: 32px tall.
  • form-input-lg: 48px tall for hero CTAs.
  • nav-bar: white, 64px tall, sticky top, 24px desktop padding.
  • nav-link: 14px secondary text with ghost-pill hover.
  • footer: white four-column nav; column titles use mono captions.

Signature Sections

  • hero-band: white hero with mesh gradient backdrop, mono badge, display-xl headline, body-lg lead, and CTA row.
  • feature-mesh-band: secondary feature band with atmospheric mesh backdrop.
  • showcase-band-light: canvas-soft section.
  • showcase-band-dark: black polarity-flipped section, often with a code panel.
  • logo-strip: monochrome SVG logo row at 24px height.
  • badge-secondary: soft-gray small pill.
  • banner-marketing: top announcement pill.
  • link-inline: #0070f3 body link with hover underline.

Do

  • Use #171717 as the primary CTA color.
  • Use 100px pills for marketing CTAs and 6px radius for nav controls.
  • Keep headlines at weight 600 and sentence case.
  • Reserve mesh gradients for hero-scale surfaces.
  • Use stacked shadows and inset hairlines.
  • Build rhythm through light canvas, white cards, and black polarity-flipped bands.
  • Use mono for technical labels and code.

Don't

  • Do not add a sixth accent color.
  • Do not render headlines in all caps.
  • Do not use one heavy shadow.
  • Do not miniaturize the mesh gradient into icons or small swatches.
  • Do not raise display weight to 700/800.
  • Do not set body copy in mono.