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

Design System: OpenCode

Hermes Agent — Implementation Notes

The original site uses proprietary fonts. For self-contained HTML output, use these CDN substitutes: - Primary: JetBrains Mono | Mono: JetBrains Mono - Font stack (CSS): font-family: 'JetBrains Mono', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; - Mono stack (CSS): font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; html <link href="https://fonts.googleapis.com/css2?family=JetBrains+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

OpenCode's website embodies a terminal-native, monospace-first aesthetic that reflects its identity as an open source AI coding agent. The entire visual system is built on a stark dark-on-light contrast using a near-black background (#201d1d) with warm off-white text (#fdfcfc). This isn't a generic dark theme -- it's a warm, slightly reddish-brown dark that feels like a sophisticated terminal emulator rather than a cold IDE. The warm undertone in both the darks and lights (notice the subtle red channel in #201d1d -- rgb(32, 29, 29)) creates a cohesive, lived-in quality.

Berkeley Mono is the sole typeface, establishing an unapologetic monospace identity. Every element -- headings, body text, buttons, navigation -- shares this single font family, creating a unified "everything is code" philosophy. The heading at 38px bold with 1.50 line-height is generous and readable, while body text at 16px with weight 500 provides a slightly heavier-than-normal reading weight that enhances legibility on screen. The monospace grid naturally enforces alignment and rhythm across the layout.

The color system is deliberately minimal. The primary palette consists of just three functional tones: the warm near-black (#201d1d), a medium warm gray (#9a9898), and a bright off-white (#fdfcfc). Semantic colors borrow from the Apple HIG palette -- blue accent (#007aff), red danger (#ff3b30), green success (#30d158), orange warning (#ff9f0a) -- giving the interface familiar, trustworthy signal colors without adding brand complexity. Borders use a subtle warm transparency (rgba(15, 0, 0, 0.12)) that ties into the warm undertone of the entire system.

Key Characteristics: - Berkeley Mono as the sole typeface -- monospace everywhere, no sans-serif or serif voices - Warm near-black primary (#201d1d) with reddish-brown undertone, not pure black - Off-white text (#fdfcfc) with warm tint, not pure white - Minimal 4px border radius throughout -- sharp, utilitarian corners - 8px base spacing system scaling up to 96px - Apple HIG-inspired semantic colors (blue, red, green, orange) - Transparent warm borders using rgba(15, 0, 0, 0.12) - Email input with generous 20px padding and 6px radius -- the most generous component radius - Single button variant: dark background, light text, tight vertical padding (4px 20px) - Underlined links as default link style, reinforcing the text-centric identity

2. Color Palette & Roles

Primary

Secondary

Accent

Semantic

Text Scale

Border

3. Typography Rules

Font Family

Hierarchy

Role Size Weight Line Height Notes
Heading 1 38px (2.38rem) 700 1.50 Hero headlines, page titles
Heading 2 16px (1.00rem) 700 1.50 Section titles, bold emphasis
Body 16px (1.00rem) 400 1.50 Standard body text, paragraphs
Body Medium 16px (1.00rem) 500 1.50 Links, button text, nav items
Body Tight 16px (1.00rem) 500 1.00 (tight) Compact labels, tab items
Caption 14px (0.88rem) 400 2.00 (relaxed) Footnotes, metadata, small labels

Principles

4. Component Stylings

Buttons

Primary (Dark Fill) - Background: #201d1d (OpenCode Dark) - Text: #fdfcfc (OpenCode Light) - Padding: 4px 20px - Radius: 4px - Font: 16px Berkeley Mono, weight 500, line-height 2.00 (relaxed) - Outline: rgb(253, 252, 252) none 0px - Use: Primary CTAs, main actions

Inputs

Email Input - Background: #f8f7f7 (light neutral) - Text: #201d1d - Border: 1px solid rgba(15, 0, 0, 0.12) - Padding: 20px - Radius: 6px - Font: Berkeley Mono, standard size - Use: Form fields, email capture

Default Link - Color: #201d1d - Decoration: underline 1px - Font-weight: 500 - Use: Primary text links in body content

Light Link - Color: #fdfcfc - Decoration: none - Use: Links on dark backgrounds, navigation

Muted Link - Color: #9a9898 - Decoration: none - Use: Footer links, secondary navigation

Tabs

Tab Navigation - Border-bottom: 2px solid #9a9898 (active tab indicator) - Font: 16px, weight 500, line-height 1.00 - Use: Section switching, content filtering

Image Treatment

Distinctive Components

Terminal Hero - Full-width dark terminal window as hero element - ASCII art / stylized logo within terminal frame - Monospace command examples with syntax highlighting - Reinforces the CLI-first identity of the product

Feature List - Bulleted feature items with Berkeley Mono text - Weight 500 for feature names, 400 for descriptions - Tight vertical spacing between items - No cards or borders -- pure text layout

Email Capture - Light background input (#f8f7f7) contrasting dark page - Generous 20px padding for comfortable typing - 6px radius -- the roundest element in the system - Newsletter/waitlist pattern

5. Layout Principles

Spacing System

Grid & Container

Whitespace Philosophy

Border Radius Scale

6. Depth & Elevation

Level Treatment Use
Flat (Level 0) No shadow, no border Default state for most elements
Border Subtle (Level 1) 1px solid rgba(15, 0, 0, 0.12) Section dividers, input borders, horizontal rules
Border Tab (Level 2) 2px solid #9a9898 bottom only Active tab indicator
Border Outline (Level 3) 1px solid #646262 Container outlines, elevated elements

Shadow Philosophy: OpenCode's depth system is intentionally flat. There are no box-shadows in the extracted tokens -- zero shadow values were detected. Depth is communicated exclusively through border treatments and background color shifts. This flatness is consistent with the terminal aesthetic: terminals don't have shadows, and neither does OpenCode. The three border levels (transparent warm, tab indicator, solid outline) create sufficient visual hierarchy without any elevation illusion.

Decorative Depth

7. Interaction & Motion

Hover States

Focus States

Transitions

8. Responsive Behavior

Breakpoints

Name Width Key Changes
Mobile <640px Single column, reduced padding, heading scales down
Tablet 640-1024px Content width expands, slight padding increase
Desktop >1024px Full content width (~800-900px centered), maximum whitespace

Touch Targets

Collapsing Strategy

Image Behavior

9. Agent Prompt Guide

Quick Color Reference

Example Component Prompts

Iteration Guide

  1. Berkeley Mono is the only font -- never introduce a second typeface. Size and weight create all hierarchy.
  2. Keep surfaces flat: no shadows, no gradients, no blur effects. Use borders and background shifts only.
  3. The warm undertone matters: use #201d1d not #000000, use #fdfcfc not #ffffff. The reddish warmth is subtle but essential.
  4. Border radius is 4px everywhere except inputs (6px). Never use rounded pills or large radii.
  5. Semantic colors follow Apple HIG: #007aff blue, #ff3b30 red, #30d158 green, #ff9f0a orange. Each has hover and active darkened variants.
  6. Three-stage interaction: default → hover (darkened) → active (deeply darkened) for all semantic colors.
  7. Borders use rgba(15, 0, 0, 0.12) -- a warm transparent dark, not neutral gray. This ties borders to the warm palette.
  8. Spacing follows an 8px grid: 8, 16, 24, 32, 40, 48, 64, 80, 96px. Use 4px for fine adjustments only.