# Palette and primitives The base CSS is inlined into every artifact. You can use these tokens and classes inside any `*_html` field — including `freeform.body_html` — without re-declaring them. ## Color tokens | Token | Hex | Use | |---|---|---| | `--ivory` | `#FAF9F5` | Page background | | `--paper` | `#FFFFFF` | Card background | | `--slate` | `#141413` | Headings, inverted background | | `--clay` | `#D97757` | Brand accent (lines, primary actions) | | `--clay-d` | `#B85C3E` | Hover/dark variant | | `--oat` | `#E3DACC` | Soft contrast surface | | `--olive` | `#788C5D` | Success, secondary accent | | `--rust` | `#B04A3F` | Errors, destructive | | `--moss` | `#4A6B3A` | Success text | | `--g100` … `--g700` | grays | Surfaces, borders, body text | Semantic aliases: `--ok`, `--warn`, `--err`, `--info`. ## Type stacks - `--serif` — display headings (h1, h2, big numerics). - `--sans` — body text (default). - `--mono` — code, eyebrows, badges, captions. ## Geometry `--radius-sm` (6px) · `--radius` (10px) · `--radius-lg` (16px) · `--border` · `--border-soft` · `--shadow-card` · `--shadow-pop`. ## Layout primitives - `.page` — main column (1080px max). Variants: `.page--wide` (1280px), `.page--narrow` (720px). - `.masthead` — header strip with `.eyebrow` + `

` + `.subtitle`. - `.grid .grid--2|3|4|auto` — responsive CSS grid. - `.stack`, `.row` — vertical / horizontal flex. - `.card`, `.card--soft`, `.card--elev` — content containers. - `.rule` — `
` underline below `

`. - `.colophon` — optional footer strip; pass `colophon="text"` to `page()` to show it (off by default). ## Components - **Eyebrow**: `
SECTION
` — small all-caps label with a leading clay rule. - **Badge**: `v1.0`. - **Kbd**: `⌘K`. - **Bullets**: `` — clay dots. - **Code**: inline `` and block `
`. Block code gets a
  `copy` button automatically via `base.js`.
- **Details**: native `
……
` styled. ## Tabs ```html
…
…
``` `base.js` wires this automatically and selects the first tab by default. ## Drag-to-reorder ```html
…
…
``` Optional cross-zone drops: add `data-zone=""` to each container. ## Live parameter bindings ```html ``` The CSS custom property `--bind-` is updated on every input event, and any `[data-out=""]` element receives the formatted value. ## Helper functions (Python side) If you're calling templates from a custom builder, `composer.py` exposes: `esc`, `attrs`, `tag`, `void`, `eyebrow`, `badge`, `kbd`, `code_block`, `inline_code`, `section`, `card`, `grid`, `stack`, `row`, `bullets`, `kv_list`, `table`, `details`, `tabs`, `callout`, `slug`. These all return HTML strings and accept plain Python data.