vitest.dev website design: fonts, colors and UI patterns

4 featured captures from vitest.dev, with sourced design evidence from Fudge.

How is vitest.dev designed? Show me the visual system I can use as a reference.

Captured pages

Overview

The Vitest website presents a developer-tool identity built on extreme contrast: near-black surfaces against bright white typography, punctuated by electric green and cyan accents. The visual system communicates speed and technical precision through a disciplined dark-mode palette, a distinctive display typeface with tight negative tracking, and structured grid layouts that organize dense technical information into scannable feature cards. The homepage moves from an assertive hero statement through a sponsor ecosystem to a detailed capability grid, maintaining visual coherence through consistent border treatments, monospace code styling, and a restrained elevation system that keeps all elements flat against the dark canvas.

Colors

The color system is built for dark-mode readability with a small, purposeful palette. Every token serves a specific interface role.

tokenvalueuse
canvas#16171DPrimary page background, card surfaces
surface#000000Deepest background layer, code block backgrounds
surface-elevated#2E2E32Inline code backgrounds, subtle elevation
ink#FFFFFFPrimary text, headings, navigation
muted-ink#867E8ESecondary descriptions, footer labels, inactive states
accent-green#22FF73Primary action borders, success states, terminal highlights
accent-cyan#32F3E9Secondary accent, 0xc reference, link highlights
accent-purple#B39AFFTertiary accent, Vite code references
border#3B3440Card borders, grid dividers, section separators
border-subtle#2E2E32Hairline dividers within dense layouts

