# xAI — Style Reference
> Midnight Command Center: A dark, responsive interface with precise typographic hierarchy and subtle interactive cues.
**Theme:** dark
xAI employs a darkened cosmic canvas aesthetic: deep black backgrounds, muted grays for surfaces, and sharp white typography for contrast. A single, vivid blue accent is reserved for interactive input states, creating a focal point against the otherwise reserved palette. Components are lightweight with minimal borders and generous radius for buttons, aiming for a sense of contained energy rather than heavy presence.
## Tokens — Colors
| Name | Value | Token | Role |
|------|-------|-------|------|
| Deep Midnight | `#0c0c0b` | `--color-deep-midnight` | Neutral form states, badge text, and quiet UI feedback where color should stay understated. Do not promote it to the primary CTA color |
| Faded Steel | `#1f2228` | `--color-faded-steel` | Secondary background, subtle borders for ghost buttons and card outlines. Its slight tint keeps it from being pure black |
| Frost White | `#ffffff` | `--color-frost-white` | Primary text, interactive element text, button backgrounds, and subtle highlight shadows. Provides high contrast on dark surfaces |
| Muted Ash | `linear-gradient(to right, rgba(255, 99, 8, 0.1), rgba(255, 99, 8, 0.1), rgba(189, 201, 230, 0.1), rgba(151, 196, 255, 0.1), rgba(151, 196, 255, 0.1))` | `--color-muted-ash` | Secondary text for badges, navigation, and body copy. Offers readability without high contrast; Decorative footer background effect, transitioning from dark with subtle color to full black |
| Whisper Gray | `#474747` | `--color-whisper-gray` | Subtle button and navigation borders, creating a very soft outline |
| Electric Blue | `#2563eb` | `--color-electric-blue` | Violet state accent for badges, validation surfaces, and short status labels. Do not promote it to the primary CTA color |
## Tokens — Typography
### universalSans — Primary text for headings, body, navigation, and interactive elements. Its specific negative letter spacing gives titles a distinct, compact feel. · `--font-universalsans`
- **Substitute:** Inter
- **Weights:** 400
- **Sizes:** 16px, 20px, 36px, 48px, 80px
- **Line height:** 1.00, 1.11, 1.20, 1.40, 1.50
- **Letter spacing:** -0.0250em
- **Role:** Primary text for headings, body, navigation, and interactive elements. Its specific negative letter spacing gives titles a distinct, compact feel.
### GeistMono — Monospaced font for badges and occasional navigation elements. The explicit positive letter spacing creates a technical, spaced-out effect, contrasting with Universal Sans. · `--font-geistmono`
- **Substitute:** Space Mono
- **Weights:** 400
- **Sizes:** 12px, 14px
- **Line height:** 1.33, 1.43, 2.00
- **Letter spacing:** 0.1000em
- **Role:** Monospaced font for badges and occasional navigation elements. The explicit positive letter spacing creates a technical, spaced-out effect, contrasting with Universal Sans.
### Type Scale
| Role | Size | Line Height | Letter Spacing | Token |
|------|------|-------------|----------------|-------|
| caption | 12px | 2 | 0.1px | `--text-caption` |
| body-sm | 14px | 1.43 | 0.1px | `--text-body-sm` |
| body | 16px | 1.5 | -0.025px | `--text-body` |
| subheading | 20px | 1.4 | -0.025px | `--text-subheading` |
| heading | 36px | 1.2 | -0.025px | `--text-heading` |
| heading-lg | 48px | 1.11 | -0.025px | `--text-heading-lg` |
| display | 80px | 1 | -0.025px | `--text-display` |
## Tokens — Spacing & Shapes
**Base unit:** 4px
**Density:** comfortable
### Spacing Scale
| Name | Value | Token |
|------|-------|-------|
| 4 | 4px | `--spacing-4` |
| 8 | 8px | `--spacing-8` |
| 12 | 12px | `--spacing-12` |
| 16 | 16px | `--spacing-16` |
| 20 | 20px | `--spacing-20` |
| 24 | 24px | `--spacing-24` |
| 32 | 32px | `--spacing-32` |
| 40 | 40px | `--spacing-40` |
| 48 | 48px | `--spacing-48` |
| 64 | 64px | `--spacing-64` |
| 128 | 128px | `--spacing-128` |
### Border Radius
| Element | Value |
|---------|-------|
| inputs | 24px |
| buttons | 9999px |
| calloutCards | 0px |
### Shadows
| Name | Value | Token |
|------|-------|-------|
| subtle | `rgb(113, 113, 122) 0px 0px 0px 2px` | `--shadow-subtle` |
### Layout
- **Section gap:** 48px
- **Card padding:** 16px
- **Element gap:** 12px
## Components
### Ghost Primary Button
**Role:** Primary action button with transparent background.
Background: rgba(0, 0, 0, 0), Text color: #ffffff, Border: 1px solid rgba(255, 255, 255, 0.25), Radius: 9999px, Padding: 8px vertical, 16px horizontal. Text uses universalSans-400.
### Filled Secondary Button
**Role:** Secondary action button for explicit actions.
Background: #ffffff, Text color: #0a0a0a, Border: none, Radius: 9999px, Padding: 4px vertical, 12px horizontal. Text uses universalSans-400.
### Navigation Link
**Role:** Top navigation and footer navigation links.
Background: rgba(0, 0, 0, 0), Text color: #ffffff, Border: none by default, Padding: 6px vertical. Text uses universalSans-400.
### Interactive Text Input
**Role:** Text input field for user queries.
Background: #0c0c0b, Text color: #ffffff, Border: 1px solid #1f2228, Radius: 24px, Padding: 20px vertical, 16px left, 64px right. Focus ring: #2563eb 0px 0px 0px 2px.
### Callout Card
**Role:** Section for product features or announcements.
Background: #0c0c0b, Border: 1px solid #1f2228, Radius: 0px, Padding: variable, often includes 16px internal padding. Text is #ffffff with smaller details in #7d8187.
### Badge Neutral
**Role:** Informational tags and date indicators.
Background: rgba(0, 0, 0, 0), Text color: #7d8187, Radius: 0px, Padding: 0px. Text uses GeistMono-400.
## Do's and Don'ts
### Do
- Retain the dominant dark theme using Deep Midnight (#0c0c0b) as the canvas and Faded Steel (#1f2228) for secondary surfaces.
- Use Frost White (#ffffff) for all primary text, ensuring high contrast on dark backgrounds.
- Apply universalSans with -0.0250em letter spacing for all headlines and body text to maintain the compact, confident typographic style.
- Reserve Electric Blue (#2563eb) exclusively for interactive input focus states and accents, maintaining its visual impact as a sole chromatic element.
- Apply a 9999px border-radius to all interactive buttons for a soft, pill-shaped appearance.
- Set internal padding for feature cards at 16px to create consistent breathing room for content.
- Utilize GeistMono with 0.1000em letter spacing for all badges and auxiliary labels to establish a technical, distinct text style.
### Don't
- Avoid introducing additional saturated colors; maintain the restricted palette with Electric Blue as the only vivid accent.
- Do not use heavy box-shadows or significant elevation; prefer subtle borders and slight background shifts for surface differentiation.
- Do not use rectangular, sharp-edged buttons; enforce the 9999px radius for all interactive buttons.
- Avoid large imagery or elaborate illustrations; prioritize clean UI and minimal, abstract graphics.
- Do not use a light theme; the brand identity is firmly established in dark mode.
- Do not vary paragraph line heights or font weights frequently within body text; maintain the universalSans-400, 1.5 lineHeight standard.
- Avoid dense, unbroken blocks of text; break content into manageable sections with clear headings and ample vertical spacing of at least 48px between major sections.
## Surfaces
| Level | Name | Value | Purpose |
|-------|------|-------|---------|
| 0 | Deep Midnight Canvas | `#0c0c0b` | Primary page background, foundation of the dark theme. |
| 1 | Faded Steel Surface | `#1f2228` | Used for card backgrounds, input borders, and other mid-level UI elements to provide subtle separation from the canvas. |
| 2 | Frost White Overlay | `#ffffff` | Rarely used as a background, primarily for filled buttons, indicating a high-contrast interactive element. |
## Elevation
- **Interactive Text Input Focus:** `rgb(113, 113, 122) 0px 0px 0px 2px`
## Imagery
This design system uses minimal, abstract, and technical-leaning graphics. Photography is absent. Illustrations are primarily line-based or monochromatic, often appearing as subtle background elements or within product cards (e.g., outline of a laptop). Icons are sparse, simple, and monochrome, usually Frost White (#ffffff) or Muted Ash (#7d8187), and function as functional cues rather than decorative elements. The overall density is text-dominant, with graphics serving a supporting, explanatory role, and sometimes featuring a diffuse, luminous glow effect in hero sections.
## Layout
The page uses a max-width contained layout for most content, although the hero section appears full-bleed or extends wider. The main hero pattern features a centered, oversized headline over a dark, subtly glowing background. Sections are typically stacked vertically with consistent 48px vertical spacing. Content is arranged in a text-dominant manner, often using two-column layouts for features or product descriptions, or 3-column grids for cards. The navigation is a sticky top bar with left-aligned branding and right-aligned actions, featuring ghost buttons. The density is comfortable, with ample whitespace and clear section breaks.
## Agent Prompt Guide
Quick Color Reference:
text: #ffffff
background: #0c0c0b
border: #1f2228
accent: #2563eb
primary action: no distinct CTA color
Example Component Prompts:
Create a hero section: Deep Midnight (#0c0c0b) background. Headline 'AI for all humanity' at 80px universalSans weight 400, #ffffff, letter-spacing -0.025em. Subtext 'Explore new frontiers' below it at 20px universalSans weight 400, #7d8187, letter-spacing -0.025em.
No distinct primary action color was observed; use the extracted neutral button treatments instead of inventing a filled CTA color.
Create an Interactive Text Input: Background #0c0c0b, Text #ffffff, Border 1px solid #1f2228, Radius 24px, Padding 20px vertical, 16px left, 64px right. Placeholder text 'What do you want to know?' in #7d8187. On focus, add shadow: rgb(113, 113, 122) 0px 0px 0px 2px.
## Similar Brands
- **OpenAI** — Similar dark, modern aesthetic with a focus on AI technology, precise typography, and a restrained color palette.
- **Linear** — Employs a dark mode first approach with crisp typography, subtle elevation, and a functional yet minimal design language around productivity tools.
- **Apple Developer Documentation** — Clean, highly functional dark interface with clear typographic hierarchy and minimal decorative elements, prioritizing content and usability.
- **Vercel** — Known for a developer-focused, dark interface, utilizing strong typographic contrast and a sparse interaction model.
## Quick Start
### CSS Custom Properties
```css
:root {
/* Colors */
--color-deep-midnight: #0c0c0b;
--color-faded-steel: #1f2228;
--color-frost-white: #ffffff;
--color-muted-ash: #7d8187;
--gradient-muted-ash: linear-gradient(to right, rgba(255, 99, 8, 0.1), rgba(255, 99, 8, 0.1), rgba(189, 201, 230, 0.1), rgba(151, 196, 255, 0.1), rgba(151, 196, 255, 0.1));
--color-whisper-gray: #474747;
--color-electric-blue: #2563eb;
/* Typography — Font Families */
--font-universalsans: 'universalSans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-geistmono: 'GeistMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
/* Typography — Scale */
--text-caption: 12px;
--leading-caption: 2;
--tracking-caption: 0.1px;
--text-body-sm: 14px;
--leading-body-sm: 1.43;
--tracking-body-sm: 0.1px;
--text-body: 16px;
--leading-body: 1.5;
--tracking-body: -0.025px;
--text-subheading: 20px;
--leading-subheading: 1.4;
--tracking-subheading: -0.025px;
--text-heading: 36px;
--leading-heading: 1.2;
--tracking-heading: -0.025px;
--text-heading-lg: 48px;
--leading-heading-lg: 1.11;
--tracking-heading-lg: -0.025px;
--text-display: 80px;
--leading-display: 1;
--tracking-display: -0.025px;
/* Typography — Weights */
--font-weight-regular: 400;
/* Spacing */
--spacing-unit: 4px;
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-20: 20px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-40: 40px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-128: 128px;
/* Layout */
--section-gap: 48px;
--card-padding: 16px;
--element-gap: 12px;
/* Border Radius */
--radius-3xl: 24px;
--radius-full: 9999px;
/* Named Radii */
--radius-inputs: 24px;
--radius-buttons: 9999px;
--radius-calloutcards: 0px;
/* Shadows */
--shadow-subtle: rgb(113, 113, 122) 0px 0px 0px 2px;
/* Surfaces */
--surface-deep-midnight-canvas: #0c0c0b;
--surface-faded-steel-surface: #1f2228;
--surface-frost-white-overlay: #ffffff;
}
```
### Tailwind v4
```css
@theme {
/* Colors */
--color-deep-midnight: #0c0c0b;
--color-faded-steel: #1f2228;
--color-frost-white: #ffffff;
--color-muted-ash: #7d8187;
--color-whisper-gray: #474747;
--color-electric-blue: #2563eb;
/* Typography */
--font-universalsans: 'universalSans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-geistmono: 'GeistMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
/* Typography — Scale */
--text-caption: 12px;
--leading-caption: 2;
--tracking-caption: 0.1px;
--text-body-sm: 14px;
--leading-body-sm: 1.43;
--tracking-body-sm: 0.1px;
--text-body: 16px;
--leading-body: 1.5;
--tracking-body: -0.025px;
--text-subheading: 20px;
--leading-subheading: 1.4;
--tracking-subheading: -0.025px;
--text-heading: 36px;
--leading-heading: 1.2;
--tracking-heading: -0.025px;
--text-heading-lg: 48px;
--leading-heading-lg: 1.11;
--tracking-heading-lg: -0.025px;
--text-display: 80px;
--leading-display: 1;
--tracking-display: -0.025px;
/* Spacing */
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-20: 20px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-40: 40px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-128: 128px;
/* Border Radius */
--radius-3xl: 24px;
--radius-full: 9999px;
/* Shadows */
--shadow-subtle: rgb(113, 113, 122) 0px 0px 0px 2px;
}
```

Midnight Command Center: An…
Shifting geometric planes under a…

Midnight command center; a…
Midnight Command Center

Midnight Grid Console — where…

Midnight Command Center. Imagine a…

Architectural Night Sky
White canvas, sharp shadows, and a…
Monochrome Grid, Abstract Glow.…

Midnight command center, subtly…

Synthwave dark lab – precision…
Deep night, mountain vista – a…

Midnight Terminal with Aqua Glow.…
Midnight atelier of digital…
Midnight command center
Contrast-driven document
digital workbench, blueprint sketch
Shadowless Dark Operations Grid.…
Warm earth against dark steel
AI-powered clarity on a pristine…