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

Design System: HashiCorp

Hermes Agent — Implementation Notes

The original site uses proprietary fonts. For self-contained HTML output, use these CDN substitutes: - Primary: Inter | Mono: JetBrains Mono - Font stack (CSS): font-family: 'Inter', 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=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&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

HashiCorp's website is enterprise infrastructure made tangible — a design system that must communicate the complexity of cloud infrastructure management while remaining approachable. The visual language splits between two modes: a clean white light-mode for informational sections and a dramatic dark-mode (#15181e, #0d0e12) for hero areas and product showcases, creating a day/night duality that mirrors the "build in light, deploy in dark" developer workflow.

The typography is anchored by a custom brand font (HashiCorp Sans, loaded as __hashicorpSans_96f0ca) that carries substantial weight — literally. Headings use 600–700 weights with tight line-heights (1.17–1.19), creating dense, authoritative text blocks that communicate enterprise confidence. The hero headline at 82px weight 600 with OpenType "kern" enabled is not decorative — it's infrastructure-grade typography.

What distinguishes HashiCorp is its multi-product color system. Each product in the portfolio has its own brand color — Terraform purple (#7b42bc), Vault yellow (#ffcf25), Waypoint teal (#14c6cb), Vagrant blue (#1868f2) — and these colors appear throughout as accent tokens via a CSS custom property system (--mds-color-*). This creates a design system within a design system: the parent brand is black-and-white with blue accents, while each child product injects its own chromatic identity.

The component system uses the mds (Markdown Design System) prefix, indicating a systematic, token-driven approach where colors, spacing, and states are all managed through CSS variables. Shadows are remarkably subtle — dual-layer micro-shadows using rgba(97, 104, 117, 0.05) that are nearly invisible but provide just enough depth to separate interactive surfaces from the background.

Key Characteristics: - Dual-mode: clean white sections + dramatic dark (#15181e) hero/product areas - Custom HashiCorp Sans font with 600–700 weights and "kern" feature - Multi-product color system via --mds-color-* CSS custom properties - Product brand colors: Terraform purple, Vault yellow, Waypoint teal, Vagrant blue - Uppercase letter-spaced captions (13px, weight 600, 1.3px letter-spacing) - Micro-shadows: dual-layer at 0.05 opacity — depth through whisper, not shout - Token-driven mds component system with semantic variable names - Tight border radius: 2px–8px, nothing pill-shaped or circular - System-ui fallback stack for secondary text

2. Color Palette & Roles

Brand Primary

Neutral Scale

Product Brand Colors

Semantic Colors

Shadows

3. Typography Rules

Font Families

Hierarchy

Role Font Size Weight Line Height Letter Spacing Notes
Display Hero HashiCorp Sans 82px (5.13rem) 600 1.17 (tight) normal "kern" enabled
Section Heading HashiCorp Sans 52px (3.25rem) 600 1.19 (tight) normal "kern" enabled
Feature Heading HashiCorp Sans 42px (2.63rem) 700 1.19 (tight) -0.42px Negative tracking
Sub-heading HashiCorp Sans 34px (2.13rem) 600–700 1.18 (tight) normal Feature blocks
Card Title HashiCorp Sans 26px (1.63rem) 700 1.19 (tight) normal Card and panel headings
Small Title HashiCorp Sans 19px (1.19rem) 700 1.21 (tight) normal Compact headings
Body Emphasis HashiCorp Sans 17px (1.06rem) 600–700 1.18–1.35 normal Bold body text
Body Large system-ui 20px (1.25rem) 400–600 1.50 normal Hero descriptions
Body system-ui 16px (1.00rem) 400–500 1.63–1.69 (relaxed) normal Standard body text
Nav Link system-ui 15px (0.94rem) 500 1.60 (relaxed) normal Navigation items
Small Body system-ui 14px (0.88rem) 400–500 1.29–1.71 normal Secondary content
Caption system-ui 13px (0.81rem) 400–500 1.23–1.69 normal Metadata, footer links
Uppercase Label HashiCorp Sans 13px (0.81rem) 600 1.69 (relaxed) 1.3px text-transform: uppercase

Principles

4. Component Stylings

Buttons

Primary Dark - Background: #15181e - Text: #d5d7db - Padding: 9px 9px 9px 15px (asymmetric, more left padding) - Radius: 5px - Border: 1px solid rgba(178, 182, 189, 0.4) - Shadow: rgba(97, 104, 117, 0.05) 0px 1px 1px, rgba(97, 104, 117, 0.05) 0px 2px 2px - Focus: 3px solid var(--mds-color-focus-action-external) - Hover: uses --mds-color-surface-interactive token

Secondary White - Background: #ffffff - Text: #3b3d45 - Padding: 8px 12px - Radius: 4px - Hover: --mds-color-surface-interactive + low-shadow elevation - Focus: 3px solid transparent outline - Clean, minimal appearance

Product-Colored Buttons - Terraform: background #7b42bc - Vault: background #ffcf25 (dark text) - Waypoint: background #14c6cb, hover #12b6bb - Each product button follows the same structural pattern but uses its brand color

Badges / Pills

Inputs

Text Input (Dark Mode) - Background: #0d0e12 - Text: #efeff1 - Border: 1px solid rgb(97, 104, 117) - Padding: 11px - Radius: 5px - Focus: 3px solid var(--mds-color-focus-action-external) outline

Checkbox - Background: #0d0e12 - Border: 1px solid rgb(97, 104, 117) - Radius: 3px

Cards & Containers

5. Layout Principles

Spacing System

Grid & Container

Breakpoints

Name Width Key Changes
Mobile Small <375px Tight single column
Mobile 375–480px Standard mobile
Small Tablet 480–600px Minor adjustments
Tablet 600–768px 2-column grids begin
Small Desktop 768–992px Full nav visible
Desktop 992–1120px Standard layout
Large Desktop 1120–1440px Max-width content
Ultra-wide >1440px Centered, generous margins

Whitespace Philosophy

Border Radius Scale

6. Depth & Elevation

Level Treatment Use
Flat (Level 0) No shadow Default surfaces, text blocks
Whisper (Level 1) rgba(97, 104, 117, 0.05) 0px 1px 1px, rgba(97, 104, 117, 0.05) 0px 2px 2px Cards, buttons, interactive surfaces
Focus (Level 2) 3px solid var(--mds-color-focus-action-external) outline Focus rings — color-matched to context

Shadow Philosophy: HashiCorp uses arguably the subtlest shadow system in modern web design. The dual-layer shadows at 5% opacity are nearly invisible — they exist not to create visual depth but to signal interactivity. If you can see the shadow, it's too strong. This restraint communicates the enterprise value of stability — nothing floats, nothing is uncertain.

7. Do's and Don'ts

Do

Don't

8. Responsive Behavior

Breakpoints

Name Width Key Changes
Mobile <768px Single column, hamburger nav, stacked CTAs
Tablet 768–992px 2-column grids, nav begins expanding
Desktop 992–1150px Full layout, mega-menu nav
Large >1150px Max-width centered, generous margins

Collapsing Strategy

9. Agent Prompt Guide

Quick Color Reference

Example Component Prompts

Iteration Guide

  1. Always start with the mode decision: light (white) for informational, dark (#15181e) for hero/product
  2. HashiCorp Sans for headings only (17px+), system-ui for everything else
  3. Shadows are at whisper level (0.05 opacity) — if visible, reduce
  4. Product colors are sacred — each product owns exactly one color
  5. Focus rings are always 3px solid, color-matched to product context
  6. Uppercase labels are the systematic wayfinding pattern — 13px, 600, 1.3px tracking