Typography
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
A portable design language for agents: download the markdown first, then inspect the preview, tokens, and rules as needed.
Portable DESIGN.md source of truth for most agents and apps.
Right-anchored vertical-column system. Surfaces are grids of equal-measure registers ruled by thin ink-rails; content reads top to bottom. Sections open with a vertical ink-rail and a vertical register tag (壹 貳 叁). The masthead pairs a horizontal headline with a vertical CJK column read downward.
Dramatic size contrast. The running-cursive display hand (Liu Jian Mao Cao) dominates headings, big numerals, and a table's leading cell; Noto Serif SC carries all reading. Cinnabar marks the one primary action, active register, and focus ring; pine-green and aged gold answer it quietly.
Medium-high with generous vertical rhythm — tight within a register group, generous between. Negative space is a register left blank on purpose.
1) Vertical register scaffold: equal columns opened by 3px ink-rails, content read downward. 2) The crossing stroke: one diagonal cinnabar flying stroke slashing across a register field, drawn on load. 3) The seal, placed: a 4px cinnabar bar on the one active surface. 4) Brushed split-bristle dividers, never flat rules. 5) Living margin (liubai) as structural negative space.
asymmetric right-anchored vertical-register columns; minmax(0,1fr) tracks with min-width:0 children; contained content capped at 1280px
generous; section gap ~88px, register gap none (ink-rail separation), always pad above titles
medium-high
single column on mobile; non-essential nav links and table columns hidden; vertical headline column folds to horizontal; only the full-bleed hero spans 100vw; contained content centred on ultra-wide
feibai-brushwork
All imagery uses the Feibai Brushwork style: forms built from a few sweeping single-gesture ink brushstrokes, dry-brush flying-white striations, a small cinnabar seal-mark and sparse gold flecks. Tiaofu composes them as a vertical cursive column crossed by one diagonal flying stroke on warm raw light paper, with living negative space for a headline overlay.
Landing hero is a full-bleed feibai vertical column with a crossing diagonal stroke and breathing negative space on the left for the headline overlay; feature images reuse the hero gesture. Never illustrate the thumbnail — the thumbnail is an embodiment screenshot.
# Tiaofu ## Philosophy Running-column calligraphy given to product surfaces. The interface is hung like a vertical scroll of registers — content reads down each ruled column, calm and ordered — then a single flying stroke is dragged across the grid at full speed and the page goes kinetic. The identity lives in that tension: the disciplined register scaffold and the one gesture allowed to break it. Reimagined from the Kuangcao Kinetic brief on raw light paper rather than ink-dark drama. ### Values - Order first, then the one decisive gesture - Vertical registers read top to bottom, like a hanging scroll - Raw warm paper as ground — the ink and the seal carry the gravity - The cinnabar seal reserved for the single irreversible action - Living negative space (liubai) as structure, not filler - Speed and confidence in the crossing stroke - Brushed split-bristle rules, never flat grey lines ### Anti-Values - Defaulting to a white or a dark ground - Accent edges trimmed onto every card - The cursive hand bleeding into body paragraphs - Boxed-in nav pills and nested cards as chrome - The crossing stroke repeated until it is wallpaper ### Visual Character - background:#EDE6D6; color:#1B1712; font-family:'Liu Jian Mao Cao',serif - register opened by a 3px vertical ink-rail; content reads downward - one diagonal SVG flying stroke stroke:var(--accent) crosses a register field, drawn on load - active surface carries box-shadow:inset 4px 0 0 #C1352B (the seal-bar) - primary action carries box-shadow:4px 4px 0 rgba(193,53,43,.22) (the stamp) ## Tokens ### Colors | Name | Value | |------|-------| | bg | `#EDE6D6` | | surface | `#F5F0E3` | | surface_2 | `#E3DAC6` | | text | `#1B1712` | | muted | `#6E6553` | | border | `#1B1712` | | accent | `#C1352B` | | on_accent | `#F5F0E3` | | jade | `#2F5D4E` | | gold | `#9A7B33` | | rail | `#1B1712` | | success | `#2F5D4E` | | warning | `#9A7B33` | | error | `#C1352B` | | info | `#3F5A6B` | ### Typography - **Base Size**: 17px - **Body Font**: Noto Serif SC - **Heading Font**: Liu Jian Mao Cao - **Mono Font**: Space Mono - **Heading Weight**: 400 - **Heading Transform**: none - **Letter Spacing**: -0.01em - **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&family=Noto+Serif+SC:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap ### Radii - **None**: 0 - **Soft**: 16px - **Card**: 24px - **Pill**: 9999px ### Shadows - **Flat**: 0 1px 0 rgba(27,23,18,.12) - **Seal**: 4px 4px 0 rgba(193,53,43,.22) - **Lift**: 0 14px 36px rgba(27,23,18,.14) ### Spacing - **Base**: 8px - **Scale**: ["4px","8px","12px","16px","24px","32px","48px","64px","96px"] ### Surfaces - **Paper**: #EDE6D6 - **Panel**: #F5F0E3 - **Channel**: #E3DAC6 - **Paper Grain**: radial-gradient(circle at 22% 18%, rgba(27,23,18,.035) .8px, transparent 1.4px) ### Borders - **Policy**: none-as-chrome - **Ink Rail**: 3px solid #1B1712 - **Seal Bar**: inset 4px 0 0 #C1352B - **Underline Ink**: inset 0 -2px 0 #1B1712 - **Focus Ring**: inset 0 0 0 2px #C1352B ### Motion - **Fast**: 150ms cubic-bezier(0.2,0,0,1) - **Base**: 200ms cubic-bezier(0.2,0,0,1) - **Stroke Draw**: 1100ms cubic-bezier(0.16,0.7,0.2,1) - **Reduced Motion**: respected ## Rules ### Composition Right-anchored vertical-column system. Surfaces are grids of equal-measure registers ruled by thin ink-rails; content reads top to bottom. Sections open with a vertical ink-rail and a vertical register tag (壹 貳 叁). The masthead pairs a horizontal headline with a vertical CJK column read downward. ### Hierarchy Dramatic size contrast. The running-cursive display hand (Liu Jian Mao Cao) dominates headings, big numerals, and a table's leading cell; Noto Serif SC carries all reading. Cinnabar marks the one primary action, active register, and focus ring; pine-green and aged gold answer it quietly. ### Density Medium-high with generous vertical rhythm — tight within a register group, generous between. Negative space is a register left blank on purpose. ### Signature 1) Vertical register scaffold: equal columns opened by 3px ink-rails, content read downward. 2) The crossing stroke: one diagonal cinnabar flying stroke slashing across a register field, drawn on load. 3) The seal, placed: a 4px cinnabar bar on the one active surface. 4) Brushed split-bristle dividers, never flat rules. 5) Living margin (liubai) as structural negative space. ## Layout ### Grid asymmetric right-anchored vertical-register columns; minmax(0,1fr) tracks with min-width:0 children; contained content capped at 1280px ### Whitespace generous; section gap ~88px, register gap none (ink-rail separation), always pad above titles ### Density medium-high ### Responsive single column on mobile; non-essential nav links and table columns hidden; vertical headline column folds to horizontal; only the full-bleed hero spans 100vw; contained content centred on ultra-wide ### Breakpoints - **Mobile**: 390px - **Tablet**: 768px - **Desktop**: 1200px - **Ultrawide**: 2560px ## Guidance ### Do - Build surfaces as vertical registers ruled by ink-rails; read content downward - Keep the ground warm raw paper (#EDE6D6); never white, never dark - Reserve the crossing stroke and the cinnabar seal-bar for meaning, never edge-trim - Use the running-cursive hand for headings and big numerals only - Treat blank registers as structural negative space - Use brushed split-bristle bands for dividers; keep motion fast and gestural ### Don't - Never default to a white or dark ground - Never put an accent edge on every card or box the nav into a pill - Never apply the cursive hand to body paragraphs - Never use flat grey rule-lines - Never repeat the crossing stroke until it is wallpaper — one per field - Never use more than three accents in one view ### Accessibility Pine-ink #1B1712 on raw-paper #EDE6D6 reaches ~13:1 (WCAG AAA). Body in Noto Serif SC at 17px for CJK and Latin readability. Interactive elements take a 2px cinnabar focus ring. The crossing stroke and rails are decorative — content stays in normal flow; the fully-settled page renders with no JavaScript. Motion respects prefers-reduced-motion. ## Imagery Direction ### Pairs With feibai-brushwork ### Summary All imagery uses the Feibai Brushwork style: forms built from a few sweeping single-gesture ink brushstrokes, dry-brush flying-white striations, a small cinnabar seal-mark and sparse gold flecks. Tiaofu composes them as a vertical cursive column crossed by one diagonal flying stroke on warm raw light paper, with living negative space for a headline overlay. ### Subjects - vertical cursive calligraphic column - single diagonal flying stroke crossing the column - ink-on-raw-paper abstraction - feibai flying-white sweep ### Usage Landing hero is a full-bleed feibai vertical column with a crossing diagonal stroke and breathing negative space on the left for the headline overlay; feature images reuse the hero gesture. Never illustrate the thumbnail — the thumbnail is an embodiment screenshot.
---
version: "alpha"
name: "Tiaofu"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
bg: "#EDE6D6"
surface: "#F5F0E3"
surface_2: "#E3DAC6"
text: "#1B1712"
muted: "#6E6553"
border: "#1B1712"
accent: "#C1352B"
on_accent: "#F5F0E3"
jade: "#2F5D4E"
gold: "#9A7B33"
rail: "#1B1712"
success: "#2F5D4E"
warning: "#9A7B33"
error: "#C1352B"
info: "#3F5A6B"
typography:
headline-lg:
fontFamily: "Liu Jian Mao Cao"
fontSize: "2.075rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.01em"
headline-md:
fontFamily: "Liu Jian Mao Cao"
fontSize: "1.66rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.01em"
body-md:
fontFamily: "Noto Serif SC"
fontSize: "17px"
fontWeight: 400
lineHeight: 1.5
letterSpacing: "-0.01em"
label-md:
fontFamily: "Space Mono"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
none: "0px"
soft: "16px"
card: "24px"
pill: "9999px"
spacing:
base: "8px"
xs: "4px"
sm: "8px"
md: "12px"
lg: "16px"
xl: "24px"
2xl: "32px"
3xl: "48px"
4xl: "64px"
step-8: "96px"
components:
color-reference-bg:
backgroundColor: "{colors.bg}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-surface_2:
backgroundColor: "{colors.surface_2}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-on_accent:
backgroundColor: "{colors.on_accent}"
color-reference-jade:
backgroundColor: "{colors.jade}"
color-reference-gold:
backgroundColor: "{colors.gold}"
color-reference-rail:
backgroundColor: "{colors.rail}"
color-reference-success:
backgroundColor: "{colors.success}"
color-reference-warning:
backgroundColor: "{colors.warning}"
color-reference-error:
backgroundColor: "{colors.error}"
color-reference-info:
backgroundColor: "{colors.info}"
button-primary:
backgroundColor: "{colors.accent}"
textColor: "#ffffff"
typography: "{typography.label-md}"
rounded: "{rounded.none}"
padding: "{spacing.md}"
card-surface:
backgroundColor: "{colors.surface}"
textColor: "{colors.text}"
rounded: "{rounded.none}"
padding: "{spacing.md}"
input-default:
backgroundColor: "{colors.surface}"
textColor: "{colors.text}"
rounded: "{rounded.none}"
height: "44px"
---
# Tiaofu
## Overview
Running-column calligraphy given to product surfaces. The interface is hung like a vertical scroll of registers — content reads down each ruled column, calm and ordered — then a single flying stroke is dragged across the grid at full speed and the page goes kinetic. The identity lives in that tension: the disciplined register scaffold and the one gesture allowed to break it. Reimagined from the Kuangcao Kinetic brief on raw light paper rather than ink-dark drama.
### Values
- Order first, then the one decisive gesture
- Vertical registers read top to bottom, like a hanging scroll
- Raw warm paper as ground — the ink and the seal carry the gravity
- The cinnabar seal reserved for the single irreversible action
- Living negative space (liubai) as structure, not filler
- Speed and confidence in the crossing stroke
- Brushed split-bristle rules, never flat grey lines
### Anti-Values
- Defaulting to a white or a dark ground
- Accent edges trimmed onto every card
- The cursive hand bleeding into body paragraphs
- Boxed-in nav pills and nested cards as chrome
- The crossing stroke repeated until it is wallpaper
### Visual Character
- background:#EDE6D6; color:#1B1712; font-family:'Liu Jian Mao Cao',serif
- register opened by a 3px vertical ink-rail; content reads downward
- one diagonal SVG flying stroke stroke:var(--accent) crosses a register field, drawn on load
- active surface carries box-shadow:inset 4px 0 0 #C1352B (the seal-bar)
- primary action carries box-shadow:4px 4px 0 rgba(193,53,43,.22) (the stamp)
## Colors
Use the YAML color tokens as the normative palette. The prose below names the roles agents should preserve when generating UI.
| Token | Value |
|-------|-------|
| bg | `#EDE6D6` |
| surface | `#F5F0E3` |
| surface_2 | `#E3DAC6` |
| text | `#1B1712` |
| muted | `#6E6553` |
| border | `#1B1712` |
| accent | `#C1352B` |
| on_accent | `#F5F0E3` |
| jade | `#2F5D4E` |
| gold | `#9A7B33` |
| rail | `#1B1712` |
| success | `#2F5D4E` |
| warning | `#9A7B33` |
| error | `#C1352B` |
| info | `#3F5A6B` |
## Typography
- **Headline-Lg**: Liu Jian Mao Cao, 2.075rem, weight 700, line-height 1.1.
- **Headline-Md**: Liu Jian Mao Cao, 1.66rem, weight 600, line-height 1.15.
- **Body-Md**: Noto Serif SC, 17px, weight 400, line-height 1.5.
- **Label-Md**: Space Mono, 0.75rem, weight 600, line-height 1.
## Layout
### Spacing Tokens
- **Base**: `8px`
- **Xs**: `4px`
- **Sm**: `8px`
- **Md**: `12px`
- **Lg**: `16px`
- **Xl**: `24px`
- **2xl**: `32px`
- **3xl**: `48px`
- **4xl**: `64px`
- **Step-8**: `96px`
### Grid
asymmetric right-anchored vertical-register columns; minmax(0,1fr) tracks with min-width:0 children; contained content capped at 1280px
### Whitespace
generous; section gap ~88px, register gap none (ink-rail separation), always pad above titles
### Density
medium-high
### Responsive
single column on mobile; non-essential nav links and table columns hidden; vertical headline column folds to horizontal; only the full-bleed hero spans 100vw; contained content centred on ultra-wide
### Breakpoints
- **Mobile**: 390px
- **Tablet**: 768px
- **Desktop**: 1200px
- **Ultrawide**: 2560px
## Elevation & Depth
### Shadows
- **Flat**: 0 1px 0 rgba(27,23,18,.12)
- **Seal**: 4px 4px 0 rgba(193,53,43,.22)
- **Lift**: 0 14px 36px rgba(27,23,18,.14)
## Shapes
### Rounded
- **None**: `0px`
- **Soft**: `16px`
- **Card**: `24px`
- **Pill**: `9999px`
### Surfaces
- **Paper**: #EDE6D6
- **Panel**: #F5F0E3
- **Channel**: #E3DAC6
- **Paper Grain**: radial-gradient(circle at 22% 18%, rgba(27,23,18,.035) .8px, transparent 1.4px)
### Borders
- **Policy**: none-as-chrome
- **Ink Rail**: 3px solid #1B1712
- **Seal Bar**: inset 4px 0 0 #C1352B
- **Underline Ink**: inset 0 -2px 0 #1B1712
- **Focus Ring**: inset 0 0 0 2px #C1352B
## Components
### Composition
Right-anchored vertical-column system. Surfaces are grids of equal-measure registers ruled by thin ink-rails; content reads top to bottom. Sections open with a vertical ink-rail and a vertical register tag (壹 貳 叁). The masthead pairs a horizontal headline with a vertical CJK column read downward.
### Hierarchy
Dramatic size contrast. The running-cursive display hand (Liu Jian Mao Cao) dominates headings, big numerals, and a table's leading cell; Noto Serif SC carries all reading. Cinnabar marks the one primary action, active register, and focus ring; pine-green and aged gold answer it quietly.
### Density
Medium-high with generous vertical rhythm — tight within a register group, generous between. Negative space is a register left blank on purpose.
### Signature
1) Vertical register scaffold: equal columns opened by 3px ink-rails, content read downward. 2) The crossing stroke: one diagonal cinnabar flying stroke slashing across a register field, drawn on load. 3) The seal, placed: a 4px cinnabar bar on the one active surface. 4) Brushed split-bristle dividers, never flat rules. 5) Living margin (liubai) as structural negative space.
## shadcn/ui Usage
When the target app uses shadcn/ui, copy DESIGN.md with shadcn instead of the plain DESIGN.md. It contains the same Katagami design-language source plus the shadcn/ui primitives, imports, theme variables, component recipes, and preview-shot guidance.
DESIGN.md with shadcn: `/language/en-019ef9c1-6ec2-7f63-9225-77b92d5721c6/DESIGN.with-shadcn.md`.
The shadcn page also exposes optional machine-readable files for automation, but the human-facing handoff is DESIGN.md with shadcn.
Install recommended primitives with `npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table`.
Use these primitives in shadcn apps:
- button
- card
- input
- textarea
- select
- dialog
- sheet
- tabs
- badge
- separator
- checkbox
- switch
- slider
- tooltip
- dropdown-menu
- table
Implementation rule for agents: import shadcn primitives from `@/components/ui/*`, apply the generated CSS variables first, then compose the language-specific recipes from the companion MD. Katagami remains the source of truth; shadcn names are the implementation surface.
## Do's and Don'ts
- Do Build surfaces as vertical registers ruled by ink-rails; read content downward
- Do Keep the ground warm raw paper (#EDE6D6); never white, never dark
- Do Reserve the crossing stroke and the cinnabar seal-bar for meaning, never edge-trim
- Do Use the running-cursive hand for headings and big numerals only
- Do Treat blank registers as structural negative space
- Do Use brushed split-bristle bands for dividers; keep motion fast and gestural
- Don't Never default to a white or dark ground
- Don't Never put an accent edge on every card or box the nav into a pill
- Don't Never apply the cursive hand to body paragraphs
- Don't Never use flat grey rule-lines
- Don't Never repeat the crossing stroke until it is wallpaper — one per field
- Don't Never use more than three accents in one view
### Accessibility
Pine-ink #1B1712 on raw-paper #EDE6D6 reaches ~13:1 (WCAG AAA). Body in Noto Serif SC at 17px for CJK and Latin readability. Interactive elements take a 2px cinnabar focus ring. The crossing stroke and rails are decorative — content stays in normal flow; the fully-settled page renders with no JavaScript. Motion respects prefers-reduced-motion.
## Imagery Direction
### Pairs With
feibai-brushwork
### Summary
All imagery uses the Feibai Brushwork style: forms built from a few sweeping single-gesture ink brushstrokes, dry-brush flying-white striations, a small cinnabar seal-mark and sparse gold flecks. Tiaofu composes them as a vertical cursive column crossed by one diagonal flying stroke on warm raw light paper, with living negative space for a headline overlay.
### Subjects
- vertical cursive calligraphic column
- single diagonal flying stroke crossing the column
- ink-on-raw-paper abstraction
- feibai flying-white sweep
### Usage
Landing hero is a full-bleed feibai vertical column with a crossing diagonal stroke and breathing negative space on the left for the headline overlay; feature images reuse the hero gesture. Never illustrate the thumbnail — the thumbnail is an embodiment screenshot.
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "tiaofu",
"type": "registry:theme",
"title": "Tiaofu shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#EDE6D6",
"foreground": "#1B1712",
"card": "#F5F0E3",
"card-foreground": "#1B1712",
"popover": "#F5F0E3",
"popover-foreground": "#1B1712",
"primary": "#1B1712",
"primary-foreground": "#ffffff",
"secondary": "#f4f4f5",
"secondary-foreground": "#111111",
"muted": "#6E6553",
"muted-foreground": "#1B1712",
"accent": "#C1352B",
"accent-foreground": "#ffffff",
"destructive": "#C1352B",
"border": "#1B1712",
"input": "#1B1712",
"ring": "#C1352B",
"chart-1": "#1B1712",
"chart-2": "#f4f4f5",
"chart-3": "#C1352B",
"chart-4": "#2F5D4E",
"chart-5": "#9A7B33",
"sidebar": "#F5F0E3",
"sidebar-foreground": "#1B1712",
"sidebar-primary": "#1B1712",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#3F5A6B",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#1B1712",
"sidebar-ring": "#C1352B",
"radius": "0.625rem"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#1B1712",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#C1352B",
"accent-foreground": "#ffffff",
"destructive": "#C1352B",
"border": "#303642",
"input": "#303642",
"ring": "#C1352B",
"chart-1": "#1B1712",
"chart-2": "#f4f4f5",
"chart-3": "#C1352B",
"chart-4": "#2F5D4E",
"chart-5": "#9A7B33",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#1B1712",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C1352B",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#C1352B",
"radius": "0.625rem"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019ef9c1-6ec2-7f63-9225-77b92d5721c6",
"slug": "tiaofu",
"componentManifest": [
"button",
"card",
"input",
"textarea",
"select",
"dialog",
"sheet",
"tabs",
"badge",
"separator",
"checkbox",
"switch",
"slider",
"tooltip",
"dropdown-menu",
"table"
],
"installCommand": "npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table",
"nativeTokenNames": {
"colors": [
"accent",
"bg",
"border",
"error",
"gold",
"info",
"jade",
"muted",
"on_accent",
"rail",
"success",
"surface",
"surface_2",
"text",
"warning"
],
"typography": [
"base_size",
"body_font",
"google_fonts_url",
"heading_font",
"heading_transform",
"heading_weight",
"letter_spacing",
"mono_font"
],
"radii": [
"card",
"none",
"pill",
"soft"
],
"shadows": [
"flat",
"lift",
"seal"
],
"spacing": [
"base",
"scale"
],
"surfaces": [
"channel",
"panel",
"paper",
"paper_grain"
],
"borders": [
"focus_ring",
"ink_rail",
"policy",
"seal_bar",
"underline_ink"
],
"motion": [
"base",
"fast",
"reduced_motion",
"stroke_draw"
]
}
}
}
```The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
Agent-generated
Keep Tiaofuand swap a palette and an art style onto it — the landing & dashboard recolor live. The Studio does the same with all three lanes free.
Copy this when the target app uses shadcn/ui. It packages the Katagami DESIGN.md context with the install list, theme variables, component recipes, preview-shot contract, and starter TSX in one Markdown companion.
npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table:root {
--background: #EDE6D6;
--foreground: #1B1712;
--card: #F5F0E3;
--card-foreground: #1B1712;
--popover: #F5F0E3;
--popover-foreground: #1B1712;
--primary: #1B1712;
--primary-foreground: #ffffff;
--secondary: #f4f4f5;
--secondary-foreground: #111111;
--muted: #6E6553;
--muted-foreground: #1B1712;
--accent: #C1352B;
--accent-foreground: #ffffff;
--destructive: #C1352B;
--border: #1B1712;
--input: #1B1712;
--ring: #C1352B;
--chart-1: #1B1712;
--chart-2: #f4f4f5;
--chart-3: #C1352B;
--chart-4: #2F5D4E;
--chart-5: #9A7B33;
--sidebar: #F5F0E3;
--sidebar-foreground: #1B1712;
--sidebar-primary: #1B1712;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #3F5A6B;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #1B1712;
--sidebar-ring: #C1352B;
--radius: 0.625rem;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #1B1712;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #C1352B;
--accent-foreground: #ffffff;
--destructive: #C1352B;
--border: #303642;
--input: #303642;
--ring: #C1352B;
--chart-1: #1B1712;
--chart-2: #f4f4f5;
--chart-3: #C1352B;
--chart-4: #2F5D4E;
--chart-5: #9A7B33;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #1B1712;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #C1352B;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #C1352B;
--radius: 0.625rem;
}
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
export function TiaofuShadcnKit() {
return (
<section className="grid gap-4 rounded-[var(--radius)] border bg-background p-4 text-foreground">
<div className="flex items-start justify-between gap-4">
<div>
<Badge variant="outline">shadcn/ui</Badge>
<h2 className="mt-3 text-2xl font-semibold tracking-tight">Tiaofu</h2>
<p className="mt-1 max-w-xl text-sm text-muted-foreground">
Use the Katagami registry theme, then compose these shadcn primitives
with the language-specific component recipes.
</p>
</div>
<Button>Apply theme</Button>
</div>
<Tabs defaultValue="components">
<TabsList>
<TabsTrigger value="components">Components</TabsTrigger>
<TabsTrigger value="states">States</TabsTrigger>
<TabsTrigger value="export">Export</TabsTrigger>
</TabsList>
</Tabs>
<Card>
<CardHeader>
<CardTitle>Component recipe</CardTitle>
<CardDescription>
Replace this starter content with the agent-authored product scene
from components.md and preview-shots.json.
</CardDescription>
</CardHeader>
<CardContent className="grid gap-3 sm:grid-cols-[1fr_auto]">
<Input defaultValue="Tokenized shadcn surface" aria-label="Recipe name" />
<Button variant="secondary">Preview state</Button>
</CardContent>
<CardFooter className="justify-between">
<Badge>Ready</Badge>
<Button variant="outline">Copy recipe</Button>
</CardFooter>
</Card>
</section>
);
}
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "tiaofu",
"type": "registry:theme",
"title": "Tiaofu — Running-column calligraphy",
"author": "katagami-agent",
"cssVars": {
"theme": {
"font-sans": "'Noto Serif SC', Georgia, serif",
"font-serif": "'Noto Serif SC', Georgia, serif",
"font-mono": "'Space Mono', ui-monospace, monospace",
"font-display": "'Liu Jian Mao Cao', 'Noto Serif SC', serif",
"radius": "0rem"
},
"light": {
"background": "#EDE6D6",
"foreground": "#1B1712",
"card": "#F5F0E3",
"card-foreground": "#1B1712",
"popover": "#F5F0E3",
"popover-foreground": "#1B1712",
"primary": "#C1352B",
"primary-foreground": "#F5F0E3",
"secondary": "#E3DAC6",
"secondary-foreground": "#1B1712",
"muted": "#E3DAC6",
"muted-foreground": "#6E6553",
"accent": "#2F5D4E",
"accent-foreground": "#F5F0E3",
"destructive": "#C1352B",
"destructive-foreground": "#F5F0E3",
"border": "#1B1712",
"input": "#1B1712",
"ring": "#C1352B",
"chart-1": "#C1352B",
"chart-2": "#2F5D4E",
"chart-3": "#9A7B33",
"chart-4": "#6E6553",
"chart-5": "#1B1712",
"radius": "0rem"
},
"dark": {
"background": "#1B1712",
"foreground": "#EDE6D6",
"card": "#23201C",
"card-foreground": "#EDE6D6",
"popover": "#23201C",
"popover-foreground": "#EDE6D6",
"primary": "#C1352B",
"primary-foreground": "#F5F0E3",
"secondary": "#2A2520",
"secondary-foreground": "#EDE6D6",
"muted": "#2A2520",
"muted-foreground": "#A89C88",
"accent": "#2F5D4E",
"accent-foreground": "#F5F0E3",
"destructive": "#C1352B",
"destructive-foreground": "#F5F0E3",
"border": "#EDE6D6",
"input": "#EDE6D6",
"ring": "#C1352B",
"chart-1": "#C1352B",
"chart-2": "#2F5D4E",
"chart-3": "#9A7B33",
"chart-4": "#A89C88",
"chart-5": "#EDE6D6"
}
},
"visualProfile": {
"key": "tiaofu",
"summary": "Warm raw-paper ground, pine-ink workhorse, one cinnabar seal accent. Square geometry (radius 0); flat-on-paper surfaces with no chrome borders. Identity comes from vertical ink-rails, brushed split-bristle dividers, a 4px cinnabar seal-bar on the one active surface, and a running-cursive display hand for headings only.",
"borders": "none-as-chrome; ink-rail (3px solid foreground) on registers, brushed underline (inset 0 -2px 0 foreground) on inputs, 4px cinnabar seal-bar on the active surface",
"radius": "0 for cards/panels/buttons; 9999px for pills and progress bars only",
"elevation": "flat on paper (0 1px 0 rgba(27,23,18,.12)); the primary button carries an offset cinnabar 'stamp' shadow 4px 4px 0",
"material": "matte warm handmade-paper with faint fibrous grain; never glassy, never gradient washes",
"accentUsage": "cinnabar #C1352B reserved for the single primary action, active register, and focus ring; pine-green and aged gold answer it quietly",
"typographyNote": "display hand (Liu Jian Mao Cao) titles and big numerals only; body always Noto Serif SC; mono Space Mono for labels/eyebrows"
}
}
# Tiaofu shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019ef9c1-6ec2-7f63-9225-77b92d5721c6`
Slug: `tiaofu`
## Intent
Running-column calligraphy given to product surfaces. The interface is hung like a vertical scroll of registers — content reads down each ruled column, calm and ordered — then a single flying stroke is dragged across the grid at full speed and the page goes kinetic. The identity lives in that tension: the disciplined register scaffold and the one gesture allowed to break it. Reimagined from the Kuangcao Kinetic brief on raw light paper rather than ink-dark drama.
## Required primitives
- button
- card
- input
- textarea
- select
- dialog
- sheet
- tabs
- badge
- separator
- checkbox
- switch
- slider
- tooltip
- dropdown-menu
- table
Install with `npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table`.
## Token cues
Colors:
{
"bg": "#EDE6D6",
"surface": "#F5F0E3",
"surface_2": "#E3DAC6",
"text": "#1B1712",
"muted": "#6E6553",
"border": "#1B1712",
"accent": "#C1352B",
"on_accent": "#F5F0E3",
"jade": "#2F5D4E",
"gold": "#9A7B33",
"rail": "#1B1712",
"success": "#2F5D4E",
"warning": "#9A7B33",
"error": "#C1352B",
"info": "#3F5A6B"
}
Typography:
{
"base_size": "17px",
"body_font": "Noto Serif SC",
"heading_font": "Liu Jian Mao Cao",
"mono_font": "Space Mono",
"heading_weight": "400",
"heading_transform": "none",
"letter_spacing": "-0.01em",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&family=Noto+Serif+SC:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap"
}
## Visual character to preserve
- background:#EDE6D6; color:#1B1712; font-family:'Liu Jian Mao Cao',serif
- register opened by a 3px vertical ink-rail; content reads downward
- one diagonal SVG flying stroke stroke:var(--accent) crosses a register field, drawn on load
- active surface carries box-shadow:inset 4px 0 0 #C1352B (the seal-bar)
- primary action carries box-shadow:4px 4px 0 rgba(193,53,43,.22) (the stamp)
## ShadSync visual profile
{
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": true,
"stickerBadges": true,
"motion": "still",
"density": "balanced",
"accents": [
"primary",
"accent",
"secondary",
"muted"
]
}
## Signature component recipes
### Button
Use `Button` for primary, secondary, outline, and ghost actions. Primary actions must expose the language's strongest contrast pair, while secondary and ghost actions should preserve the surface treatment instead of falling back to default neutral SaaS styling.
### Card
Use `Card`, `CardHeader`, `CardContent`, `CardFooter`, and `CardAction` as the main composition frame. Cards should demonstrate the language's surface, border, hierarchy, and density rules rather than appearing as generic rounded rectangles.
### Input and Textarea
Use `Input` and `Textarea` with visible focus rings, field labels, validation states, and the language's rhythm. Forms should show real product content, not placeholder-only controls.
### Select, Tabs, and Table
Use `Select`, `Tabs`, and `Table` to prove navigation, filtering, and dense data states. The table should show row rhythm, separators, hover/focus states, and an empty or status state when the language calls for it.
### Dialog and Sheet
Use `Dialog` for centered decisions and `Sheet` for contextual editing. Both should inherit the language's spacing, border, overlay, and motion rules.
## Preview shots
- `application-shell`: dashboard or workspace shell with navigation, cards, forms, and state badges.
- `detail-editor`: focused editing flow using input, textarea, select, switch/checkbox, dialog or sheet, and action buttons.
- `data-operations`: table-heavy operational view with tabs, dropdown menu affordances, badges, and destructive/empty states.
- Each preview shot must include a renderable `scene` payload with concrete headline, description, actions, and rows/fields/stats for the UI preview.
## Implementation contract
- Start from local `ui/src/components/ui` shadcn-style primitives; do not create a second component system.
- Apply `/katagami/shadcn/tiaofu/registry-theme.json` variables, then use these recipes for composition and state design.
- Preserve Katagami token names as source metadata; shadcn semantic names are only the export surface.
- Do: Build surfaces as vertical registers ruled by ink-rails; read content downward; Keep the ground warm raw paper (#EDE6D6); never white, never dark; Reserve the crossing stroke and the cinnabar seal-bar for meaning, never edge-trim; Use the running-cursive hand for headings and big numerals only; Treat blank registers as structural negative space; Use brushed split-bristle bands for dividers; keep motion fast and gestural
- Do not: Never default to a white or dark ground; Never put an accent edge on every card or box the nav into a pill; Never apply the cursive hand to body paragraphs; Never use flat grey rule-lines; Never repeat the crossing stroke until it is wallpaper — one per field; Never use more than three accents in one view
## Copy-paste component example
This generated starter proves the import shape. Production Katagami agents should replace it with a language-specific product composition.
```tsx
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
export function TiaofuShadcnKit() {
return (
<section className="grid gap-4 rounded-[var(--radius)] border bg-background p-4 text-foreground">
<div className="flex items-start justify-between gap-4">
<div>
<Badge variant="outline">shadcn/ui</Badge>
<h2 className="mt-3 text-2xl font-semibold tracking-tight">Tiaofu</h2>
<p className="mt-1 max-w-xl text-sm text-muted-foreground">
Use the Katagami registry theme, then compose these shadcn primitives
with the language-specific component recipes.
</p>
</div>
<Button>Apply theme</Button>
</div>
<Tabs defaultValue="components">
<TabsList>
<TabsTrigger value="components">Components</TabsTrigger>
<TabsTrigger value="states">States</TabsTrigger>
<TabsTrigger value="export">Export</TabsTrigger>
</TabsList>
</Tabs>
<Card>
<CardHeader>
<CardTitle>Component recipe</CardTitle>
<CardDescription>
Replace this starter content with the agent-authored product scene
from components.md and preview-shots.json.
</CardDescription>
</CardHeader>
<CardContent className="grid gap-3 sm:grid-cols-[1fr_auto]">
<Input defaultValue="Tokenized shadcn surface" aria-label="Recipe name" />
<Button variant="secondary">Preview state</Button>
</CardContent>
<CardFooter className="justify-between">
<Badge>Ready</Badge>
<Button variant="outline">Copy recipe</Button>
</CardFooter>
</Card>
</section>
);
}
```
## Layout notes
{
"grid": "asymmetric right-anchored vertical-register columns; minmax(0,1fr) tracks with min-width:0 children; contained content capped at 1280px",
"whitespace": "generous; section gap ~88px, register gap none (ink-rail separation), always pad above titles",
"density": "medium-high",
"responsive": "single column on mobile; non-essential nav links and table columns hidden; vertical headline column folds to horizontal; only the full-bleed hero spans 100vw; contained content centred on ultra-wide",
"breakpoints": {
"mobile": "390px",
"tablet": "768px",
"desktop": "1200px",
"ultrawide": "2560px"
}
}
{
"artifact": "katagami:shadcn-preview-shots",
"version": "preview-shots-v1",
"generator": "katagami-ui-compatibility-projection",
"generatedBy": "katagami-ui-projection",
"requiresVisualProfile": true,
"schema": "katagami:shadcn-preview-shots/renderable-v1",
"renderable": true,
"language": {
"id": "en-019ef9c1-6ec2-7f63-9225-77b92d5721c6",
"name": "Tiaofu",
"slug": "tiaofu"
},
"installCommand": "npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table",
"primitives": [
"button",
"card",
"input",
"textarea",
"select",
"dialog",
"sheet",
"tabs",
"badge",
"separator",
"checkbox",
"switch",
"slider",
"tooltip",
"dropdown-menu",
"table"
],
"identityNotes": [
"background:#EDE6D6; color:#1B1712; font-family:'Liu Jian Mao Cao',serif",
"register opened by a 3px vertical ink-rail; content reads downward",
"one diagonal SVG flying stroke stroke:var(--accent) crosses a register field, drawn on load",
"active surface carries box-shadow:inset 4px 0 0 #C1352B (the seal-bar)",
"primary action carries box-shadow:4px 4px 0 rgba(193,53,43,.22) (the stamp)"
],
"visualProfile": {
"family": "editorial",
"material": "flat",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": false,
"stickerBadges": true,
"motion": "still",
"density": "balanced",
"accents": [
"primary",
"accent",
"secondary",
"muted"
]
},
"shots": [
{
"id": "application-shell",
"title": "Application shell",
"viewport": "desktop",
"primitives": [
"button",
"card",
"input",
"select",
"tabs",
"badge",
"separator",
"table"
],
"composition": "A real product workspace with navigation, summary cards, filtering controls, and one dense content region.",
"mustShow": [
"primary and secondary actions",
"card hierarchy",
"filterable state",
"table or list density"
],
"avoid": [
"component inventory walls",
"placeholder-only content",
"generic rounded SaaS chrome"
],
"scene": {
"eyebrow": "workspace spread",
"headline": "Tiaofu launch room",
"description": "A product team workspace where navigation, filters, metrics, and dense rows carry the language's visible structure.",
"primaryAction": "Apply theme",
"secondaryAction": "Review states",
"stats": [
{
"label": "components",
"value": "16",
"tone": "accent"
},
{
"label": "states",
"value": "ready"
},
{
"label": "density",
"value": "balanced",
"tone": "warning"
}
],
"rows": [
{
"label": "Primary flow",
"value": "mapped",
"status": "active"
},
{
"label": "Token coverage",
"value": "semantic",
"status": "synced"
},
{
"label": "Responsive proof",
"value": "queued",
"status": "review"
}
],
"statuses": [
"Active",
"Synced",
"Draft"
]
}
},
{
"id": "detail-editor",
"title": "Detail editor",
"viewport": "tablet",
"primitives": [
"button",
"card",
"input",
"textarea",
"select",
"checkbox",
"switch",
"slider",
"dialog",
"sheet"
],
"composition": "A focused editing flow with form fields, validation, confirmation, and a contextual side panel.",
"mustShow": [
"focus ring",
"error or destructive state",
"dialog or sheet treatment",
"written guidance content"
],
"avoid": [
"unstyled browser controls",
"floating cards inside cards",
"missing labels"
],
"scene": {
"eyebrow": "editing flow",
"headline": "Language recipe editor",
"description": "A focused form proving labels, validation, toggles, panel rhythm, and action hierarchy.",
"primaryAction": "Save recipe",
"secondaryAction": "Open sheet",
"fields": [
{
"label": "Component family",
"value": "Narrative cards"
},
{
"label": "State treatment",
"value": "Visible focus + validation"
},
{
"label": "Motion",
"value": "Small lift, no opacity-only fade"
}
],
"statuses": [
"Focus",
"Invalid",
"Confirmed"
]
}
},
{
"id": "data-operations",
"title": "Data operations",
"viewport": "mobile",
"primitives": [
"button",
"tabs",
"badge",
"dropdown-menu",
"table",
"tooltip",
"separator"
],
"composition": "A compact operational view proving row rhythm, stacked actions, menu states, badges, and empty/destructive states.",
"mustShow": [
"responsive reflow",
"dense row styling",
"menu affordance",
"status badge system"
],
"avoid": [
"desktop-only tables",
"text overflow",
"default shadcn spacing without Katagami character"
],
"scene": {
"eyebrow": "operations",
"headline": "Compact review queue",
"description": "A narrow viewport scene with rows, menus, tooltips, badges, and destructive affordances.",
"primaryAction": "Resolve",
"secondaryAction": "Filter",
"rows": [
{
"label": "Button hierarchy",
"value": "approved",
"status": "ok"
},
{
"label": "Table rhythm",
"value": "needs pass",
"status": "watch"
},
{
"label": "Empty state",
"value": "designed",
"status": "done"
}
],
"statuses": [
"Queued",
"Blocked",
"Done"
]
}
}
],
"componentRecipes": [
{
"primitive": "button",
"intent": "Prove action hierarchy, focus, disabled, and destructive states."
},
{
"primitive": "card",
"intent": "Carry the language surface, border, elevation, and density rules."
},
{
"primitive": "input",
"intent": "Show labels, focus rings, validation, and spacing rhythm."
},
{
"primitive": "textarea",
"intent": "Show longer guidance, validation copy, and writing density."
},
{
"primitive": "select",
"intent": "Show filtering, selection contrast, and menu trigger styling."
},
{
"primitive": "dialog",
"intent": "Show centered decision states and overlay treatment."
},
{
"primitive": "sheet",
"intent": "Show contextual side panels and responsive editing."
},
{
"primitive": "tabs",
"intent": "Show navigational structure and active/inactive contrast."
},
{
"primitive": "badge",
"intent": "Show compact status vocabulary and semantic colors."
},
{
"primitive": "separator",
"intent": "Show section rhythm without generic gray dividers."
},
{
"primitive": "checkbox",
"intent": "Show binary selection with visible focus and checked states."
},
{
"primitive": "switch",
"intent": "Show settings toggles and on/off contrast."
},
{
"primitive": "slider",
"intent": "Show numeric adjustment with track/thumb styling."
},
{
"primitive": "tooltip",
"intent": "Show concise explanation styling above compact controls."
},
{
"primitive": "dropdown-menu",
"intent": "Show action menus, destructive items, and grouped choices."
},
{
"primitive": "table",
"intent": "Show dense operational data, separators, row states, and responsive behavior."
}
],
"qualityRules": {
"do": [
"Build surfaces as vertical registers ruled by ink-rails; read content downward",
"Keep the ground warm raw paper (#EDE6D6); never white, never dark",
"Reserve the crossing stroke and the cinnabar seal-bar for meaning, never edge-trim",
"Use the running-cursive hand for headings and big numerals only",
"Treat blank registers as structural negative space",
"Use brushed split-bristle bands for dividers; keep motion fast and gestural"
],
"dont": [
"Never default to a white or dark ground",
"Never put an accent edge on every card or box the nav into a pill",
"Never apply the cursive hand to body paragraphs",
"Never use flat grey rule-lines",
"Never repeat the crossing stroke until it is wallpaper — one per field",
"Never use more than three accents in one view"
]
}
}