← Về thư mục
📄 / / root / .hermes / profiles / glv-director / skills / creative / popular-web-designs / templates / x.ai.md

Design System: xAI

Hermes Agent — Implementation Notes

The original site uses proprietary fonts. For self-contained HTML output, use these CDN substitutes: - Primary: Geist Mono | Mono: Geist Mono - Font stack (CSS): font-family: 'Geist Mono', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; - Mono stack (CSS): font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; html <link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600;700&display=swap" rel="stylesheet"> Use write_file to create HTML, serve via generative-widgets skill (cloudflared tunnel). Verify visual accuracy with browser_vision after generating.

1. Visual Theme & Atmosphere

xAI's website is a masterclass in dark-first, monospace-driven brutalist minimalism -- a design system that feels like it was built by engineers who understand that restraint is the ultimate form of sophistication. The entire experience is anchored to an almost-black background (#1f2228) with pure white text (#ffffff), creating a high-contrast, terminal-inspired aesthetic that signals deep technical credibility. There are no gradients, no decorative illustrations, no color accents competing for attention. This is a site that communicates through absence.

The typographic system is split between two carefully chosen typefaces. GeistMono (Vercel's monospace font) handles display-level headlines at an extraordinary 320px with weight 300, and also serves as the button typeface in uppercase with tracked-out letter-spacing (1.4px). universalSans handles all body and secondary heading text with a clean, geometric sans-serif voice. The monospace-as-display-font choice is the defining aesthetic decision -- it positions xAI not as a consumer product but as infrastructure, as something built by people who live in terminals.

The spacing system operates on an 8px base grid with values concentrated at the small end (4px, 8px, 24px, 48px), reflecting a dense, information-focused layout philosophy. Border radius is minimal -- the site barely rounds anything, maintaining sharp, architectural edges. There are no decorative shadows, no gradients, no layered elevation. Depth is communicated purely through contrast and whitespace.

Key Characteristics: - Pure dark theme: #1f2228 background with #ffffff text -- no gray middle ground - GeistMono at extreme display sizes (320px, weight 300) -- monospace as luxury - Uppercase monospace buttons with 1.4px letter-spacing -- technical, commanding - universalSans for body text at 16px/1.5 and headings at 30px/1.2 -- clean contrast - Zero decorative elements: no shadows, no gradients, no colored accents - 8px spacing grid with a sparse, deliberate scale - Heroicons SVG icon system -- minimal, functional - Tailwind CSS with arbitrary values -- utility-first engineering approach

2. Color Palette & Roles

Primary

Interactive

Surface & Borders

Functional

3. Typography Rules

Font Family

Hierarchy

Role Font Size Weight Line Height Letter Spacing Transform Notes
Display Hero GeistMono 320px (20rem) 300 1.50 normal none Extreme scale, monospace luxury
Section Heading universalSans 30px (1.88rem) 400 1.20 (tight) normal none Clean sans-serif contrast
Body universalSans 16px (1rem) 400 1.50 normal none Standard reading text
Button GeistMono 14px (0.88rem) 400 1.43 1.4px uppercase Tracked monospace, commanding
Label / Caption universalSans 14px (0.88rem) 400 1.50 normal none Supporting text
Small / Meta universalSans 12px (0.75rem) 400 1.50 normal none Timestamps, footnotes

Principles

4. Component Stylings

Buttons

Primary (White on Dark) - Background: #ffffff - Text: #1f2228 - Padding: 12px 24px - Radius: 0px (sharp corners) - Font: GeistMono 14px weight 400, uppercase, letter-spacing 1.4px - Hover: rgba(255, 255, 255, 0.9) background - Use: Primary CTA ("TRY GROK", "GET STARTED")

Ghost / Outlined - Background: transparent - Text: #ffffff - Padding: 12px 24px - Radius: 0px - Border: 1px solid rgba(255, 255, 255, 0.2) - Font: GeistMono 14px weight 400, uppercase, letter-spacing 1.4px - Hover: rgba(255, 255, 255, 0.05) background - Use: Secondary actions ("LEARN MORE", "VIEW API")

Text Link - Background: none - Text: #ffffff - Font: universalSans 16px weight 400 - Hover: rgba(255, 255, 255, 0.5) -- dims on hover - Use: Inline links, navigation items

Cards & Containers

Badges / Tags

Monospace Tag - Background: transparent - Text: #ffffff - Padding: 4px 8px - Border: 1px solid rgba(255, 255, 255, 0.2) - Radius: 0px - Font: GeistMono 12px uppercase, letter-spacing 1px

Inputs & Forms

5. Layout Principles

Spacing System

Grid & Container

Whitespace Philosophy

Breakpoints

Border Radius Scale

6. Depth & Elevation

Level Treatment Use
Flat (Level 0) No shadow, no border Page background, body content
Surface (Level 1) rgba(255,255,255,0.03) background Subtle card surfaces
Bordered (Level 2) 1px solid rgba(255,255,255,0.1) border Cards, containers, dividers
Active (Level 3) 1px solid rgba(255,255,255,0.2) border Hover states, active elements
Focus (Accessibility) ring with rgb(59,130,246)/0.5 Keyboard focus indicator

Elevation Philosophy: xAI rejects the conventional shadow-based elevation system entirely. There are no box-shadows anywhere on the site. Instead, depth is communicated through three mechanisms: (1) opacity-based borders that brighten on interaction, creating a sense of elements "activating" rather than lifting; (2) extremely subtle background opacity shifts (0.03 to 0.08) that create barely-perceptible surface differentiation; and (3) the massive scale contrast between the 320px display type and 16px body text, which creates typographic depth. This is elevation through contrast and opacity, not through simulated light and shadow.

7. Do's and Don'ts

Do

Don't

8. Responsive Behavior

Breakpoints

Name Width Key Changes
Mobile <640px Single column, hero headline scales dramatically down
Small Tablet 640-768px Slight increase in padding
Tablet 768-1024px Two-column layouts begin, heading sizes increase
Desktop 1024-1280px Full layout, generous whitespace
Large 1280-1536px Wider containers, more breathing room
Extra Large 1536-2000px Maximum content width, centered
Ultra >2000px Content stays centered, extreme margins

Touch Targets

Collapsing Strategy

Image Behavior

9. Agent Prompt Guide

Quick Color Reference

Example Component Prompts

Iteration Guide

  1. Always start with #1f2228 background -- never use pure black or gray backgrounds
  2. GeistMono for display and buttons, universalSans for everything else -- never mix these roles
  3. All buttons must be GeistMono uppercase with 1.4px letter-spacing -- this is non-negotiable
  4. No shadows, ever -- depth comes from border opacity and background opacity only
  5. Borders are always white with low opacity (0.1 default, 0.2 for emphasis)
  6. Hover behavior dims to 0.5 opacity rather than brightening -- the reverse of most systems
  7. Sharp corners (0px) by default -- only use 4px for specific secondary containers
  8. Body text at 16px universalSans with 1.5 line-height for comfortable reading
  9. Generous section padding (48px-96px) -- let content breathe in the darkness
  10. The monochromatic white-on-dark palette is absolute -- resist adding color unless critical for function