Katagami
A portable design language for agents: download the markdown first, then inspect the preview, tokens, and rules as needed.
Download DESIGN.md
Portable DESIGN.md source of truth for most agents and apps.
specification
philosophy
tokens
borders3 items
- hairline
- 1px solid rgba(30,78,95,.32)
- seal
- 2px solid #B7472A, rounded 6px, stamped slightly off axis
- stencil rule
- 2px solid #1E4E5F with alternating 8px perforation marks
colors12 items
motion3 items
- duration
- 180ms
- easing
- cubic-bezier(.2,.7,.2,1)
- principle
- short paper-lift translations of 2-4px; patterns should fade or slide gently, never spin or shimmer continuously
opacity3 items
- disabled
- .42
- pattern overlay
- .16
- wash
- 0.72
radii5 items
- lg
- 14px
- md
- 6px
- none
- 0px
- pill
- 999px
- sm
- 2px
shadows3 items
- inset cut
- inset 0 0 0 1px rgba(30,78,95,0.22)
- paper lift
- 0 14px 35px rgba(23,33,38,0.12)
- red seal
- 0 8px 18px rgba(183,71,42,0.25)
spacing7 items
- lg
- 24px
- md
- 16px
- sm
- 8px
- unit
- 8px
- xl
- 40px
- xs
- 4px
- xxl
- 64px
surfaces3 items
- cutout card
- paper colored card with clipped corner notches, 1px indigo border, and patterned pseudo-element edge
- indigo field
- background:#1E4E5F with mask-like cream pattern overlays and no glossy gradients
- washi panel
- background:#FFF9EC; background-image:radial-gradient(rgba(47,74,69,.08) 1px, transparent 1px); background-size:14px 14px;
typography5 items
- body font
- Inter
- google fonts url
- https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&family=IBM+Plex+Mono:wght@500&display=swap
- heading font
- Noto Serif JP
- mono font
- IBM Plex Mono
- scale
- 1.25 modular scale with compact labels and high-contrast serif headings
rules
Build screens as a workshop table: large washi sheet, offset stencil fragments, one red registration seal, and measured columns aligned to an 8px grid.
layout
Medium-low density: wide margins, compact control groups, and large breathing room around patterned panels.
12-column desktop grid with 24px gutters; collapse to 4 columns on mobile while preserving 8px baseline rhythm.
At small widths, pattern fields become header/footer bands and cards stack with full-width controls; never shrink typography below 14px.
Use negative space as an active material, with 40-64px section gaps on desktop and 24px on mobile.
guidance
- Use authentic stencil motifs as structural dividers, hero panels, and navigation rails with clear CSS implementation.
- Keep body text on quiet paper or cream surfaces with contrast ratios above WCAG AA.
- Apply red oxide accents sparingly as stamped confirmations, status marks, or one primary call to action.
- Do not cover dense text with busy pattern overlays or low-contrast indigo-on-brown combinations.
- Do not use glossy glassmorphism, neon gradients, or generic rounded SaaS cards that erase the cut-paper identity.
- Do not animate patterns continuously; motion should feel like lifting or placing paper, not digital sparkle.
imagery
A desktop composition of layered katagami sheets, carved wave and hemp-leaf motifs, tools, and a modern UI panel emerging from the stencil.
Single-weight indigo line icons with occasional squared cutouts and tiny red seal dots.
Flat cut-paper illustrations with visible stencil gaps, indigo ink fields, cream reserves, and red registration stamps.
generative
Deterministic and restrained; hover states lift paper layers and reveal cut patterns with short eased transitions.
katagami spec
# Katagami ## Philosophy ### Values - precision through patterned repetition - hand-cut warmth balanced with rigorous modularity - quiet negative space that lets the cut forms breathe ### Anti-Values - generic flat minimalism - ornament without structure - low-contrast decorative noise ### Visual Character - Layered paper surfaces use #F7F1E3 and #D8C7A3 with subtle fiber noise, giving every panel the tactile feel of carved washi rather than a flat white card. - Signature stencil cuts appear as repeating arcs, hemp-leaf diamonds, and wave perforations built with CSS masks, clipped pseudo-elements, and thin #1E4E5F indigo keylines. - Compositions rely on generous negative space, asymmetrical margins, and precise 8px-grid alignment so decorative pattern fields feel calm, legible, and intentionally handmade. ## Tokens ### Borders - **Hairline**: 1px solid rgba(30,78,95,.32) - **Seal**: 2px solid #B7472A, rounded 6px, stamped slightly off axis - **Stencil Rule**: 2px solid #1E4E5F with alternating 8px perforation marks ### Colors | Name | Value | |------|-------| | accent | `#C89B3C` | | border | `#2F4A45` | | danger | `#A43B32` | | ink | `#172126` | | muted | `#8E7B5E` | | paper | `#F7F1E3` | | primary | `#1E4E5F` | | primary_dark | `#143642` | | secondary | `#B7472A` | | success | `#4D7C59` | | surface | `#FFF9EC` | | surface_alt | `#E9D9B7` | ### Motion - **Duration**: 180ms - **Easing**: cubic-bezier(.2,.7,.2,1) - **Principle**: short paper-lift translations of 2-4px; patterns should fade or slide gently, never spin or shimmer continuously ### Opacity - **Disabled**: .42 - **Pattern Overlay**: .16 - **Wash**: 0.72 ### Radii - **Lg**: 14px - **Md**: 6px - **None**: 0px - **Pill**: 999px - **Sm**: 2px ### Shadows - **Inset Cut**: inset 0 0 0 1px rgba(30,78,95,0.22) - **Paper Lift**: 0 14px 35px rgba(23,33,38,0.12) - **Red Seal**: 0 8px 18px rgba(183,71,42,0.25) ### Spacing - **Lg**: 24px - **Md**: 16px - **Sm**: 8px - **Unit**: 8px - **Xl**: 40px - **Xs**: 4px - **Xxl**: 64px ### Surfaces - **Cutout Card**: paper colored card with clipped corner notches, 1px indigo border, and patterned pseudo-element edge - **Indigo Field**: background:#1E4E5F with mask-like cream pattern overlays and no glossy gradients - **Washi Panel**: background:#FFF9EC; background-image:radial-gradient(rgba(47,74,69,.08) 1px, transparent 1px); background-size:14px 14px; ### Typography - **Body Font**: Inter - **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&family=IBM+Plex+Mono:wght@500&display=swap - **Heading Font**: Noto Serif JP - **Mono Font**: IBM Plex Mono - **Scale**: 1.25 modular scale with compact labels and high-contrast serif headings ## Rules ### Components - Buttons are rectangular paper tabs with indigo borders, red seal accent on primary actions, and a 2px lift on hover. - Cards look like layered stencil sheets: warm paper background, clipped or notched corners, patterned edge strip, and precise 16px internal rhythm. - Forms use explicit cream fields, indigo focus outlines, serif legends, and small mono helper labels; never leave browser-default controls. ### Composition Build screens as a workshop table: large washi sheet, offset stencil fragments, one red registration seal, and measured columns aligned to an 8px grid. ### Signature Patterns - Use CSS mask-image or repeating-linear-gradient to carve cream negative-space motifs out of indigo blocks, especially waves, arcs, and asanoha diamond grids. - Frame important content with stencil rails: 1px indigo rules plus evenly spaced square perforations created by pseudo-elements on the top or left edge. - Pair every decorative pattern field with a quiet paper area of at least equal visual weight so ornament supports hierarchy rather than competing with text. ## Layout ### Density Medium-low density: wide margins, compact control groups, and large breathing room around patterned panels. ### Grid 12-column desktop grid with 24px gutters; collapse to 4 columns on mobile while preserving 8px baseline rhythm. ### Responsive At small widths, pattern fields become header/footer bands and cards stack with full-width controls; never shrink typography below 14px. ### Whitespace Use negative space as an active material, with 40-64px section gaps on desktop and 24px on mobile. ## Guidance ### Do - Use authentic stencil motifs as structural dividers, hero panels, and navigation rails with clear CSS implementation. - Keep body text on quiet paper or cream surfaces with contrast ratios above WCAG AA. - Apply red oxide accents sparingly as stamped confirmations, status marks, or one primary call to action. ### Don't - Do not cover dense text with busy pattern overlays or low-contrast indigo-on-brown combinations. - Do not use glossy glassmorphism, neon gradients, or generic rounded SaaS cards that erase the cut-paper identity. - Do not animate patterns continuously; motion should feel like lifting or placing paper, not digital sparkle. ### Accessibility Maintain at least 4.5:1 text contrast, provide visible indigo focus rings, avoid pattern behind paragraphs, honor prefers-reduced-motion, and pair color status with labels/icons. ### Usage Context Best for craft, cultural archives, boutique commerce, design tools, editorial storytelling, and interfaces that need meticulous pattern-rich warmth. ## Imagery Direction ### Hero Image Direction A desktop composition of layered katagami sheets, carved wave and hemp-leaf motifs, tools, and a modern UI panel emerging from the stencil. ### Icon Style Single-weight indigo line icons with occasional squared cutouts and tiny red seal dots. ### Illustration Style Flat cut-paper illustrations with visible stencil gaps, indigo ink fields, cream reserves, and red registration stamps. ### Image Gen Prompts - Katagami stencil paper interface, indigo and warm cream palette, carved Japanese textile patterns, modern web UI, tactile washi texture, editorial lighting ## Generative Canvas ### Animation Philosophy Deterministic and restrained; hover states lift paper layers and reveal cut patterns with short eased transitions. ### Shader Palette - #1E4E5F - #F7F1E3 - #B7472A - #C89B3C ### Techniques - CSS masks - repeating-linear-gradients - clip-path notches - subtle procedural paper grain
DESIGN.md
---
version: "alpha"
name: "Katagami"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
accent: "#C89B3C"
border: "#2F4A45"
danger: "#A43B32"
ink: "#172126"
muted: "#8E7B5E"
paper: "#F7F1E3"
primary: "#1E4E5F"
primary_dark: "#143642"
secondary: "#B7472A"
success: "#4D7C59"
surface: "#FFF9EC"
surface_alt: "#E9D9B7"
typography:
headline-lg:
fontFamily: "Noto Serif JP"
fontSize: "1.953rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
headline-md:
fontFamily: "Noto Serif JP"
fontSize: "1.563rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.02em"
body-md:
fontFamily: "Inter"
fontSize: "16px"
fontWeight: 400
lineHeight: 1.5
letterSpacing: "-0.02em"
label-md:
fontFamily: "IBM Plex Mono"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
lg: "14px"
md: "6px"
none: "0px"
pill: "999px"
sm: "2px"
spacing:
lg: "24px"
md: "16px"
sm: "8px"
unit: "8px"
xl: "40px"
xs: "4px"
xxl: "64px"
components:
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-danger:
backgroundColor: "{colors.danger}"
color-reference-ink:
backgroundColor: "{colors.ink}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-paper:
backgroundColor: "{colors.paper}"
color-reference-primary:
backgroundColor: "{colors.primary}"
color-reference-primary_dark:
backgroundColor: "{colors.primary_dark}"
color-reference-secondary:
backgroundColor: "{colors.secondary}"
color-reference-success:
backgroundColor: "{colors.success}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-surface_alt:
backgroundColor: "{colors.surface_alt}"
button-primary:
backgroundColor: "{colors.primary}"
textColor: "#ffffff"
typography: "{typography.label-md}"
rounded: "{rounded.md}"
padding: "{spacing.md}"
card-surface:
backgroundColor: "{colors.surface}"
textColor: "{colors.primary}"
rounded: "{rounded.md}"
padding: "{spacing.md}"
input-default:
backgroundColor: "{colors.surface}"
textColor: "{colors.primary}"
rounded: "{rounded.md}"
height: "44px"
---
# Katagami
## Overview
Katagami is an agent-curated design language from Katagami.
### Values
- precision through patterned repetition
- hand-cut warmth balanced with rigorous modularity
- quiet negative space that lets the cut forms breathe
### Anti-Values
- generic flat minimalism
- ornament without structure
- low-contrast decorative noise
### Visual Character
- Layered paper surfaces use #F7F1E3 and #D8C7A3 with subtle fiber noise, giving every panel the tactile feel of carved washi rather than a flat white card.
- Signature stencil cuts appear as repeating arcs, hemp-leaf diamonds, and wave perforations built with CSS masks, clipped pseudo-elements, and thin #1E4E5F indigo keylines.
- Compositions rely on generous negative space, asymmetrical margins, and precise 8px-grid alignment so decorative pattern fields feel calm, legible, and intentionally handmade.
## Colors
Use the YAML color tokens as the normative palette. The prose below names the roles agents should preserve when generating UI.
| Token | Value |
|-------|-------|
| accent | `#C89B3C` |
| border | `#2F4A45` |
| danger | `#A43B32` |
| ink | `#172126` |
| muted | `#8E7B5E` |
| paper | `#F7F1E3` |
| primary | `#1E4E5F` |
| primary_dark | `#143642` |
| secondary | `#B7472A` |
| success | `#4D7C59` |
| surface | `#FFF9EC` |
| surface_alt | `#E9D9B7` |
## Typography
- **Headline-Lg**: Noto Serif JP, 1.953rem, weight 700, line-height 1.1.
- **Headline-Md**: Noto Serif JP, 1.563rem, weight 600, line-height 1.15.
- **Body-Md**: Inter, 16px, weight 400, line-height 1.5.
- **Label-Md**: IBM Plex Mono, 0.75rem, weight 600, line-height 1.
## Layout
### Spacing Tokens
- **Lg**: `24px`
- **Md**: `16px`
- **Sm**: `8px`
- **Unit**: `8px`
- **Xl**: `40px`
- **Xs**: `4px`
- **Xxl**: `64px`
### Density
Medium-low density: wide margins, compact control groups, and large breathing room around patterned panels.
### Grid
12-column desktop grid with 24px gutters; collapse to 4 columns on mobile while preserving 8px baseline rhythm.
### Responsive
At small widths, pattern fields become header/footer bands and cards stack with full-width controls; never shrink typography below 14px.
### Whitespace
Use negative space as an active material, with 40-64px section gaps on desktop and 24px on mobile.
## Elevation & Depth
### Shadows
- **Inset Cut**: inset 0 0 0 1px rgba(30,78,95,0.22)
- **Paper Lift**: 0 14px 35px rgba(23,33,38,0.12)
- **Red Seal**: 0 8px 18px rgba(183,71,42,0.25)
## Shapes
### Rounded
- **Lg**: `14px`
- **Md**: `6px`
- **None**: `0px`
- **Pill**: `999px`
- **Sm**: `2px`
### Surfaces
- **Cutout Card**: paper colored card with clipped corner notches, 1px indigo border, and patterned pseudo-element edge
- **Indigo Field**: background:#1E4E5F with mask-like cream pattern overlays and no glossy gradients
- **Washi Panel**: background:#FFF9EC; background-image:radial-gradient(rgba(47,74,69,.08) 1px, transparent 1px); background-size:14px 14px;
### Borders
- **Hairline**: 1px solid rgba(30,78,95,.32)
- **Seal**: 2px solid #B7472A, rounded 6px, stamped slightly off axis
- **Stencil Rule**: 2px solid #1E4E5F with alternating 8px perforation marks
## Components
### Components
- Buttons are rectangular paper tabs with indigo borders, red seal accent on primary actions, and a 2px lift on hover.
- Cards look like layered stencil sheets: warm paper background, clipped or notched corners, patterned edge strip, and precise 16px internal rhythm.
- Forms use explicit cream fields, indigo focus outlines, serif legends, and small mono helper labels; never leave browser-default controls.
### Composition
Build screens as a workshop table: large washi sheet, offset stencil fragments, one red registration seal, and measured columns aligned to an 8px grid.
### Signature Patterns
- Use CSS mask-image or repeating-linear-gradient to carve cream negative-space motifs out of indigo blocks, especially waves, arcs, and asanoha diamond grids.
- Frame important content with stencil rails: 1px indigo rules plus evenly spaced square perforations created by pseudo-elements on the top or left edge.
- Pair every decorative pattern field with a quiet paper area of at least equal visual weight so ornament supports hierarchy rather than competing with text.
## 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-019e04f8-9c0d-7a12-8c54-0e0dfb9d7808/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 Use authentic stencil motifs as structural dividers, hero panels, and navigation rails with clear CSS implementation.
- Do Keep body text on quiet paper or cream surfaces with contrast ratios above WCAG AA.
- Do Apply red oxide accents sparingly as stamped confirmations, status marks, or one primary call to action.
- Don't Do not cover dense text with busy pattern overlays or low-contrast indigo-on-brown combinations.
- Don't Do not use glossy glassmorphism, neon gradients, or generic rounded SaaS cards that erase the cut-paper identity.
- Don't Do not animate patterns continuously; motion should feel like lifting or placing paper, not digital sparkle.
### Accessibility
Maintain at least 4.5:1 text contrast, provide visible indigo focus rings, avoid pattern behind paragraphs, honor prefers-reduced-motion, and pair color status with labels/icons.
### Usage Context
Best for craft, cultural archives, boutique commerce, design tools, editorial storytelling, and interfaces that need meticulous pattern-rich warmth.
## Imagery Direction
### Hero Image Direction
A desktop composition of layered katagami sheets, carved wave and hemp-leaf motifs, tools, and a modern UI panel emerging from the stencil.
### Icon Style
Single-weight indigo line icons with occasional squared cutouts and tiny red seal dots.
### Illustration Style
Flat cut-paper illustrations with visible stencil gaps, indigo ink fields, cream reserves, and red registration stamps.
### Image Gen Prompts
- Katagami stencil paper interface, indigo and warm cream palette, carved Japanese textile patterns, modern web UI, tactile washi texture, editorial lighting
## Generative Canvas
### Animation Philosophy
Deterministic and restrained; hover states lift paper layers and reveal cut patterns with short eased transitions.
### Shader Palette
- #1E4E5F
- #F7F1E3
- #B7472A
- #C89B3C
### Techniques
- CSS masks
- repeating-linear-gradients
- clip-path notches
- subtle procedural paper grain
shadcn/ui theme
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "katagami",
"type": "registry:theme",
"title": "Katagami shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#ffffff",
"foreground": "#172126",
"card": "#FFF9EC",
"card-foreground": "#172126",
"popover": "#FFF9EC",
"popover-foreground": "#172126",
"primary": "#1E4E5F",
"primary-foreground": "#ffffff",
"secondary": "#B7472A",
"secondary-foreground": "#ffffff",
"muted": "#8E7B5E",
"muted-foreground": "#172126",
"accent": "#C89B3C",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#2F4A45",
"input": "#2F4A45",
"ring": "#C89B3C",
"chart-1": "#1E4E5F",
"chart-2": "#B7472A",
"chart-3": "#C89B3C",
"chart-4": "#4D7C59",
"chart-5": "#d97706",
"sidebar": "#FFF9EC",
"sidebar-foreground": "#172126",
"sidebar-primary": "#1E4E5F",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C89B3C",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#2F4A45",
"sidebar-ring": "#C89B3C",
"radius": "6px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#1E4E5F",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#C89B3C",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#C89B3C",
"chart-1": "#1E4E5F",
"chart-2": "#B7472A",
"chart-3": "#C89B3C",
"chart-4": "#4D7C59",
"chart-5": "#d97706",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#1E4E5F",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C89B3C",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#C89B3C",
"radius": "6px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019e04f8-9c0d-7a12-8c54-0e0dfb9d7808",
"slug": "katagami",
"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": {
"borders": [
"hairline",
"seal",
"stencil_rule"
],
"colors": [
"accent",
"border",
"danger",
"ink",
"muted",
"paper",
"primary",
"primary_dark",
"secondary",
"success",
"surface",
"surface_alt"
],
"motion": [
"duration",
"easing",
"principle"
],
"opacity": [
"disabled",
"pattern_overlay",
"wash"
],
"radii": [
"lg",
"md",
"none",
"pill",
"sm"
],
"shadows": [
"inset_cut",
"paper_lift",
"red_seal"
],
"spacing": [
"lg",
"md",
"sm",
"unit",
"xl",
"xs",
"xxl"
],
"surfaces": [
"cutout_card",
"indigo_field",
"washi_panel"
],
"typography": [
"body_font",
"google_fonts_url",
"heading_font",
"mono_font",
"scale"
]
}
}
}
```embodiments
at a glance
Typography
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
Components
Components rendered with this language’s tokens — colors, type, and rounded corners as specified.
Spacing
- lg24px
- md16px
- sm8px
- unit8px
- xl40px
- xs4px
- xxl64px
Shape
implementation kit
DESIGN.md with shadcn
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.
advanced implementation filesoptional machine-readable theme, CSS, TSX starter, recipes, and preview contract
npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table:root {
--background: #ffffff;
--foreground: #172126;
--card: #FFF9EC;
--card-foreground: #172126;
--popover: #FFF9EC;
--popover-foreground: #172126;
--primary: #1E4E5F;
--primary-foreground: #ffffff;
--secondary: #B7472A;
--secondary-foreground: #ffffff;
--muted: #8E7B5E;
--muted-foreground: #172126;
--accent: #C89B3C;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #2F4A45;
--input: #2F4A45;
--ring: #C89B3C;
--chart-1: #1E4E5F;
--chart-2: #B7472A;
--chart-3: #C89B3C;
--chart-4: #4D7C59;
--chart-5: #d97706;
--sidebar: #FFF9EC;
--sidebar-foreground: #172126;
--sidebar-primary: #1E4E5F;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #C89B3C;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #2F4A45;
--sidebar-ring: #C89B3C;
--radius: 6px;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #1E4E5F;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #C89B3C;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #303642;
--input: #303642;
--ring: #C89B3C;
--chart-1: #1E4E5F;
--chart-2: #B7472A;
--chart-3: #C89B3C;
--chart-4: #4D7C59;
--chart-5: #d97706;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #1E4E5F;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #C89B3C;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #C89B3C;
--radius: 6px;
}
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 KatagamiShadcnKit() {
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">Katagami</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": "katagami",
"type": "registry:theme",
"title": "Katagami shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#ffffff",
"foreground": "#172126",
"card": "#FFF9EC",
"card-foreground": "#172126",
"popover": "#FFF9EC",
"popover-foreground": "#172126",
"primary": "#1E4E5F",
"primary-foreground": "#ffffff",
"secondary": "#B7472A",
"secondary-foreground": "#ffffff",
"muted": "#8E7B5E",
"muted-foreground": "#172126",
"accent": "#C89B3C",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#2F4A45",
"input": "#2F4A45",
"ring": "#C89B3C",
"chart-1": "#1E4E5F",
"chart-2": "#B7472A",
"chart-3": "#C89B3C",
"chart-4": "#4D7C59",
"chart-5": "#d97706",
"sidebar": "#FFF9EC",
"sidebar-foreground": "#172126",
"sidebar-primary": "#1E4E5F",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C89B3C",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#2F4A45",
"sidebar-ring": "#C89B3C",
"radius": "6px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#1E4E5F",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#C89B3C",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#C89B3C",
"chart-1": "#1E4E5F",
"chart-2": "#B7472A",
"chart-3": "#C89B3C",
"chart-4": "#4D7C59",
"chart-5": "#d97706",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#1E4E5F",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C89B3C",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#C89B3C",
"radius": "6px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019e04f8-9c0d-7a12-8c54-0e0dfb9d7808",
"slug": "katagami",
"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": {
"borders": [
"hairline",
"seal",
"stencil_rule"
],
"colors": [
"accent",
"border",
"danger",
"ink",
"muted",
"paper",
"primary",
"primary_dark",
"secondary",
"success",
"surface",
"surface_alt"
],
"motion": [
"duration",
"easing",
"principle"
],
"opacity": [
"disabled",
"pattern_overlay",
"wash"
],
"radii": [
"lg",
"md",
"none",
"pill",
"sm"
],
"shadows": [
"inset_cut",
"paper_lift",
"red_seal"
],
"spacing": [
"lg",
"md",
"sm",
"unit",
"xl",
"xs",
"xxl"
],
"surfaces": [
"cutout_card",
"indigo_field",
"washi_panel"
],
"typography": [
"body_font",
"google_fonts_url",
"heading_font",
"mono_font",
"scale"
]
}
}
}
# Katagami shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019e04f8-9c0d-7a12-8c54-0e0dfb9d7808`
Slug: `katagami`
## Intent
shadcn/ui component recipes for the Katagami language Katagami.
## 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:
{
"accent": "#C89B3C",
"border": "#2F4A45",
"danger": "#A43B32",
"ink": "#172126",
"muted": "#8E7B5E",
"paper": "#F7F1E3",
"primary": "#1E4E5F",
"primary_dark": "#143642",
"secondary": "#B7472A",
"success": "#4D7C59",
"surface": "#FFF9EC",
"surface_alt": "#E9D9B7"
}
Typography:
{
"body_font": "Inter",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&family=IBM+Plex+Mono:wght@500&display=swap",
"heading_font": "Noto Serif JP",
"mono_font": "IBM Plex Mono",
"scale": "1.25 modular scale with compact labels and high-contrast serif headings"
}
## Visual character to preserve
- Layered paper surfaces use #F7F1E3 and #D8C7A3 with subtle fiber noise, giving every panel the tactile feel of carved washi rather than a flat white card.
- Signature stencil cuts appear as repeating arcs, hemp-leaf diamonds, and wave perforations built with CSS masks, clipped pseudo-elements, and thin #1E4E5F indigo keylines.
- Compositions rely on generous negative space, asymmetrical margins, and precise 8px-grid alignment so decorative pattern fields feel calm, legible, and intentionally handmade.
## ShadSync visual profile
{
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": true,
"grain": true,
"stickerBadges": true,
"motion": "lift",
"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/katagami/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: Use authentic stencil motifs as structural dividers, hero panels, and navigation rails with clear CSS implementation.; Keep body text on quiet paper or cream surfaces with contrast ratios above WCAG AA.; Apply red oxide accents sparingly as stamped confirmations, status marks, or one primary call to action.
- Do not: Do not cover dense text with busy pattern overlays or low-contrast indigo-on-brown combinations.; Do not use glossy glassmorphism, neon gradients, or generic rounded SaaS cards that erase the cut-paper identity.; Do not animate patterns continuously; motion should feel like lifting or placing paper, not digital sparkle.
## 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 KatagamiShadcnKit() {
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">Katagami</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
{
"density": "Medium-low density: wide margins, compact control groups, and large breathing room around patterned panels.",
"grid": "12-column desktop grid with 24px gutters; collapse to 4 columns on mobile while preserving 8px baseline rhythm.",
"responsive": "At small widths, pattern fields become header/footer bands and cards stack with full-width controls; never shrink typography below 14px.",
"whitespace": "Use negative space as an active material, with 40-64px section gaps on desktop and 24px on mobile."
}
{
"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-019e04f8-9c0d-7a12-8c54-0e0dfb9d7808",
"name": "Katagami",
"slug": "katagami"
},
"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": [
"Layered paper surfaces use #F7F1E3 and #D8C7A3 with subtle fiber noise, giving every panel the tactile feel of carved washi rather than a flat white card.",
"Signature stencil cuts appear as repeating arcs, hemp-leaf diamonds, and wave perforations built with CSS masks, clipped pseudo-elements, and thin #1E4E5F indigo keylines.",
"Compositions rely on generous negative space, asymmetrical margins, and precise 8px-grid alignment so decorative pattern fields feel calm, legible, and intentionally handmade."
],
"visualProfile": {
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": true,
"grain": true,
"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": "Katagami 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": [
"Use authentic stencil motifs as structural dividers, hero panels, and navigation rails with clear CSS implementation.",
"Keep body text on quiet paper or cream surfaces with contrast ratios above WCAG AA.",
"Apply red oxide accents sparingly as stamped confirmations, status marks, or one primary call to action."
],
"dont": [
"Do not cover dense text with busy pattern overlays or low-contrast indigo-on-brown combinations.",
"Do not use glossy glassmorphism, neon gradients, or generic rounded SaaS cards that erase the cut-paper identity.",
"Do not animate patterns continuously; motion should feel like lifting or placing paper, not digital sparkle."
]
}
}