---
version: alpha
name: Headless UI
description: "Dark interface measured from headlessui.com: Inter var type, light cyan accents, flat surfaces and 16px corners."
colors:
  background: "#000000"
  surface: "#000000"
  on-surface: "#FFFFFF"
  on-background: "#FFFFFF"
  overlay: "#FFFFFF1A"
  overlay-strong: "#000000CC"
  primary: "#74D4FF"
  on-primary: "#000000"
typography:
  headline-display:
    fontFamily: Inter var
    fontSize: 48px
    fontWeight: 600
    lineHeight: 1.25
    letterSpacing: -0.025em
  label-md:
    fontFamily: Inter var
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  code:
    fontFamily: ui-monospace
    fontSize: 12px
    fontWeight: 600
    lineHeight: 1.33
    letterSpacing: 0.1em
  headline-display-mobile:
    fontFamily: Inter var
    fontSize: 24px
    fontWeight: 600
    lineHeight: 1.33
    letterSpacing: -0.025em
rounded:
  sm: 16px
  md: 40px
spacing:
  xs: 2px
  sm: 8px
  md: 12px
  lg: 24px
  xl: 48px
  gutter: 32px
  section: 48px
  margin: 24px
components:
  button-ghost:
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.sm}"
    padding: 2px 6px 2px 12px
---

# Headless UI Design System

## Overview

The interface is dark, built on **Near Black (#000000)** with **White (#FFFFFF)** text, and **Light Cyan (#74D4FF)** as the main accent.

Type is set in **Inter var**, with **ui-monospace** for code. Headlines run large with tight negative tracking; body text is compact. The surface language is flat. Corners are mostly 16px.

Measured from [headlessui.com](https://headlessui.com/) on November 29, 2026 at 1440×900 and 390×844 from 96 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 6 roles.

- **Near Black (#000000):** Page background, seen 1 time. Token `background`.
- **White (#FFFFFF):** Primary text and headings, seen 2 times. Token `on-surface`, CSS `--tw-ring-offset-color`.
- **White 10% (#FFFFFF1A):** Translucent fill for cards and controls, seen 1 time. Token `overlay`.
- **Near Black 80% (#000000CC):** Stronger translucent fill, seen 1 time. Token `overlay-strong`.
- **Light Cyan (#74D4FF):** Brand color in the logo, seen 2 times. Token `primary`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.

## Typography

**Inter var** and **ui-monospace** (monospace) share the interface. Fallback stack: `Inter var, sans-serif`.

- **headline-display:** Inter var 48px at weight 600, line height 1.25, tracking -0.025em (24px on mobile). Page title (h1).
- **label-md:** Inter var 16px at weight 400, line height 1.5. Buttons, navigation and labels.
- **code:** ui-monospace 12px at weight 600, line height 1.33, tracking 0.1em, uppercase. Code and technical values.

## Layout

Spacing is mostly on a 4px grid (73% of measured values), with some off-grid steps. Match the measured scale rather than rounding everything.

- **Scale:** xs 2px, sm 8px, md 12px, lg 24px, xl 48px.
- **Sections:** 48px vertical padding between major sections.
- **Gaps:** 32px is the most common gap in flex and grid layouts.
- **Page margin:** 24px on each side of full-width sections.
- **Breakpoints:** 450px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from color contrast.

## Shapes

Most elements use 16px corners. Measured radii, most used first:

- **sm (16px):** 4 elements.
- **md (40px):** 4 elements.

## Components

Measured from the rendered page. Token values reference the tokens above.

- **button-ghost (“v2.1”):** transparent fill, #000000 text, 16px/400, 16px radius, padding 2px 6px 2px 12px.

## Do's and Don'ts

- Do use #000000 for the page.
- Do use #74D4FF as the brand accent: header, logo and key highlights.
- Do set headlines in Inter var with tight tracking (-0.025em).
- Do reuse the measured spacing steps (8px, 12px, 24px).
- Do use 16px corners on most elements; larger surfaces also use 40px.
- Don't add drop shadows for depth; use borders and contrast.
- Don't introduce new font families beyond Inter var and ui-monospace.
- Don't use #74D4FF for large backgrounds or body text.

Generated by [Sitepeel](https://sitepeel.dev/design-md/headlessui.com/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
