Configuration

lyt

Customize your site with design tokens and site configuration.

Site Configuration

Site configuration lives in content/config/site.yaml.

meta:
  title: "My Site"
  description: "Site description"
  author: "Your Name"
  url: "https://example.com"

nav:
  - label: "Home"
    href: "/"
  - label: "About"
    href: "/about"

Agent-Specific Content

Generate parallel HTML pages at /agents/* for LLM agents visiting your site. The agent pages contain pure content without decorations (no nav, hero, or footer)—perfect for AI agents that need structured information.

Enable agent pages:

agent_section:
  enabled: true
  path: "/agents"

What it does:

  • Generates stripped-down pages at /agents/{slug}
  • Adds "Agents Read This First" link to human-facing pages
  • Removes nav, hero, footer—keeps only title and content
  • Code blocks, tables, and structured data remain intact

Design Tokens

Customize colors, typography, and spacing in content/tokens.yaml.

Design tokens become CSS custom properties in dist/tokens.css.

Colors

Define your color palette:

colors:
  base:
    bg: "#f5f5f0"
    surface: "#ecece6"
    border: "#d8d8d0"
    text: "#3d3d3d"
    heading: "#2a2a25"
  
  accent:
    warm: "#a89880"
    cool: "#8090a0"
  
  system:
    error: "#8b3a3a"
    success: "#3a6b3a"
    warning: "#8b6a30"

Output:

:root {
  --color-base-bg: #f5f5f0;
  --color-base-text: #3d3d3d;
  /* ... */
}

Accent: Warm Amber

A single accent color with 5 shades. Works in both light and dark mode.

Shade Use
1 Subtle backgrounds, hover states
2 Borders, secondary elements
3 Default buttons, links, highlights
4 Active states, emphasis, current page indicator
5 Focus rings, strong CTAs

Light mode shades:

accent-1: #f5e6c8  (subtle)
accent-2: #d4b896  (muted)
accent-3: #c4a77d  (default)
accent-4: #a08050  (strong)
accent-5: #6b552f  (intense)

Dark mode shades (inverted for visibility):

accent-1: #3d3420  (subtle)
accent-2: #5a4a30  (muted)
accent-3: #7a6240  (default)
accent-4: #a08050  (strong)
accent-5: #c4a77d  (intense)

Typography

Customize fonts and sizes:

typography:
  font_family:
    body: "Georgia, serif"
    heading: "'Courier New', monospace"
    mono: "'Fira Code', monospace"
  
  font_size:
    xs: "0.75rem"
    sm: "0.875rem"
    base: "1rem"
    lg: "1.125rem"
    xl: "1.25rem"
    2xl: "1.5rem"
    3xl: "1.875rem"

Spacing

Define spacing scale:

spacing:
  0: "0"
  1: "0.25rem"
  2: "0.5rem"
  4: "1rem"
  8: "2rem"
  16: "4rem"

Z-Index Layers

lyt uses 8 z-index layers:

0:  ground (default)
1-4: userland (content components)
5-8: system (nav, tooltips, modals)
z:
  content: "1"
  elevated: "2"
  floating: "3"
  overlay: "5"
  nav: "6"
  tooltip: "7"
  modal: "8"

Dark Mode

lyt supports automatic dark mode via CSS:

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0b0f14;
    --color-text: #e6e2db;
    /* ... */
  }
}

See templates/base.css for the complete dark mode styles.

Ready to Deploy?

Learn how to deploy your site to the web.

Deployment Guide