/CLAUDE.md
CLAUDE.md at /CLAUDE.md
Path: CLAUDE.md
Zudo Design Token Panel
Documentation site built with zudo-doc — a zfb-based documentation framework with MDX, Tailwind CSS v4, and Preact islands.
Tech Stack
zfb — documentation build framework
MDX — content format
Tailwind CSS v4 — via
@tailwindcss/vitePreact — for interactive islands only (with compat mode for React API)
syntect — built-in code highlighting, run by zfb's Rust pipeline at build time (single fixed theme:
base16-ocean-dark)
Commands
pnpm dev— zfb dev server (port 4321)pnpm build— static HTML export todist/pnpm check— TypeScript type checking
Key Directories
src/
├── components/ # JSX + Preact components
│ └── admonitions/ # Note, Tip, Info, Warning, Danger
├── config/ # Settings, color schemes
├── content/
│ └── docs/ # MDX content
│ └── docs- ja/ # Japanese MDX content (mirrors docs/ )
├── layouts/ # JSX layouts
├── pages/ # File- based routing
└── styles/
└── global. css # Design tokens & Tailwind configContent Conventions
Frontmatter
Required:
title(string)Optional:
description,sidebar_position(number),categorySidebar order is driven by
sidebar_position
Admonitions
Available in all MDX files without imports: <Note>, <Tip>, <Info>, <Warning>, <Danger>
Each accepts an optional title prop.
Headings
Do NOT use h1 (#) in doc content — the page title from frontmatter is rendered as h1. Start content headings from h2 (##).
Components
Default to server-rendered JSX components (
.tsx) — zero JS, server-renderedUse Preact islands (
client:load) only when client-side interactivity is needed
i18n
English (default):
/— content indocs/ . . . src/content/ docs/ Japanese:
/— content inja/ docs/ . . . src/content/ docs- ja/ Japanese docs should mirror the English directory structure
Enabled Features
search — Full-text search via Pagefind
sidebarFilter — Real-time sidebar filtering
claudeResources — Auto-generated docs for Claude Code resources
designTokenPanel — Interactive tabbed panel for tweaking spacing, font, size, and color tokens
sidebarResizer — Draggable sidebar width
sidebarToggle — Show/hide desktop sidebar
versioning — Multi-version documentation support
docHistory — Document edit history
llmsTxt — Generates llms.txt for LLM consumption
changelog — Changelog page at
/docs/ changelog