Domain Forge Design System

Overview

This is a code-first design system that serves as a single source of truth for all UI components across the Domain Forge site.

Core Principles

1. Theme-Based Design

Every section must use one of three theme classes:

2. Container System

All content must be wrapped in .container for consistent max-width and padding.

3. Grid System

Use .auto-grid for responsive card layouts that automatically adjust to screen size.

4. Button System

5. Hard Rules

Usage Examples

Basic Section

<section class="section theme-dark">
  <div class="container">
    <div class="center">
      <h1>Title</h1>
      <p class="lead text-muted">Subtitle</p>
    </div>
  </div>
</section>

Card Grid

<section class="section theme-cream">
  <div class="container">
    <div class="auto-grid">
      <article class="card card--surface-light">
        <h3>Card Title</h3>
        <p>Card content</p>
        <div class="actions">
          <a href="#" class="btn btn--primary">Action</a>
        </div>
      </article>
    </div>
  </div>
</section>

Token System

Colors

Spacing

Typography

Migration Notes

Removed Classes

New Classes

Accessibility