The interface operates in a single dark mode. The near-black canvas (#16171D) avoids pure black harshness while maintaining the depth expected of developer tools. White ink provides maximum contrast for readability. The three accent colors—green, cyan, and purple—appear sparingly: green defines the primary call-to-action outline, cyan marks specific technical references, and purple highlights framework names in code contexts. No light mode variant is present in the visible system.

Typography

Three font families create a clear hierarchy: Apk Protocol for display and navigation, Inter for body text and UI elements, and Kh Teka Mono for code and technical annotations.

tokenfamilysizeweightleadingtrackinguse
hero-displayApk Protocol3.75rem5001.12-0.05emHero headlines
section-displayApk Protocol3rem5001-0.025emSection headlines, CTA banner
feature-headingApk Protocol2.5rem5001.33-0.025emFeature card titles
body-largeInter1.125rem4001.56normalHero descriptions, feature body
bodyInter1rem4001.4normalNavigation, buttons, general UI
labelInter0.875rem4001normalSponsor tier labels, small metadata
navigationApk Protocol1rem4001.5normalNav links, brand-adjacent UI
codeKh Teka Mono1rem4001.5normalInline code, terminal output
code-smallKh Teka Mono0.75rem4001.330.025emSmall labels, status badges

Apk Protocol, designed by Autograph Peter Korsman and supplied by Maël Bächtold for APK Type, carries the brand voice with its medium weight and tightly tracked negative spacing. Kh Teka Mono, from Kurppa Hosk (designers Jakob Ekelund and Wille Larsson) and supplied by Kh Type, provides the technical monospace voice. Inter serves as the neutral workhorse for readable body text. Verify licensing for these families before production use.

Layout

The layout system relies on a centered content column with generous horizontal margins and consistent vertical section spacing. The base spacing unit is 0.125rem (2px), from which all measurements derive.

Content containers center with max-width constraints and horizontal padding of 2.5rem (40px). Major sections separate with 7.5rem (120px) vertical padding. The feature grid uses a two-column layout with 1px borders between cells, creating a subtle quilted effect where each card sits as a distinct bordered region against the continuous canvas background.

The sponsor ecosystem organizes into tiered rows: Special sponsors occupy a three-column grid, Platinum spans full-width centered placement, and Gold sponsors distribute across five equal columns. Each sponsor cell maintains consistent internal padding of 4rem vertical and 2rem horizontal, with 1px borders defining cell boundaries.

The footer expands to an asymmetric multi-column layout: three content columns for Vitest links, Resources, and Versions, with a fourth Social column right-aligned. Footer sections receive 7.5rem top padding and 10rem bottom padding, creating substantial breathing room above the copyright line.

Visual language

The visual character is intentionally flat and technical. No shadows elevate cards or buttons; depth comes solely from border delineation and color contrast. The 1px border in #3B3440 serves as the primary structural device, appearing around feature cards, sponsor cells, and grid divisions.

Imagery and illustration follow a dark, neon-edged aesthetic. Feature cards contain isometric 3D illustrations with glowing green and purple edge lighting against dark forms. The terminal screenshot in the Smart & instant watch mode card uses a green-tinted background with monospace output, reinforcing the command-line identity.

The green accent (#22FF73) appears most prominently as a 1px outline on the primary "Get Started" button, creating a halo effect that draws attention without filling the button surface. This outline treatment extends to the hero CTA, maintaining consistency across the action hierarchy.

Code styling is integral to the visual language. Inline code spans receive 0.25rem radius corners, 0.125rem 0.375rem padding, and the #2E2E32 background, sitting slightly elevated from the canvas. Framework names like Vite, Jest, and 0xc receive color-coded treatment in purple, green, and cyan respectively, creating a syntax-highlighting effect within prose.

Components

Hero Section

  • Anatomy: Label lockup ("BY VOID(0)"), headline, description, and paired action buttons
  • Surface: Full-bleed canvas background
  • Typography: hero-display for the headline, body-large for the description
  • Spacing: Generous top padding, 2rem gap between description and buttons
  • Composition: Left-aligned content with comfortable right margin

Primary Button

  • Anatomy: Text label with 1px solid border
  • Surface: Transparent background
  • Border: 1px solid in accent-green, 0.5rem radius
  • Typography: body weight 500, ink color
  • Spacing: 0.5rem 1rem padding
  • Variants: The "Get Started" variant uses the green outline; secondary actions use a filled ink background with surface text

Feature Card

  • Anatomy: Heading, description, and illustrative media
  • Surface: canvas background with 1px solid border on all sides
  • Typography: feature-heading for titles, body-large for descriptions in muted-ink
  • Shape: 0.5rem radius corners
  • Spacing: 2.5rem internal padding
  • Composition: Text stacked above centered illustration; cards tile in 2×2 grid with shared borders
  • Anatomy: Logo image or wordmark, centered horizontally and vertically
  • Surface: canvas background
  • Border: 1px solid border defining cell boundaries
  • Spacing: 4rem 2rem padding
  • Variants: Three tier widths—Special (3-column), Platinum (full-width), Gold (5-column)

Terminal Card

  • Anatomy: Green-tinted background containing a dark terminal window with monospace output
  • Surface: Gradient or tinted green background behind surface terminal frame
  • Typography: code-small for status badges (PASS), code for command output
  • Shape: 0.5rem radius on terminal window
  • Composition: Full-bleed illustration within feature card boundaries
  • Anatomy: Tiered CTA banner, link columns, social links, copyright
  • Surface: canvas background
  • CTA Banner: Full-width green gradient background with centered section-display and secondary-button
  • Link Columns: label typography in muted-ink for headers, body for links in ink
  • Social Links: Icon-plus-text pairs with body typography
  • Spacing: 7.5rem top padding, 10rem bottom padding, 6rem horizontal padding

Responsive behavior

The two-column feature grid should collapse to a single column on narrower viewports, maintaining the 1px border between stacked cards. Sponsor grids should reduce column counts: Special from three to one, Gold from five to two or one, with horizontal scrolling as an alternative for logo preservation.

The hero headline at 3.75rem should scale down to 2.5rem on small screens to prevent overflow. Navigation items should collapse to a menu trigger, with the Apk Protocol brand mark remaining visible.

The footer multi-column layout should stack vertically on narrow screens, with each column becoming a collapsible section to manage vertical space.

Practical implementation guidance

### Preserve - The extreme contrast between canvas and ink; this is the core identity - The 1px border system as the sole structural device; avoid adding shadows - The three-accent color coding for technical references (green for actions, cyan for tools, purple for frameworks) - The tight negative tracking on Apk Protocol display sizes - The flat button treatments, especially the green-outlined primary action

### Avoid - Light mode variants without complete palette redefinition - Border-radius values larger than 0.5rem for cards and buttons - Pure black (#000000) as primary backgrounds; use canvas instead - Adding elevation shadows to cards or buttons - Mixing font weights outside the specified 400/500 range

### Recommended Build Order 1. Establish the dark canvas background and white text defaults 2. Implement the spacing scale with 0.125rem base unit 3. Load the three font families with correct weights 4. Build the hero section with display typography and outlined button 5. Create the bordered card component for feature grids 6. Implement the sponsor tier system with consistent cell borders 7. Add the footer with CTA banner and multi-column layout 8. Fine-tune code styling with background, radius, and accent colors

### Accessibility - Maintain the 4.5:1 minimum contrast ratio; the current ink on canvas exceeds 15:1 - Ensure the green outline button has sufficient contrast; consider a filled state for focus indicators - Provide visible focus states on all interactive elements, using accent-cyan as a focus ring color - Preserve semantic heading hierarchy: h1 for hero, h2 for sections, h3 for feature cards - Ensure sponsor logos have appropriate alt text or aria labels

Scope note

This guide covers the Vitest homepage including the hero, sponsor ecosystem, feature grid, and footer. Documentation pages, interactive terminal demos, hover states, and mobile navigation patterns are not represented in the supplied material. The spacing and type scales derive from exact pixel measurements present in the interface.

More website design guides

Browse website design guides by pattern and website.