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 serialized science-fiction editorial language: the product screen printed like a proof sheet, paced like a comic spread on warm cream paper, with three ink plates — black key, acid magenta, cobalt — set slightly out of register on purpose. The refined evolution of Avant-Comics Sci-Fi Editorial: same idea and palette family, sharpened to one ownable mechanic — registration offset.
values
Narrative sequencing over neutral utilityPrint contrast and typographic authorityIllustrated speculation inside functional UIEnergetic poster colour used with disciplined restraintDepth from registration offset, never from borders or glow
anti-values
×Soft anonymous SaaS minimalism×Blue-glow cyberpunk defaults×Glassmorphism and pastel washes×Frictionless but visually forgettable component grids
cream paper panels with thick black keylines and a registration-offset two-plate shadow (magenta down-right, cobalt up-left); never a single accent edge
borders3 items
default width
3px
style
solid
character
assertive inked keylines: thick, black, rectangular comic-panel frames; depth comes from the registration-offset spot plates, never from a single coloured edge
motion3 items
duration
220ms
easing
cubic-bezier(0.2, 0.9, 0.2, 1)
philosophy
snappy; sections register into place like plates locking on a press. The settled state is visible with no JS; the hidden start-state is gated behind html.anim and respects prefers-reduced-motion.
rules
composition
Build screens as editorial spreads: a dominant feature story well, sharply framed supporting sidebars, and narrative modules arranged by pacing rather than homogeneous dashboard symmetry.
hierarchy
Headlines announce sections at poster scale in Bodoni Moda; secondary decks explain the speculative premise; tertiary metadata drops to compact uppercase Space Mono labels and ruled separators to keep dense information scannable.
density
High-density but intentional: pack information tightly inside panel systems, then release pressure with generous gutters, full-bleed pull quotes, and isolated illustration moments.
signature
Every panel is a black key plate carrying a registration-offset two-plate shadow — a solid magenta plate offset down-right and a solid cobalt plate offset up-left, no blur. Section headers pair oversized serif with uppercase mono kickers and double rules. A faint halftone-dot proof-sheet ground sits behind everything; spot inks behave like poster highlighters.
layout
grid
Desktop uses a 12-column editorial grid with a dominant 7-column story well and a 3-column dossier rail; tablet collapses to a single column; mobile becomes a vertical narrative stack. Use minmax(0,1fr) columns and min-width:0 children so grids never blow out.
whitespace
Whitespace behaves like magazine pacing: tight interior spacing inside data modules, then generous gutters and sectional breaks between narrative beats. Always pad above titles; titles never stuck to container tops.
density
Generous between sections, dense within data modules.
responsive
Renders from ~390px to 2560px+. Single column on mobile, non-essential nav links and table columns hidden, never any horizontal overflow. On ultra-wide, cap and centre contained content; only the landing hero spans 100vw.
breakpoints
lg
1200px+
md
720-1199px
sm
560-719px
xs
below 560px
guidance
do
Use cream and black as the constant base, then inject magenta and cobalt as sharp poster spot inks used like highlighters.
Give every surface the registration-offset two-plate shadow; let depth come from the offset, never from a grey hairline or a single accent edge.
Pair expressive serif headlines with rigid monospace metadata to keep the editorial-computational contrast visible.
Let illustration motifs (orbital diagrams, halftone bursts, star maps) support hierarchy in hero and pull-quote zones without obscuring functional content.
avoid
Do not revert to neon-on-black cyberpunk lighting or glassmorphism.
Do not soften the system with pill-heavy rounded components or pastel gradients.
Do not give a card a single accent/highlight edge; the offset is a full second plate behind the whole panel.
Do not arrange every module as identical dashboard cards with interchangeable headers.
imagery
pairs with
overprint
summary
Imagery is vintage risograph comic-ink overprint: a few flat spot-colour ink passes in acid magenta, cobalt and dense black on warm cream pulp paper, with deliberate registration misalignment, coarse halftone dot screens and thick black contour linework — the same misregistered print language the CSS speaks.
subjects
deep-space explorers and cosmonautsringed planets and orbital diagramsstar maps and contour burstssurvey vessels and relay anchorsspeculative landscapes
usage
Use a full-bleed risograph overprint for the landing hero and feature imagery; keep the cream/magenta/cobalt/black plate palette; let the registration offset and halftone show. Never use smooth digital illustration, photography, or a second bright colour.
katagami spec
# Komawari
## Philosophy
A serialized science-fiction editorial language: the product screen printed like a proof sheet, paced like a comic spread on warm cream paper, with three ink plates — black key, acid magenta, cobalt — set slightly out of register on purpose. The refined evolution of Avant-Comics Sci-Fi Editorial: same idea and palette family, sharpened to one ownable mechanic — registration offset.
### Values
- Narrative sequencing over neutral utility
- Print contrast and typographic authority
- Illustrated speculation inside functional UI
- Energetic poster colour used with disciplined restraint
- Depth from registration offset, never from borders or glow
### Anti-Values
- Soft anonymous SaaS minimalism
- Blue-glow cyberpunk defaults
- Glassmorphism and pastel washes
- Frictionless but visually forgettable component grids
## Tokens
### Colors
| Name | Value |
|------|-------|
| bg | `#F2E7D0` |
| surface | `#FCF6E9` |
| surface_2 | `#ECDFC4` |
| text | `#121212` |
| muted | `#6A6052` |
| border | `#141414` |
| accent | `#D4148E` |
| on_accent | `#FCF6E9` |
| accent_2 | `#1547D1` |
| on_accent_2 | `#FCF6E9` |
| success | `#117A55` |
| warning | `#B5760C` |
| error | `#C2392F` |
| info | `#1547D1` |
### Typography
- **Base Size**: 17px
- **Body Font**: Instrument Serif
- **Heading Font**: Bodoni Moda
- **Mono Font**: Space Mono
- **Heading Weight**: 800
- **Heading Transform**: none
- **Letter Spacing**: -0.038em
- **Display Line Height**: 1.05
- **Line Height**: 1.55
- **Scale Ratio**: 1.25
- **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,600;6..96,700;6..96,800;6..96,900&family=Instrument+Serif:ital@0;1&family=Space+Mono:wght@400;700&display=swap
### Radii
- **None**: 0px
- **Sm**: 0px
- **Md**: 16px
- **Lg**: 16px
- **Full**: 9999px
### Shadows
- **Sm**: 3px 3px 0 0 #D4148E, -2px -2px 0 0 #1547D1
- **Md**: 6px 6px 0 0 #D4148E, -4px -4px 0 0 #1547D1
- **Lg**: 8px 8px 0 0 #D4148E, -5px -5px 0 0 #1547D1
### Spacing
- **Base**: 8px
- **Scale**: [4,8,12,16,24,32,48,64,96]
### Surfaces
- **Treatment**: paper
- **Bg Pattern**: halftone-dots
- **Card Style**: cream paper panels with thick black keylines and a registration-offset two-plate shadow (magenta down-right, cobalt up-left); never a single accent edge
### Borders
- **Default Width**: 3px
- **Style**: solid
- **Character**: assertive inked keylines: thick, black, rectangular comic-panel frames; depth comes from the registration-offset spot plates, never from a single coloured edge
### Motion
- **Duration**: 220ms
- **Easing**: cubic-bezier(0.2, 0.9, 0.2, 1)
- **Philosophy**: snappy; sections register into place like plates locking on a press. The settled state is visible with no JS; the hidden start-state is gated behind html.anim and respects prefers-reduced-motion.
## Rules
### Composition
Build screens as editorial spreads: a dominant feature story well, sharply framed supporting sidebars, and narrative modules arranged by pacing rather than homogeneous dashboard symmetry.
### Hierarchy
Headlines announce sections at poster scale in Bodoni Moda; secondary decks explain the speculative premise; tertiary metadata drops to compact uppercase Space Mono labels and ruled separators to keep dense information scannable.
### Density
High-density but intentional: pack information tightly inside panel systems, then release pressure with generous gutters, full-bleed pull quotes, and isolated illustration moments.
### Signature
Every panel is a black key plate carrying a registration-offset two-plate shadow — a solid magenta plate offset down-right and a solid cobalt plate offset up-left, no blur. Section headers pair oversized serif with uppercase mono kickers and double rules. A faint halftone-dot proof-sheet ground sits behind everything; spot inks behave like poster highlighters.
## Layout
### Grid
Desktop uses a 12-column editorial grid with a dominant 7-column story well and a 3-column dossier rail; tablet collapses to a single column; mobile becomes a vertical narrative stack. Use minmax(0,1fr) columns and min-width:0 children so grids never blow out.
### Whitespace
Whitespace behaves like magazine pacing: tight interior spacing inside data modules, then generous gutters and sectional breaks between narrative beats. Always pad above titles; titles never stuck to container tops.
### Density
Generous between sections, dense within data modules.
### Responsive
Renders from ~390px to 2560px+. Single column on mobile, non-essential nav links and table columns hidden, never any horizontal overflow. On ultra-wide, cap and centre contained content; only the landing hero spans 100vw.
### Breakpoints
- **Lg**: 1200px+
- **Md**: 720-1199px
- **Sm**: 560-719px
- **Xs**: below 560px
## Guidance
### Do
- Use cream and black as the constant base, then inject magenta and cobalt as sharp poster spot inks used like highlighters.
- Give every surface the registration-offset two-plate shadow; let depth come from the offset, never from a grey hairline or a single accent edge.
- Pair expressive serif headlines with rigid monospace metadata to keep the editorial-computational contrast visible.
- Let illustration motifs (orbital diagrams, halftone bursts, star maps) support hierarchy in hero and pull-quote zones without obscuring functional content.
### Don't
- Do not revert to neon-on-black cyberpunk lighting or glassmorphism.
- Do not soften the system with pill-heavy rounded components or pastel gradients.
- Do not give a card a single accent/highlight edge; the offset is a full second plate behind the whole panel.
- Do not arrange every module as identical dashboard cards with interchangeable headers.
### Accessibility
Dense ink on cream holds AA contrast; magenta and cobalt meet contrast against cream and against the key plate. Focus states are explicit inked/offset rings, never removed. The halftone texture stays low-contrast behind text. The page renders complete without JavaScript and respects prefers-reduced-motion.
## Imagery Direction
### Pairs With
overprint
### Summary
Imagery is vintage risograph comic-ink overprint: a few flat spot-colour ink passes in acid magenta, cobalt and dense black on warm cream pulp paper, with deliberate registration misalignment, coarse halftone dot screens and thick black contour linework — the same misregistered print language the CSS speaks.
### Subjects
- deep-space explorers and cosmonauts
- ringed planets and orbital diagrams
- star maps and contour bursts
- survey vessels and relay anchors
- speculative landscapes
### Usage
Use a full-bleed risograph overprint for the landing hero and feature imagery; keep the cream/magenta/cobalt/black plate palette; let the registration offset and halftone show. Never use smooth digital illustration, photography, or a second bright colour.
DESIGN.md
---
version: "alpha"
name: "Komawari"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
bg: "#F2E7D0"
surface: "#FCF6E9"
surface_2: "#ECDFC4"
text: "#121212"
muted: "#6A6052"
border: "#141414"
accent: "#D4148E"
on_accent: "#FCF6E9"
accent_2: "#1547D1"
on_accent_2: "#FCF6E9"
success: "#117A55"
warning: "#B5760C"
error: "#C2392F"
info: "#1547D1"
typography:
headline-lg:
fontFamily: "Bodoni Moda"
fontSize: "2.075rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.038em"
headline-md:
fontFamily: "Bodoni Moda"
fontSize: "1.66rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.038em"
body-md:
fontFamily: "Instrument Serif"
fontSize: "17px"
fontWeight: 400
lineHeight: 1.55
letterSpacing: "-0.038em"
label-md:
fontFamily: "Space Mono"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
none: "0px"
sm: "0px"
md: "16px"
lg: "16px"
full: "9999px"
spacing:
base: "8px"
xs: "4px"
sm: "8px"
md: "12px"
lg: "16px"
xl: "24px"
2xl: "32px"
3xl: "48px"
4xl: "64px"
step-8: "96px"
components:
color-reference-bg:
backgroundColor: "{colors.bg}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-surface_2:
backgroundColor: "{colors.surface_2}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-on_accent:
backgroundColor: "{colors.on_accent}"
color-reference-accent_2:
backgroundColor: "{colors.accent_2}"
color-reference-on_accent_2:
backgroundColor: "{colors.on_accent_2}"
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"
---
# Komawari
## Overview
A serialized science-fiction editorial language: the product screen printed like a proof sheet, paced like a comic spread on warm cream paper, with three ink plates — black key, acid magenta, cobalt — set slightly out of register on purpose. The refined evolution of Avant-Comics Sci-Fi Editorial: same idea and palette family, sharpened to one ownable mechanic — registration offset.
### Values
- Narrative sequencing over neutral utility
- Print contrast and typographic authority
- Illustrated speculation inside functional UI
- Energetic poster colour used with disciplined restraint
- Depth from registration offset, never from borders or glow
### Anti-Values
- Soft anonymous SaaS minimalism
- Blue-glow cyberpunk defaults
- Glassmorphism and pastel washes
- Frictionless but visually forgettable component grids
## 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 | `#F2E7D0` |
| surface | `#FCF6E9` |
| surface_2 | `#ECDFC4` |
| text | `#121212` |
| muted | `#6A6052` |
| border | `#141414` |
| accent | `#D4148E` |
| on_accent | `#FCF6E9` |
| accent_2 | `#1547D1` |
| on_accent_2 | `#FCF6E9` |
| success | `#117A55` |
| warning | `#B5760C` |
| error | `#C2392F` |
| info | `#1547D1` |
## Typography
- **Headline-Lg**: Bodoni Moda, 2.075rem, weight 700, line-height 1.1.
- **Headline-Md**: Bodoni Moda, 1.66rem, weight 600, line-height 1.15.
- **Body-Md**: Instrument Serif, 17px, weight 400, line-height 1.55.
- **Label-Md**: Space Mono, 0.75rem, weight 600, line-height 1.
## Layout
### Spacing Tokens
- **Base**: `8px`
- **Xs**: `4px`
- **Sm**: `8px`
- **Md**: `12px`
- **Lg**: `16px`
- **Xl**: `24px`
- **2xl**: `32px`
- **3xl**: `48px`
- **4xl**: `64px`
- **Step-8**: `96px`
### Grid
Desktop uses a 12-column editorial grid with a dominant 7-column story well and a 3-column dossier rail; tablet collapses to a single column; mobile becomes a vertical narrative stack. Use minmax(0,1fr) columns and min-width:0 children so grids never blow out.
### Whitespace
Whitespace behaves like magazine pacing: tight interior spacing inside data modules, then generous gutters and sectional breaks between narrative beats. Always pad above titles; titles never stuck to container tops.
### Density
Generous between sections, dense within data modules.
### Responsive
Renders from ~390px to 2560px+. Single column on mobile, non-essential nav links and table columns hidden, never any horizontal overflow. On ultra-wide, cap and centre contained content; only the landing hero spans 100vw.
### Breakpoints
- **Lg**: 1200px+
- **Md**: 720-1199px
- **Sm**: 560-719px
- **Xs**: below 560px
## Elevation & Depth
### Shadows
- **Sm**: 3px 3px 0 0 #D4148E, -2px -2px 0 0 #1547D1
- **Md**: 6px 6px 0 0 #D4148E, -4px -4px 0 0 #1547D1
- **Lg**: 8px 8px 0 0 #D4148E, -5px -5px 0 0 #1547D1
## Shapes
### Rounded
- **None**: `0px`
- **Sm**: `0px`
- **Md**: `16px`
- **Lg**: `16px`
- **Full**: `9999px`
### Surfaces
- **Treatment**: paper
- **Bg Pattern**: halftone-dots
- **Card Style**: cream paper panels with thick black keylines and a registration-offset two-plate shadow (magenta down-right, cobalt up-left); never a single accent edge
### Borders
- **Default Width**: 3px
- **Style**: solid
- **Character**: assertive inked keylines: thick, black, rectangular comic-panel frames; depth comes from the registration-offset spot plates, never from a single coloured edge
## Components
### Composition
Build screens as editorial spreads: a dominant feature story well, sharply framed supporting sidebars, and narrative modules arranged by pacing rather than homogeneous dashboard symmetry.
### Hierarchy
Headlines announce sections at poster scale in Bodoni Moda; secondary decks explain the speculative premise; tertiary metadata drops to compact uppercase Space Mono labels and ruled separators to keep dense information scannable.
### Density
High-density but intentional: pack information tightly inside panel systems, then release pressure with generous gutters, full-bleed pull quotes, and isolated illustration moments.
### Signature
Every panel is a black key plate carrying a registration-offset two-plate shadow — a solid magenta plate offset down-right and a solid cobalt plate offset up-left, no blur. Section headers pair oversized serif with uppercase mono kickers and double rules. A faint halftone-dot proof-sheet ground sits behind everything; spot inks behave like poster highlighters.
## 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-019ef79a-f581-7802-9d0d-3abe0e65f5b0/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 cream and black as the constant base, then inject magenta and cobalt as sharp poster spot inks used like highlighters.
- Do Give every surface the registration-offset two-plate shadow; let depth come from the offset, never from a grey hairline or a single accent edge.
- Do Pair expressive serif headlines with rigid monospace metadata to keep the editorial-computational contrast visible.
- Do Let illustration motifs (orbital diagrams, halftone bursts, star maps) support hierarchy in hero and pull-quote zones without obscuring functional content.
- Don't Do not revert to neon-on-black cyberpunk lighting or glassmorphism.
- Don't Do not soften the system with pill-heavy rounded components or pastel gradients.
- Don't Do not give a card a single accent/highlight edge; the offset is a full second plate behind the whole panel.
- Don't Do not arrange every module as identical dashboard cards with interchangeable headers.
### Accessibility
Dense ink on cream holds AA contrast; magenta and cobalt meet contrast against cream and against the key plate. Focus states are explicit inked/offset rings, never removed. The halftone texture stays low-contrast behind text. The page renders complete without JavaScript and respects prefers-reduced-motion.
## Imagery Direction
### Pairs With
overprint
### Summary
Imagery is vintage risograph comic-ink overprint: a few flat spot-colour ink passes in acid magenta, cobalt and dense black on warm cream pulp paper, with deliberate registration misalignment, coarse halftone dot screens and thick black contour linework — the same misregistered print language the CSS speaks.
### Subjects
- deep-space explorers and cosmonauts
- ringed planets and orbital diagrams
- star maps and contour bursts
- survey vessels and relay anchors
- speculative landscapes
### Usage
Use a full-bleed risograph overprint for the landing hero and feature imagery; keep the cream/magenta/cobalt/black plate palette; let the registration offset and halftone show. Never use smooth digital illustration, photography, or a second bright colour.
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.
# Komawari shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019ef79a-f581-7802-9d0d-3abe0e65f5b0`
Slug: `komawari`
## Intent
A serialized science-fiction editorial language: the product screen printed like a proof sheet, paced like a comic spread on warm cream paper, with three ink plates — black key, acid magenta, cobalt — set slightly out of register on purpose. The refined evolution of Avant-Comics Sci-Fi Editorial: same idea and palette family, sharpened to one ownable mechanic — registration offset.
## 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": "#F2E7D0",
"surface": "#FCF6E9",
"surface_2": "#ECDFC4",
"text": "#121212",
"muted": "#6A6052",
"border": "#141414",
"accent": "#D4148E",
"on_accent": "#FCF6E9",
"accent_2": "#1547D1",
"on_accent_2": "#FCF6E9",
"success": "#117A55",
"warning": "#B5760C",
"error": "#C2392F",
"info": "#1547D1"
}
Typography:
{
"base_size": "17px",
"body_font": "Instrument Serif",
"heading_font": "Bodoni Moda",
"mono_font": "Space Mono",
"heading_weight": "800",
"heading_transform": "none",
"letter_spacing": "-0.038em",
"display_line_height": 1.05,
"line_height": 1.55,
"scale_ratio": 1.25,
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,600;6..96,700;6..96,800;6..96,900&family=Instrument+Serif:ital@0;1&family=Space+Mono:wght@400;700&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": true,
"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/komawari/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 cream and black as the constant base, then inject magenta and cobalt as sharp poster spot inks used like highlighters.; Give every surface the registration-offset two-plate shadow; let depth come from the offset, never from a grey hairline or a single accent edge.; Pair expressive serif headlines with rigid monospace metadata to keep the editorial-computational contrast visible.; Let illustration motifs (orbital diagrams, halftone bursts, star maps) support hierarchy in hero and pull-quote zones without obscuring functional content.
- Do not: Do not revert to neon-on-black cyberpunk lighting or glassmorphism.; Do not soften the system with pill-heavy rounded components or pastel gradients.; Do not give a card a single accent/highlight edge; the offset is a full second plate behind the whole panel.; Do not arrange every module as identical dashboard cards with interchangeable headers.
## 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 KomawariShadcnKit() {
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">Komawari</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": "Desktop uses a 12-column editorial grid with a dominant 7-column story well and a 3-column dossier rail; tablet collapses to a single column; mobile becomes a vertical narrative stack. Use minmax(0,1fr) columns and min-width:0 children so grids never blow out.",
"whitespace": "Whitespace behaves like magazine pacing: tight interior spacing inside data modules, then generous gutters and sectional breaks between narrative beats. Always pad above titles; titles never stuck to container tops.",
"density": "Generous between sections, dense within data modules.",
"responsive": "Renders from ~390px to 2560px+. Single column on mobile, non-essential nav links and table columns hidden, never any horizontal overflow. On ultra-wide, cap and centre contained content; only the landing hero spans 100vw.",
"breakpoints": {
"lg": "1200px+",
"md": "720-1199px",
"sm": "560-719px",
"xs": "below 560px"
}
}
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-019ef79a-f581-7802-9d0d-3abe0e65f5b0",
"name": "Komawari",
"slug": "komawari"
},
"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": "Komawari 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 cream and black as the constant base, then inject magenta and cobalt as sharp poster spot inks used like highlighters.",
"Give every surface the registration-offset two-plate shadow; let depth come from the offset, never from a grey hairline or a single accent edge.",
"Pair expressive serif headlines with rigid monospace metadata to keep the editorial-computational contrast visible.",
"Let illustration motifs (orbital diagrams, halftone bursts, star maps) support hierarchy in hero and pull-quote zones without obscuring functional content."
],
"dont": [
"Do not revert to neon-on-black cyberpunk lighting or glassmorphism.",
"Do not soften the system with pill-heavy rounded components or pastel gradients.",
"Do not give a card a single accent/highlight edge; the offset is a full second plate behind the whole panel.",
"Do not arrange every module as identical dashboard cards with interchangeable headers."
]
}
}