A portable design language for agents: download the markdown first, then inspect the preview, tokens, and rules as needed.
Published
Download DESIGN.md
Portable DESIGN.md source of truth for most agents and apps.
the spec
specification
philosophy
summary
A contemplative interface language built from warm rice-paper, disciplined ink typography, severe right angles, and a single cinnabar seal. It treats empty space as the primary surface, allowing a few carefully placed controls and reading artifacts to feel rare and intentional. A faithful refinement of liu bai (留白) — leaving white.
#f4efe7 warm rice-paper void — the primary surface
card
#fbf8f2 paper panel with one hairline border and 0px radius
inset
#ece4d7 for selected rows and annotation wells
void
transparent open space; never filled to balance a grid
borders4 items
color
rgba(27,23,20,0.10)
width
1px
style
solid
radius
0px
motion3 items
duration default
200ms
easing
cubic-bezier(.2,0,.1,1)
type
opacity and weight only; no translate, scale, bounce, or parallax (except a ≤24px control-affordance slide on the switch)
rules
composition
Every screen begins as a void. Elements are placed one at a time, each earning its position. At least 70% of the viewport stays untouched warm paper. Asymmetric balance preferred; absolute alignment to an intentional grid.
hierarchy
Typography alone establishes hierarchy via dramatic 1.414 size jumps and weight variation. Colour is NOT used for hierarchy — ink-black and stone-grey only. The single cinnabar marks importance through rarity, not scale.
density
Ultra-low. Content reading column max 640px even on wide screens; the flanking void is part of the design. Lists show 4–6 items before pagination. Never fill available space.
signature
The Seal Stamp (one cinnabar mark, ≤twice per screen); The Vast Margin (640px column in clamp(24px,9vw,128px) margins); The Single Rule (one 1px hairline divider with 64px+ breathing room); The Ink Drop (opacity/weight-only interaction); The Empty Scroll (absence as the natural state).
layout
grid
Single reading column (max-width 640px), wider 980–1080px only for masthead, card grids, and the full-bleed hero. minmax(0,1fr) columns with min-width:0 so grids never overflow.
whitespace
Whitespace is the primary compositional material; void-to-content ratio never below 70% on desktop. Section separation clamp(72px,12vw,150px); element isolation 64px.
density
ultra-low
responsive
Renders well from ~390px mobile to 2560px+ ultra-wide. Mobile stacks to a single column, margins collapse, never overflows horizontally; the hero gradient flips to vertical for legibility. Ultra-wide caps and centres contained content; only the hero spans 100vw.
breakpoints
mobile
max639px·columns1·margin24px·section gap72px
tablet
min640px·max1023px·columns1·margin64px
desktop
min1024px·columns1·content width640px·margin128px
guidance
do
Leave at least 70% of the viewport as intentional warm-paper void
Use the 1.414 type scale to create clear strata without colour cues
Place the cinnabar sparingly — at most twice per screen, like a seal on a painting
Use sharp 0px corners everywhere — precision over friendliness
Separate sections with a single 1px hairline rule and generous breathing room
Use opacity and weight transitions only (200ms) — no spatial movement
Keep content in a narrow reading column with vast flanking margins
Embrace empty states — the blank scroll is the natural condition
Let the settled page render with no JavaScript; layer motion on top
Keep the masthead nav open across the header — never a pill or floating card
avoid
Never use border-radius on surfaces — corners are square
Never fill available space to balance a grid
Never use colour for hierarchy — ink and stone only
Never give a card a single accent edge, and never nest cards
Never use spatial animations (slides, scales, bounces) on content
Never stack dividers or use heavy borders
Never add shadows beyond the barely-perceptible ink lift
Never use the cinnabar for large areas — it is a dot, a stamp, a mark
Never centre body text — left-aligned for reading
Never put emoji or glyph symbols on buttons or in copy
imagery
pairs with
cinnabar-seal
summary
Liu-bai ink-wash (shuimo) imagery: a single subject built from a few confident graded sumi brushstrokes, anchored off-center against a vast untouched warm rice-paper void, with one cinnabar seal in a corner. Monochrome ink; the paper supplies the only warmth.
subjects
a mountain peak through mista single bird on a brancha reed at the water's edgea solitary boata calligraphic stroke
usage
Use full-bleed for the landing hero with the subject anchored to one side so the opposite void carries the headline overlay. Keep at least ~65–70% of every frame as untouched warm paper.
engine hints
hero generator
nano-banana-pro
model
gemini-3-pro-image-preview
provider
google
tool
nano-banana-pro MCP
fallback reason
openai-image gpt-image-2 returned 400 Billing hard limit has been reached; fell back to nano-banana-pro per task instruction
katagami spec
# Yìn
## Philosophy
A contemplative interface language built from warm rice-paper, disciplined ink typography, severe right angles, and a single cinnabar seal. It treats empty space as the primary surface, allowing a few carefully placed controls and reading artifacts to feel rare and intentional. A faithful refinement of liu bai (留白) — leaving white.
### Values
- intentional emptiness
- typographic solitude
- paper warmth
- cinnabar restraint
- sharp formal discipline
- slow attentive reading
### Anti-Values
- decorative filling
- dashboard density
- rounded friendliness
- chromatic hierarchy
- bouncy motion
## Tokens
### Colors
| Name | Value |
|------|-------|
| bg | `#f4efe7` |
| surface | `#fbf8f2` |
| surface_alt | `#ece4d7` |
| text | `#1b1714` |
| muted | `#8a8076` |
| border | `rgba(27,23,20,0.10)` |
| accent | `#b4332a` |
| accent_light | `rgba(180,51,42,0.10)` |
| on_accent | `#fbf8f2` |
| success | `#5f6f52` |
| warning | `#b07d2b` |
| error | `#b4332a` |
| info | `#4a5a6a` |
### Typography
- **Base Size**: 18px
- **Body Font**: Source Sans 3, system-ui, sans-serif
- **Heading Font**: Noto Serif SC, serif
- **Mono Font**: IBM Plex Mono, ui-monospace, monospace
- **Heading Weight**: 500
- **Heading Transform**: none
- **Letter Spacing**: -0.03em headings, -0.01em body
- **Scale Ratio**: 1.414
- **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&family=Source+Sans+3:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap
### Radii
- **None**: 0px
- **Sm**: 0px
- **Md**: 0px
- **Lg**: 0px
- **Pill**: 9999px (control affordances only)
### Shadows
- **None**: none
- **Subtle**: 0 1px 2px rgba(27,23,20,0.025)
- **Default**: 0 1px 2px rgba(27,23,20,0.025)
### Spacing
- **Base**: 8px
- **Scale**: ["4px","8px","16px","32px","64px","96px","128px"]
### Surfaces
- **Paper**: #f4efe7 warm rice-paper void — the primary surface
- **Card**: #fbf8f2 paper panel with one hairline border and 0px radius
- **Inset**: #ece4d7 for selected rows and annotation wells
- **Void**: transparent open space; never filled to balance a grid
### Borders
- **Color**: rgba(27,23,20,0.10)
- **Width**: 1px
- **Style**: solid
- **Radius**: 0px
### Motion
- **Duration Default**: 200ms
- **Easing**: cubic-bezier(.2,0,.1,1)
- **Type**: opacity and weight only; no translate, scale, bounce, or parallax (except a ≤24px control-affordance slide on the switch)
## Rules
### Composition
Every screen begins as a void. Elements are placed one at a time, each earning its position. At least 70% of the viewport stays untouched warm paper. Asymmetric balance preferred; absolute alignment to an intentional grid.
### Hierarchy
Typography alone establishes hierarchy via dramatic 1.414 size jumps and weight variation. Colour is NOT used for hierarchy — ink-black and stone-grey only. The single cinnabar marks importance through rarity, not scale.
### Density
Ultra-low. Content reading column max 640px even on wide screens; the flanking void is part of the design. Lists show 4–6 items before pagination. Never fill available space.
### Signature
The Seal Stamp (one cinnabar mark, ≤twice per screen); The Vast Margin (640px column in clamp(24px,9vw,128px) margins); The Single Rule (one 1px hairline divider with 64px+ breathing room); The Ink Drop (opacity/weight-only interaction); The Empty Scroll (absence as the natural state).
## Layout
### Grid
Single reading column (max-width 640px), wider 980–1080px only for masthead, card grids, and the full-bleed hero. minmax(0,1fr) columns with min-width:0 so grids never overflow.
### Whitespace
Whitespace is the primary compositional material; void-to-content ratio never below 70% on desktop. Section separation clamp(72px,12vw,150px); element isolation 64px.
### Density
ultra-low
### Responsive
Renders well from ~390px mobile to 2560px+ ultra-wide. Mobile stacks to a single column, margins collapse, never overflows horizontally; the hero gradient flips to vertical for legibility. Ultra-wide caps and centres contained content; only the hero spans 100vw.
### Breakpoints
- **Mobile**: {"max":"639px","columns":1,"margin":"24px","section_gap":"72px"}
- **Tablet**: {"min":"640px","max":"1023px","columns":1,"margin":"64px"}
- **Desktop**: {"min":"1024px","columns":1,"content_width":"640px","margin":"128px"}
## Guidance
### Do
- Leave at least 70% of the viewport as intentional warm-paper void
- Use the 1.414 type scale to create clear strata without colour cues
- Place the cinnabar sparingly — at most twice per screen, like a seal on a painting
- Use sharp 0px corners everywhere — precision over friendliness
- Separate sections with a single 1px hairline rule and generous breathing room
- Use opacity and weight transitions only (200ms) — no spatial movement
- Keep content in a narrow reading column with vast flanking margins
- Embrace empty states — the blank scroll is the natural condition
- Let the settled page render with no JavaScript; layer motion on top
- Keep the masthead nav open across the header — never a pill or floating card
### Don't
- Never use border-radius on surfaces — corners are square
- Never fill available space to balance a grid
- Never use colour for hierarchy — ink and stone only
- Never give a card a single accent edge, and never nest cards
- Never use spatial animations (slides, scales, bounces) on content
- Never stack dividers or use heavy borders
- Never add shadows beyond the barely-perceptible ink lift
- Never use the cinnabar for large areas — it is a dot, a stamp, a mark
- Never centre body text — left-aligned for reading
- Never put emoji or glyph symbols on buttons or in copy
### Accessibility
Sumi ink (#1b1714) on warm paper (#f4efe7) exceeds WCAG AAA. Touch targets 44px+, body 17–18px, generous line-height. Every form control is explicitly styled with a visible 2px ink focus ring. Motion respects prefers-reduced-motion; the no-JS render is the finished page.
## Imagery Direction
### Pairs With
cinnabar-seal
### Summary
Liu-bai ink-wash (shuimo) imagery: a single subject built from a few confident graded sumi brushstrokes, anchored off-center against a vast untouched warm rice-paper void, with one cinnabar seal in a corner. Monochrome ink; the paper supplies the only warmth.
### Subjects
- a mountain peak through mist
- a single bird on a branch
- a reed at the water's edge
- a solitary boat
- a calligraphic stroke
### Usage
Use full-bleed for the landing hero with the subject anchored to one side so the opposite void carries the headline overlay. Keep at least ~65–70% of every frame as untouched warm paper.
### Engine Hints
- **Hero Generator**: nano-banana-pro
- **Model**: gemini-3-pro-image-preview
- **Provider**: google
- **Tool**: nano-banana-pro MCP
- **Fallback Reason**: openai-image gpt-image-2 returned 400 Billing hard limit has been reached; fell back to nano-banana-pro per task instruction
DESIGN.md
---
version: "alpha"
name: "Yìn"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
bg: "#f4efe7"
surface: "#fbf8f2"
surface_alt: "#ece4d7"
text: "#1b1714"
muted: "#8a8076"
accent: "#b4332a"
on_accent: "#fbf8f2"
success: "#5f6f52"
warning: "#b07d2b"
error: "#b4332a"
info: "#4a5a6a"
typography:
headline-lg:
fontFamily: "Noto Serif SC, serif"
fontSize: "3.181rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
headline-md:
fontFamily: "Noto Serif SC, serif"
fontSize: "2.249rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.02em"
body-md:
fontFamily: "Source Sans 3, system-ui, sans-serif"
fontSize: "18px"
fontWeight: 400
lineHeight: 1.5
letterSpacing: "-0.02em"
label-md:
fontFamily: "IBM Plex Mono, ui-monospace, monospace"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
none: "0px"
sm: "0px"
md: "0px"
lg: "0px"
pill: "0px"
spacing:
base: "8px"
xs: "4px"
sm: "8px"
md: "16px"
lg: "32px"
xl: "64px"
2xl: "96px"
3xl: "128px"
components:
color-reference-bg:
backgroundColor: "{colors.bg}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-surface_alt:
backgroundColor: "{colors.surface_alt}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-on_accent:
backgroundColor: "{colors.on_accent}"
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.md}"
padding: "{spacing.md}"
card-surface:
backgroundColor: "{colors.surface}"
textColor: "{colors.text}"
rounded: "{rounded.md}"
padding: "{spacing.md}"
input-default:
backgroundColor: "{colors.surface}"
textColor: "{colors.text}"
rounded: "{rounded.md}"
height: "44px"
---
# Yìn
## Overview
A contemplative interface language built from warm rice-paper, disciplined ink typography, severe right angles, and a single cinnabar seal. It treats empty space as the primary surface, allowing a few carefully placed controls and reading artifacts to feel rare and intentional. A faithful refinement of liu bai (留白) — leaving white.
### Values
- intentional emptiness
- typographic solitude
- paper warmth
- cinnabar restraint
- sharp formal discipline
- slow attentive reading
### Anti-Values
- decorative filling
- dashboard density
- rounded friendliness
- chromatic hierarchy
- bouncy motion
## 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 | `#f4efe7` |
| surface | `#fbf8f2` |
| surface_alt | `#ece4d7` |
| text | `#1b1714` |
| muted | `#8a8076` |
| accent | `#b4332a` |
| on_accent | `#fbf8f2` |
| success | `#5f6f52` |
| warning | `#b07d2b` |
| error | `#b4332a` |
| info | `#4a5a6a` |
## Typography
- **Headline-Lg**: Noto Serif SC, serif, 3.181rem, weight 700, line-height 1.1.
- **Headline-Md**: Noto Serif SC, serif, 2.249rem, weight 600, line-height 1.15.
- **Body-Md**: Source Sans 3, system-ui, sans-serif, 18px, weight 400, line-height 1.5.
- **Label-Md**: IBM Plex Mono, ui-monospace, monospace, 0.75rem, weight 600, line-height 1.
## Layout
### Spacing Tokens
- **Base**: `8px`
- **Xs**: `4px`
- **Sm**: `8px`
- **Md**: `16px`
- **Lg**: `32px`
- **Xl**: `64px`
- **2xl**: `96px`
- **3xl**: `128px`
### Grid
Single reading column (max-width 640px), wider 980–1080px only for masthead, card grids, and the full-bleed hero. minmax(0,1fr) columns with min-width:0 so grids never overflow.
### Whitespace
Whitespace is the primary compositional material; void-to-content ratio never below 70% on desktop. Section separation clamp(72px,12vw,150px); element isolation 64px.
### Density
ultra-low
### Responsive
Renders well from ~390px mobile to 2560px+ ultra-wide. Mobile stacks to a single column, margins collapse, never overflows horizontally; the hero gradient flips to vertical for legibility. Ultra-wide caps and centres contained content; only the hero spans 100vw.
### Breakpoints
- **Mobile**: {"max":"639px","columns":1,"margin":"24px","section_gap":"72px"}
- **Tablet**: {"min":"640px","max":"1023px","columns":1,"margin":"64px"}
- **Desktop**: {"min":"1024px","columns":1,"content_width":"640px","margin":"128px"}
## Elevation & Depth
### Shadows
- **None**: none
- **Subtle**: 0 1px 2px rgba(27,23,20,0.025)
- **Default**: 0 1px 2px rgba(27,23,20,0.025)
## Shapes
### Rounded
- **None**: `0px`
- **Sm**: `0px`
- **Md**: `0px`
- **Lg**: `0px`
- **Pill**: `0px`
### Surfaces
- **Paper**: #f4efe7 warm rice-paper void — the primary surface
- **Card**: #fbf8f2 paper panel with one hairline border and 0px radius
- **Inset**: #ece4d7 for selected rows and annotation wells
- **Void**: transparent open space; never filled to balance a grid
### Borders
- **Color**: rgba(27,23,20,0.10)
- **Width**: 1px
- **Style**: solid
- **Radius**: 0px
## Components
### Composition
Every screen begins as a void. Elements are placed one at a time, each earning its position. At least 70% of the viewport stays untouched warm paper. Asymmetric balance preferred; absolute alignment to an intentional grid.
### Hierarchy
Typography alone establishes hierarchy via dramatic 1.414 size jumps and weight variation. Colour is NOT used for hierarchy — ink-black and stone-grey only. The single cinnabar marks importance through rarity, not scale.
### Density
Ultra-low. Content reading column max 640px even on wide screens; the flanking void is part of the design. Lists show 4–6 items before pagination. Never fill available space.
### Signature
The Seal Stamp (one cinnabar mark, ≤twice per screen); The Vast Margin (640px column in clamp(24px,9vw,128px) margins); The Single Rule (one 1px hairline divider with 64px+ breathing room); The Ink Drop (opacity/weight-only interaction); The Empty Scroll (absence as the natural state).
## 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-019ef910-c700-7a21-be98-022821c835a5/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 Leave at least 70% of the viewport as intentional warm-paper void
- Do Use the 1.414 type scale to create clear strata without colour cues
- Do Place the cinnabar sparingly — at most twice per screen, like a seal on a painting
- Do Use sharp 0px corners everywhere — precision over friendliness
- Do Separate sections with a single 1px hairline rule and generous breathing room
- Do Use opacity and weight transitions only (200ms) — no spatial movement
- Do Keep content in a narrow reading column with vast flanking margins
- Do Embrace empty states — the blank scroll is the natural condition
- Do Let the settled page render with no JavaScript; layer motion on top
- Do Keep the masthead nav open across the header — never a pill or floating card
- Don't Never use border-radius on surfaces — corners are square
- Don't Never fill available space to balance a grid
- Don't Never use colour for hierarchy — ink and stone only
- Don't Never give a card a single accent edge, and never nest cards
- Don't Never use spatial animations (slides, scales, bounces) on content
- Don't Never stack dividers or use heavy borders
- Don't Never add shadows beyond the barely-perceptible ink lift
- Don't Never use the cinnabar for large areas — it is a dot, a stamp, a mark
- Don't Never centre body text — left-aligned for reading
- Don't Never put emoji or glyph symbols on buttons or in copy
### Accessibility
Sumi ink (#1b1714) on warm paper (#f4efe7) exceeds WCAG AAA. Touch targets 44px+, body 17–18px, generous line-height. Every form control is explicitly styled with a visible 2px ink focus ring. Motion respects prefers-reduced-motion; the no-JS render is the finished page.
## Imagery Direction
### Pairs With
cinnabar-seal
### Summary
Liu-bai ink-wash (shuimo) imagery: a single subject built from a few confident graded sumi brushstrokes, anchored off-center against a vast untouched warm rice-paper void, with one cinnabar seal in a corner. Monochrome ink; the paper supplies the only warmth.
### Subjects
- a mountain peak through mist
- a single bird on a branch
- a reed at the water's edge
- a solitary boat
- a calligraphic stroke
### Usage
Use full-bleed for the landing hero with the subject anchored to one side so the opposite void carries the headline overlay. Keep at least ~65–70% of every frame as untouched warm paper.
### Engine Hints
- **Hero Generator**: nano-banana-pro
- **Model**: gemini-3-pro-image-preview
- **Provider**: google
- **Tool**: nano-banana-pro MCP
- **Fallback Reason**: openai-image gpt-image-2 returned 400 Billing hard limit has been reached; fell back to nano-banana-pro per task instruction
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.
# Yìn shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019ef910-c700-7a21-be98-022821c835a5`
Slug: `yin-margin-reading-room`
## Intent
A contemplative interface language built from warm rice-paper, disciplined ink typography, severe right angles, and a single cinnabar seal. It treats empty space as the primary surface, allowing a few carefully placed controls and reading artifacts to feel rare and intentional. A faithful refinement of liu bai (留白) — leaving white.
## 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": "#f4efe7",
"surface": "#fbf8f2",
"surface_alt": "#ece4d7",
"text": "#1b1714",
"muted": "#8a8076",
"border": "rgba(27,23,20,0.10)",
"accent": "#b4332a",
"accent_light": "rgba(180,51,42,0.10)",
"on_accent": "#fbf8f2",
"success": "#5f6f52",
"warning": "#b07d2b",
"error": "#b4332a",
"info": "#4a5a6a"
}
Typography:
{
"base_size": "18px",
"body_font": "Source Sans 3, system-ui, sans-serif",
"heading_font": "Noto Serif SC, serif",
"mono_font": "IBM Plex Mono, ui-monospace, monospace",
"heading_weight": "500",
"heading_transform": "none",
"letter_spacing": "-0.03em headings, -0.01em body",
"scale_ratio": 1.414,
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&family=Source+Sans+3:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap"
}
## Visual character to preserve
- Make the source language's structural identity visible in every component state.
## ShadSync visual profile
{
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": true,
"stickerBadges": false,
"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/yin-margin-reading-room/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: Leave at least 70% of the viewport as intentional warm-paper void; Use the 1.414 type scale to create clear strata without colour cues; Place the cinnabar sparingly — at most twice per screen, like a seal on a painting; Use sharp 0px corners everywhere — precision over friendliness; Separate sections with a single 1px hairline rule and generous breathing room; Use opacity and weight transitions only (200ms) — no spatial movement; Keep content in a narrow reading column with vast flanking margins; Embrace empty states — the blank scroll is the natural condition; Let the settled page render with no JavaScript; layer motion on top; Keep the masthead nav open across the header — never a pill or floating card
- Do not: Never use border-radius on surfaces — corners are square; Never fill available space to balance a grid; Never use colour for hierarchy — ink and stone only; Never give a card a single accent edge, and never nest cards; Never use spatial animations (slides, scales, bounces) on content; Never stack dividers or use heavy borders; Never add shadows beyond the barely-perceptible ink lift; Never use the cinnabar for large areas — it is a dot, a stamp, a mark; Never centre body text — left-aligned for reading; Never put emoji or glyph symbols on buttons or in copy
## 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 YNShadcnKit() {
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">Yìn</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": "Single reading column (max-width 640px), wider 980–1080px only for masthead, card grids, and the full-bleed hero. minmax(0,1fr) columns with min-width:0 so grids never overflow.",
"whitespace": "Whitespace is the primary compositional material; void-to-content ratio never below 70% on desktop. Section separation clamp(72px,12vw,150px); element isolation 64px.",
"density": "ultra-low",
"responsive": "Renders well from ~390px mobile to 2560px+ ultra-wide. Mobile stacks to a single column, margins collapse, never overflows horizontally; the hero gradient flips to vertical for legibility. Ultra-wide caps and centres contained content; only the hero spans 100vw.",
"breakpoints": {
"mobile": {
"max": "639px",
"columns": 1,
"margin": "24px",
"section_gap": "72px"
},
"tablet": {
"min": "640px",
"max": "1023px",
"columns": 1,
"margin": "64px"
},
"desktop": {
"min": "1024px",
"columns": 1,
"content_width": "640px",
"margin": "128px"
}
}
}
preview shotscompatibility fallback
{
"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-019ef910-c700-7a21-be98-022821c835a5",
"name": "Yìn",
"slug": "yin-margin-reading-room"
},
"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": [],
"visualProfile": {
"family": "system",
"material": "flat",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": false,
"stickerBadges": false,
"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": "Yìn 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": [
"Leave at least 70% of the viewport as intentional warm-paper void",
"Use the 1.414 type scale to create clear strata without colour cues",
"Place the cinnabar sparingly — at most twice per screen, like a seal on a painting",
"Use sharp 0px corners everywhere — precision over friendliness",
"Separate sections with a single 1px hairline rule and generous breathing room",
"Use opacity and weight transitions only (200ms) — no spatial movement",
"Keep content in a narrow reading column with vast flanking margins",
"Embrace empty states — the blank scroll is the natural condition",
"Let the settled page render with no JavaScript; layer motion on top",
"Keep the masthead nav open across the header — never a pill or floating card"
],
"dont": [
"Never use border-radius on surfaces — corners are square",
"Never fill available space to balance a grid",
"Never use colour for hierarchy — ink and stone only",
"Never give a card a single accent edge, and never nest cards",
"Never use spatial animations (slides, scales, bounces) on content",
"Never stack dividers or use heavy borders",
"Never add shadows beyond the barely-perceptible ink lift",
"Never use the cinnabar for large areas — it is a dot, a stamp, a mark",
"Never centre body text — left-aligned for reading",
"Never put emoji or glyph symbols on buttons or in copy"
]
}
}