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
borders4 items
- hairline
- 1px solid rgba(43,76,102,.35)
- ink
- 2px solid #123457
- perforated
- 2px dotted rgba(18,52,87,.55)
- registration
- 3px double #2B4C66
colors12 items
motion5 items
- duration base
- 240ms
- duration fast
- 140ms
- duration slow
- 520ms
- easing
- cubic-bezier(.2,.7,.2,1)
- principle
- Small reveal motions slide like lifted stencil paper; avoid bouncy or liquid effects.
opacity3 items
- disabled
- 0.48
- overlay
- 0.72
- wash
- 0.12
radii4 items
- lg
- 12px
- md
- 6px
- pill
- 999px
- sm
- 2px
shadows3 items
- lg
- 0 24px 60px rgba(11,31,51,.26)
- md
- 0 14px 32px rgba(18,52,87,.18)
- sm
- 0 2px 0 rgba(16,32,51,.18)
spacing6 items
- lg
- 24px
- md
- 16px
- sm
- 8px
- xl
- 40px
- xs
- 4px
- xxl
- 64px
surfaces3 items
- indigo dye
- linear-gradient(145deg,#123457,#0B1F33)
- stencil overlay
- radial-gradient(circle at 1px 1px, rgba(18,52,87,.20) 1px, transparent 1.8px)
- washi panel
- linear-gradient(135deg,#FFF9EC 0%,#F5E9D4 100%)
typography6 items
- body font
- Inter
- google fonts url
- https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap
- heading font
- Noto Serif JP
- line height
- 1.55
- mono font
- IBM Plex Mono
- scale
- base 1rem·lg 1.18rem·sm 0.9rem·xl 1.55rem·xs 0.78rem·xxl 2.4rem
rules
- badge
- Small pill using saffron fill or indigo outline with perforated dot before text.
- button
- Ink-filled primary button with ochre focus ring and 2px pressed translateY interaction.
- card
- Washi panel with dotted stencil mask band, double border, and soft indigo shadow.
- input
- Cream field with indigo border, label in mono microtype, and clear focus aperture outline.
- active
- Translate down 2px and remove offset shadow.
- focus
- 3px ochre outline offset by 2px.
- hover
- Lift paper by -2px and deepen indigo shadow.
layout
Maintain text contrast above WCAG AA, never place long text over dense perforation fields, preserve visible focus rings, and offer reduced-motion safe transitions.
- desktop
- 1440px
- mobile
- 375px
- tablet
- 768px
Medium density: compact controls but generous card padding around data.
Desktop 12 columns with 24px gutters; tablet 6 columns; mobile 1 column with 16px margins.
guidance
- Use indigo, washi, rust, and saffron tokens consistently across panels and controls.
- Let stencil patterns mark section boundaries, empty states, and hero areas without obscuring text.
- Build real application scenes where data, controls, and feedback share the same cut-paper grammar.
- Style focus, hover, active, disabled, and validation states explicitly.
- Do not use generic blue gradients or glass cards that ignore paper craft.
- Do not make a component catalog; show a plausible product workflow.
- Do not place body copy on high-contrast busy patterns.
- Do not leave browser-default selects, checkboxes, or form inputs unstyled.
imagery
Overhead tabletop composition with layered stencil sheets, registration marks, and luminous apertures.
Single-weight indigo line icons with occasional cutout gaps and squared terminals.
Monochrome indigo stencil silhouettes with visible cut bridges and washi fiber texture.
generative
Slow paper-lift reveals and mask wipes; respect prefers-reduced-motion.
katagami spec
# Katagami
## Philosophy
### Values
- Precision through subtraction
- Handmade warmth inside rigorous modular systems
- Layered translucency that reveals hierarchy without noise
### Anti-Values
- Generic glassmorphism without craft
- Flat corporate blue sameness
- Ornament that interrupts reading or control use
### Visual Character
- Deep aizome indigo surfaces (#123457 and #0B1F33) are paired with warm washi panels (#F7F0E3) so CSS backgrounds feel dyed rather than synthetic.
- Stencil-cut negative spaces appear as dotted perforation borders, mask-like circular apertures, and repeating micro-pattern overlays built with radial-gradient CSS.
- Layered paper cards use subtle warm shadows, inset borders, and translucent indigo washes to suggest stacked stencil sheets on a worktable.
- Controls have squared craft geometry with small radius, high-contrast ink outlines, and deliberate pressed states rather than glossy default widgets.
## Tokens
### Borders
- **Hairline**: 1px solid rgba(43,76,102,.35)
- **Ink**: 2px solid #123457
- **Perforated**: 2px dotted rgba(18,52,87,.55)
- **Registration**: 3px double #2B4C66
### Colors
| Name | Value |
|------|-------|
| accent | `#D6A84F` |
| background | `#F7F0E3` |
| border | `#2B4C66` |
| danger | `#A83A32` |
| info | `#2F6F92` |
| muted | `#6C6254` |
| primary | `#123457` |
| secondary | `#B84A2B` |
| success | `#3D7A5B` |
| surface | `#FFF9EC` |
| text | `#102033` |
| warning | `#C9822E` |
### Motion
- **Duration Base**: 240ms
- **Duration Fast**: 140ms
- **Duration Slow**: 520ms
- **Easing**: cubic-bezier(.2,.7,.2,1)
- **Principle**: Small reveal motions slide like lifted stencil paper; avoid bouncy or liquid effects.
### Opacity
- **Disabled**: 0.48
- **Overlay**: 0.72
- **Wash**: 0.12
### Radii
- **Lg**: 12px
- **Md**: 6px
- **Pill**: 999px
- **Sm**: 2px
### Shadows
- **Lg**: 0 24px 60px rgba(11,31,51,.26)
- **Md**: 0 14px 32px rgba(18,52,87,.18)
- **Sm**: 0 2px 0 rgba(16,32,51,.18)
### Spacing
- **Lg**: 24px
- **Md**: 16px
- **Sm**: 8px
- **Xl**: 40px
- **Xs**: 4px
- **Xxl**: 64px
### Surfaces
- **Indigo Dye**: linear-gradient(145deg,#123457,#0B1F33)
- **Stencil Overlay**: radial-gradient(circle at 1px 1px, rgba(18,52,87,.20) 1px, transparent 1.8px)
- **Washi Panel**: linear-gradient(135deg,#FFF9EC 0%,#F5E9D4 100%)
### Typography
- **Body Font**: Inter
- **Google Fonts Url**: https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap
- **Heading Font**: Noto Serif JP
- **Line Height**: 1.55
- **Mono Font**: IBM Plex Mono
- **Scale**: {"base":"1rem","lg":"1.18rem","sm":"0.9rem","xl":"1.55rem","xs":"0.78rem","xxl":"2.4rem"}
## Rules
### Components
- **Badge**: Small pill using saffron fill or indigo outline with perforated dot before text.
- **Button**: Ink-filled primary button with ochre focus ring and 2px pressed translateY interaction.
- **Card**: Washi panel with dotted stencil mask band, double border, and soft indigo shadow.
- **Input**: Cream field with indigo border, label in mono microtype, and clear focus aperture outline.
### Signature Patterns
- Use radial-gradient perforation fields on headers and cards, clipped by overflow-hidden containers so the UI reads as cut stencil paper rather than wallpaper.
- Frame important modules with double indigo registration borders and small corner crop marks implemented with pseudo-elements or absolutely positioned rules.
- Create hierarchy through layered washi and indigo panels: pale content sheets float above dark dyed rails with warm shadows and visible paper grain texture.
- Style every input, select, checkbox, and button with ink borders, square craft radii, and pressed offset shadows to avoid browser-default controls.
### States
- **Active**: Translate down 2px and remove offset shadow.
- **Focus**: 3px ochre outline offset by 2px.
- **Hover**: Lift paper by -2px and deepen indigo shadow.
## Layout
### Accessibility
Maintain text contrast above WCAG AA, never place long text over dense perforation fields, preserve visible focus rings, and offer reduced-motion safe transitions.
### Breakpoints
- **Desktop**: 1440px
- **Mobile**: 375px
- **Tablet**: 768px
### Density
Medium density: compact controls but generous card padding around data.
### Grid
Desktop 12 columns with 24px gutters; tablet 6 columns; mobile 1 column with 16px margins.
### Principles
- Compose screens as a craftsman worktable: dark tool rail, central washi sheet, and small pinned inspection panels.
- Use a 12-column desktop grid that collapses to 6 columns on tablet and a single column on mobile.
- Preserve generous margins around patterned areas so stencil texture accents structure instead of reducing readability.
## Guidance
### Do
- Use indigo, washi, rust, and saffron tokens consistently across panels and controls.
- Let stencil patterns mark section boundaries, empty states, and hero areas without obscuring text.
- Build real application scenes where data, controls, and feedback share the same cut-paper grammar.
- Style focus, hover, active, disabled, and validation states explicitly.
### Don't
- Do not use generic blue gradients or glass cards that ignore paper craft.
- Do not make a component catalog; show a plausible product workflow.
- Do not place body copy on high-contrast busy patterns.
- Do not leave browser-default selects, checkboxes, or form inputs unstyled.
### Usage Context
Best for editorial tools, cultural archives, workflow dashboards, and generative craft applications needing precise structure with tactile warmth.
## Imagery Direction
### Hero Image Direction
Overhead tabletop composition with layered stencil sheets, registration marks, and luminous apertures.
### Icon Style
Single-weight indigo line icons with occasional cutout gaps and squared terminals.
### Illustration Style
Monochrome indigo stencil silhouettes with visible cut bridges and washi fiber texture.
### Image Gen Prompts
- Japanese katagami stencil paper UI background, indigo dye, washi fibers, precise cut apertures, warm editorial lighting
## Generative Canvas
### Animation Philosophy
Slow paper-lift reveals and mask wipes; respect prefers-reduced-motion.
### Shader Palette
- #123457
- #0B1F33
- #F7F0E3
- #D6A84F
### Techniques
- CSS radial-gradient stencil masks
- clip-path apertures
- subtle parallax paper layers
DESIGN.md
---
version: "alpha"
name: "Katagami"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
accent: "#D6A84F"
background: "#F7F0E3"
border: "#2B4C66"
danger: "#A83A32"
info: "#2F6F92"
muted: "#6C6254"
primary: "#123457"
secondary: "#B84A2B"
success: "#3D7A5B"
surface: "#FFF9EC"
text: "#102033"
warning: "#C9822E"
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: "12px"
md: "6px"
pill: "999px"
sm: "2px"
spacing:
lg: "24px"
md: "16px"
sm: "8px"
xl: "40px"
xs: "4px"
xxl: "64px"
components:
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-background:
backgroundColor: "{colors.background}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-danger:
backgroundColor: "{colors.danger}"
color-reference-info:
backgroundColor: "{colors.info}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-primary:
backgroundColor: "{colors.primary}"
color-reference-secondary:
backgroundColor: "{colors.secondary}"
color-reference-success:
backgroundColor: "{colors.success}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-warning:
backgroundColor: "{colors.warning}"
button-primary:
backgroundColor: "{colors.primary}"
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"
---
# Katagami
## Overview
Katagami is an agent-curated design language from Katagami.
### Values
- Precision through subtraction
- Handmade warmth inside rigorous modular systems
- Layered translucency that reveals hierarchy without noise
### Anti-Values
- Generic glassmorphism without craft
- Flat corporate blue sameness
- Ornament that interrupts reading or control use
### Visual Character
- Deep aizome indigo surfaces (#123457 and #0B1F33) are paired with warm washi panels (#F7F0E3) so CSS backgrounds feel dyed rather than synthetic.
- Stencil-cut negative spaces appear as dotted perforation borders, mask-like circular apertures, and repeating micro-pattern overlays built with radial-gradient CSS.
- Layered paper cards use subtle warm shadows, inset borders, and translucent indigo washes to suggest stacked stencil sheets on a worktable.
- Controls have squared craft geometry with small radius, high-contrast ink outlines, and deliberate pressed states rather than glossy default widgets.
## 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 | `#D6A84F` |
| background | `#F7F0E3` |
| border | `#2B4C66` |
| danger | `#A83A32` |
| info | `#2F6F92` |
| muted | `#6C6254` |
| primary | `#123457` |
| secondary | `#B84A2B` |
| success | `#3D7A5B` |
| surface | `#FFF9EC` |
| text | `#102033` |
| warning | `#C9822E` |
## 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`
- **Xl**: `40px`
- **Xs**: `4px`
- **Xxl**: `64px`
### Accessibility
Maintain text contrast above WCAG AA, never place long text over dense perforation fields, preserve visible focus rings, and offer reduced-motion safe transitions.
### Breakpoints
- **Desktop**: 1440px
- **Mobile**: 375px
- **Tablet**: 768px
### Density
Medium density: compact controls but generous card padding around data.
### Grid
Desktop 12 columns with 24px gutters; tablet 6 columns; mobile 1 column with 16px margins.
### Principles
- Compose screens as a craftsman worktable: dark tool rail, central washi sheet, and small pinned inspection panels.
- Use a 12-column desktop grid that collapses to 6 columns on tablet and a single column on mobile.
- Preserve generous margins around patterned areas so stencil texture accents structure instead of reducing readability.
## Elevation & Depth
### Shadows
- **Lg**: 0 24px 60px rgba(11,31,51,.26)
- **Md**: 0 14px 32px rgba(18,52,87,.18)
- **Sm**: 0 2px 0 rgba(16,32,51,.18)
## Shapes
### Rounded
- **Lg**: `12px`
- **Md**: `6px`
- **Pill**: `999px`
- **Sm**: `2px`
### Surfaces
- **Indigo Dye**: linear-gradient(145deg,#123457,#0B1F33)
- **Stencil Overlay**: radial-gradient(circle at 1px 1px, rgba(18,52,87,.20) 1px, transparent 1.8px)
- **Washi Panel**: linear-gradient(135deg,#FFF9EC 0%,#F5E9D4 100%)
### Borders
- **Hairline**: 1px solid rgba(43,76,102,.35)
- **Ink**: 2px solid #123457
- **Perforated**: 2px dotted rgba(18,52,87,.55)
- **Registration**: 3px double #2B4C66
## Components
### Components
- **Badge**: Small pill using saffron fill or indigo outline with perforated dot before text.
- **Button**: Ink-filled primary button with ochre focus ring and 2px pressed translateY interaction.
- **Card**: Washi panel with dotted stencil mask band, double border, and soft indigo shadow.
- **Input**: Cream field with indigo border, label in mono microtype, and clear focus aperture outline.
### Signature Patterns
- Use radial-gradient perforation fields on headers and cards, clipped by overflow-hidden containers so the UI reads as cut stencil paper rather than wallpaper.
- Frame important modules with double indigo registration borders and small corner crop marks implemented with pseudo-elements or absolutely positioned rules.
- Create hierarchy through layered washi and indigo panels: pale content sheets float above dark dyed rails with warm shadows and visible paper grain texture.
- Style every input, select, checkbox, and button with ink borders, square craft radii, and pressed offset shadows to avoid browser-default controls.
### States
- **Active**: Translate down 2px and remove offset shadow.
- **Focus**: 3px ochre outline offset by 2px.
- **Hover**: Lift paper by -2px and deepen indigo shadow.
## 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-019e04fd-4659-7fd1-a149-3e7ed5bbb284/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 indigo, washi, rust, and saffron tokens consistently across panels and controls.
- Do Let stencil patterns mark section boundaries, empty states, and hero areas without obscuring text.
- Do Build real application scenes where data, controls, and feedback share the same cut-paper grammar.
- Do Style focus, hover, active, disabled, and validation states explicitly.
- Don't Do not use generic blue gradients or glass cards that ignore paper craft.
- Don't Do not make a component catalog; show a plausible product workflow.
- Don't Do not place body copy on high-contrast busy patterns.
- Don't Do not leave browser-default selects, checkboxes, or form inputs unstyled.
### Usage Context
Best for editorial tools, cultural archives, workflow dashboards, and generative craft applications needing precise structure with tactile warmth.
## Imagery Direction
### Hero Image Direction
Overhead tabletop composition with layered stencil sheets, registration marks, and luminous apertures.
### Icon Style
Single-weight indigo line icons with occasional cutout gaps and squared terminals.
### Illustration Style
Monochrome indigo stencil silhouettes with visible cut bridges and washi fiber texture.
### Image Gen Prompts
- Japanese katagami stencil paper UI background, indigo dye, washi fibers, precise cut apertures, warm editorial lighting
## Generative Canvas
### Animation Philosophy
Slow paper-lift reveals and mask wipes; respect prefers-reduced-motion.
### Shader Palette
- #123457
- #0B1F33
- #F7F0E3
- #D6A84F
### Techniques
- CSS radial-gradient stencil masks
- clip-path apertures
- subtle parallax paper layers
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": "#F7F0E3",
"foreground": "#102033",
"card": "#FFF9EC",
"card-foreground": "#102033",
"popover": "#FFF9EC",
"popover-foreground": "#102033",
"primary": "#123457",
"primary-foreground": "#ffffff",
"secondary": "#B84A2B",
"secondary-foreground": "#ffffff",
"muted": "#6C6254",
"muted-foreground": "#102033",
"accent": "#D6A84F",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#2B4C66",
"input": "#2B4C66",
"ring": "#D6A84F",
"chart-1": "#123457",
"chart-2": "#B84A2B",
"chart-3": "#D6A84F",
"chart-4": "#3D7A5B",
"chart-5": "#C9822E",
"sidebar": "#FFF9EC",
"sidebar-foreground": "#102033",
"sidebar-primary": "#123457",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#2F6F92",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#2B4C66",
"sidebar-ring": "#D6A84F",
"radius": "6px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#123457",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#D6A84F",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#D6A84F",
"chart-1": "#123457",
"chart-2": "#B84A2B",
"chart-3": "#D6A84F",
"chart-4": "#3D7A5B",
"chart-5": "#C9822E",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#123457",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#D6A84F",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#D6A84F",
"radius": "6px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019e04fd-4659-7fd1-a149-3e7ed5bbb284",
"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",
"ink",
"perforated",
"registration"
],
"colors": [
"accent",
"background",
"border",
"danger",
"info",
"muted",
"primary",
"secondary",
"success",
"surface",
"text",
"warning"
],
"motion": [
"duration_base",
"duration_fast",
"duration_slow",
"easing",
"principle"
],
"opacity": [
"disabled",
"overlay",
"wash"
],
"radii": [
"lg",
"md",
"pill",
"sm"
],
"shadows": [
"lg",
"md",
"sm"
],
"spacing": [
"lg",
"md",
"sm",
"xl",
"xs",
"xxl"
],
"surfaces": [
"indigo_dye",
"stencil_overlay",
"washi_panel"
],
"typography": [
"body_font",
"google_fonts_url",
"heading_font",
"line_height",
"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
- 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: #F7F0E3;
--foreground: #102033;
--card: #FFF9EC;
--card-foreground: #102033;
--popover: #FFF9EC;
--popover-foreground: #102033;
--primary: #123457;
--primary-foreground: #ffffff;
--secondary: #B84A2B;
--secondary-foreground: #ffffff;
--muted: #6C6254;
--muted-foreground: #102033;
--accent: #D6A84F;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #2B4C66;
--input: #2B4C66;
--ring: #D6A84F;
--chart-1: #123457;
--chart-2: #B84A2B;
--chart-3: #D6A84F;
--chart-4: #3D7A5B;
--chart-5: #C9822E;
--sidebar: #FFF9EC;
--sidebar-foreground: #102033;
--sidebar-primary: #123457;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #2F6F92;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #2B4C66;
--sidebar-ring: #D6A84F;
--radius: 6px;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #123457;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #D6A84F;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #303642;
--input: #303642;
--ring: #D6A84F;
--chart-1: #123457;
--chart-2: #B84A2B;
--chart-3: #D6A84F;
--chart-4: #3D7A5B;
--chart-5: #C9822E;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #123457;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #D6A84F;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #D6A84F;
--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": "#F7F0E3",
"foreground": "#102033",
"card": "#FFF9EC",
"card-foreground": "#102033",
"popover": "#FFF9EC",
"popover-foreground": "#102033",
"primary": "#123457",
"primary-foreground": "#ffffff",
"secondary": "#B84A2B",
"secondary-foreground": "#ffffff",
"muted": "#6C6254",
"muted-foreground": "#102033",
"accent": "#D6A84F",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#2B4C66",
"input": "#2B4C66",
"ring": "#D6A84F",
"chart-1": "#123457",
"chart-2": "#B84A2B",
"chart-3": "#D6A84F",
"chart-4": "#3D7A5B",
"chart-5": "#C9822E",
"sidebar": "#FFF9EC",
"sidebar-foreground": "#102033",
"sidebar-primary": "#123457",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#2F6F92",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#2B4C66",
"sidebar-ring": "#D6A84F",
"radius": "6px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#123457",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#D6A84F",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#D6A84F",
"chart-1": "#123457",
"chart-2": "#B84A2B",
"chart-3": "#D6A84F",
"chart-4": "#3D7A5B",
"chart-5": "#C9822E",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#123457",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#D6A84F",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#D6A84F",
"radius": "6px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019e04fd-4659-7fd1-a149-3e7ed5bbb284",
"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",
"ink",
"perforated",
"registration"
],
"colors": [
"accent",
"background",
"border",
"danger",
"info",
"muted",
"primary",
"secondary",
"success",
"surface",
"text",
"warning"
],
"motion": [
"duration_base",
"duration_fast",
"duration_slow",
"easing",
"principle"
],
"opacity": [
"disabled",
"overlay",
"wash"
],
"radii": [
"lg",
"md",
"pill",
"sm"
],
"shadows": [
"lg",
"md",
"sm"
],
"spacing": [
"lg",
"md",
"sm",
"xl",
"xs",
"xxl"
],
"surfaces": [
"indigo_dye",
"stencil_overlay",
"washi_panel"
],
"typography": [
"body_font",
"google_fonts_url",
"heading_font",
"line_height",
"mono_font",
"scale"
]
}
}
}
# Katagami shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019e04fd-4659-7fd1-a149-3e7ed5bbb284`
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": "#D6A84F",
"background": "#F7F0E3",
"border": "#2B4C66",
"danger": "#A83A32",
"info": "#2F6F92",
"muted": "#6C6254",
"primary": "#123457",
"secondary": "#B84A2B",
"success": "#3D7A5B",
"surface": "#FFF9EC",
"text": "#102033",
"warning": "#C9822E"
}
Typography:
{
"body_font": "Inter",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap",
"heading_font": "Noto Serif JP",
"line_height": "1.55",
"mono_font": "IBM Plex Mono",
"scale": {
"base": "1rem",
"lg": "1.18rem",
"sm": "0.9rem",
"xl": "1.55rem",
"xs": "0.78rem",
"xxl": "2.4rem"
}
}
## Visual character to preserve
- Deep aizome indigo surfaces (#123457 and #0B1F33) are paired with warm washi panels (#F7F0E3) so CSS backgrounds feel dyed rather than synthetic.
- Stencil-cut negative spaces appear as dotted perforation borders, mask-like circular apertures, and repeating micro-pattern overlays built with radial-gradient CSS.
- Layered paper cards use subtle warm shadows, inset borders, and translucent indigo washes to suggest stacked stencil sheets on a worktable.
- Controls have squared craft geometry with small radius, high-contrast ink outlines, and deliberate pressed states rather than glossy default widgets.
## ShadSync visual profile
{
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": true,
"grain": true,
"stickerBadges": false,
"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 indigo, washi, rust, and saffron tokens consistently across panels and controls.; Let stencil patterns mark section boundaries, empty states, and hero areas without obscuring text.; Build real application scenes where data, controls, and feedback share the same cut-paper grammar.; Style focus, hover, active, disabled, and validation states explicitly.
- Do not: Do not use generic blue gradients or glass cards that ignore paper craft.; Do not make a component catalog; show a plausible product workflow.; Do not place body copy on high-contrast busy patterns.; Do not leave browser-default selects, checkboxes, or form inputs unstyled.
## 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
{
"accessibility": "Maintain text contrast above WCAG AA, never place long text over dense perforation fields, preserve visible focus rings, and offer reduced-motion safe transitions.",
"breakpoints": {
"desktop": "1440px",
"mobile": "375px",
"tablet": "768px"
},
"density": "Medium density: compact controls but generous card padding around data.",
"grid": "Desktop 12 columns with 24px gutters; tablet 6 columns; mobile 1 column with 16px margins.",
"principles": [
"Compose screens as a craftsman worktable: dark tool rail, central washi sheet, and small pinned inspection panels.",
"Use a 12-column desktop grid that collapses to 6 columns on tablet and a single column on mobile.",
"Preserve generous margins around patterned areas so stencil texture accents structure instead of reducing readability."
]
}
{
"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-019e04fd-4659-7fd1-a149-3e7ed5bbb284",
"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": [
"Deep aizome indigo surfaces (#123457 and #0B1F33) are paired with warm washi panels (#F7F0E3) so CSS backgrounds feel dyed rather than synthetic.",
"Stencil-cut negative spaces appear as dotted perforation borders, mask-like circular apertures, and repeating micro-pattern overlays built with radial-gradient CSS.",
"Layered paper cards use subtle warm shadows, inset borders, and translucent indigo washes to suggest stacked stencil sheets on a worktable.",
"Controls have squared craft geometry with small radius, high-contrast ink outlines, and deliberate pressed states rather than glossy default widgets."
],
"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 indigo, washi, rust, and saffron tokens consistently across panels and controls.",
"Let stencil patterns mark section boundaries, empty states, and hero areas without obscuring text.",
"Build real application scenes where data, controls, and feedback share the same cut-paper grammar.",
"Style focus, hover, active, disabled, and validation states explicitly."
],
"dont": [
"Do not use generic blue gradients or glass cards that ignore paper craft.",
"Do not make a component catalog; show a plausible product workflow.",
"Do not place body copy on high-contrast busy patterns.",
"Do not leave browser-default selects, checkboxes, or form inputs unstyled."
]
}
}