Woven Ledger Context System
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
borders5 items
- character
- paper-ledger hairlines with occasional 2px thread rails and knot dots for selected or pinned context
- default width
- 1px
- rule width
- 1px
- style
- solid
- thread width
- 2px
colors14 items
motion3 items
- duration
- 160ms
- easing
- cubic-bezier(0.2, 0, 0, 1)
- philosophy
- functional trace motion only: thread lines draw 8-16px, knots fade, and pinned layers settle without bounce
radii5 items
- full
- 9999px
- lg
- 16px
- md
- 10px
- none
- 0
- sm
- 4px
shadows3 items
- lg
- 0 32px 80px rgba(43,42,39,0.10)
- md
- 0 18px 48px rgba(43,42,39,0.07)
- sm
- 0 1px 0 rgba(43,42,39,0.04)
spacing2 items
- base
- 8px
- scale
- 4, 8, 12, 16, 24, 32, 48, 64, 80, 96
surfaces3 items
- bg pattern
- subtle horizontal linear-gradient rules every 32px using rgba(75,65,52,0.045) on ledger-paper zones
- card style
- off-white sheets with faint horizontal rules, soft 10-16px radius, and optional left-edge thread rail
- treatment
- warm flat paper surfaces, pale ledger bands, and ruled separators; avoid glossy glass and saturated fills
typography9 items
- base size
- 16px
- body font
- Source Sans 3
- dense size
- 13.5px
- google fonts url
- https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap
- heading font
- Source Sans 3
- letter spacing
- -0.01em
- line height
- 1.55
- mono font
- IBM Plex Mono
- numeric style
- tabular-nums
rules
Compose screens around a dominant reading or work surface plus a persistent context/provenance lane. Use ledger rows for evidence and compact metrics, not generic equal-card dashboards.
Allow high density only in Ledger mode and keep type at 13-14px minimum with generous row height, tabular figures, and faint horizontal rules. Separate dense clusters with calm paper bands.
Start with readable prose and graphite headings, then marginal thread indicators, then source metadata. Color never outranks text; a selected thread is a line, knot, or rail supported by a label.
layout
mobile < 640px stacks marginal threads above cards, tablet 640-1023px uses reading plus collapsible context stack, desktop >= 1024px enables persistent split panes and ledger tables, wide >= 1280px adds the marginal provenance lane.
Three named densities: Reading for prose and marginal indicators, Inspecting for split-pane context layers, and Ledger for compact evidence/provenance rows. Dense regions keep 13-14px minimum type with increased row height.
Desktop uses a calm three-density shell: Reading mode centers a 680-760px text column with a 72px marginal thread lane; Inspecting mode uses a 7-column reading pane plus 5-column context stack; Ledger mode uses full-width ruled rows with source, excerpt, confidence, timestamp, and action columns.
Preserve traceability at all sizes: left-edge rails become top thread lines on mobile, context stacks become pinned accordions, and ledger rows become source-first record cards with timestamp and confidence still visible.
Use 24-32px around sheets, 48-80px between unrelated evidence groups, and narrow 8-12px gaps inside thread metadata so horizontal rule rhythm remains visible.
guidance
- Use ruled-paper rhythm to organize evidence rows, provenance, source excerpts, and metrics.
- Cap active thread colors at blue, plum, gold, and green; keep inactive categories graphite or neutral.
- Prefer thin strokes, small knots, left-edge rails, and annotated text over filled badges or colorful panels.
- Keep source, excerpt, confidence, and timestamp available inline in provenance views.
- Use tabular numerals for timestamps, confidence, row counts, and metrics.
- Give users density controls between Reading, Inspecting, and Ledger modes instead of forcing one dashboard layout.
- Provide monochrome equivalents through dashed, dotted, braided, or solid thread styles.
- Style every input, select, table row, and focus state with the ledger/thread grammar rather than browser defaults.
- Do not use dense rainbow category tagging or dashboard heatmaps as the primary identity.
- Do not hide provenance or confidence details in modals detached from the text being inspected.
- Do not turn every context item into a card wall; use rows, margins, layers, and inline annotations.
- Do not obscure text with floating translucent panels or decorative glass effects.
- Do not over-compress ledger tables below readable sizes or remove row rhythm.
- Do not use gradients, confetti toasts, or large saturated surfaces for routine feedback.
- Do not rely on color alone for selected, pinned, muted, warning, or source states.
- Do not let charts dominate; annotate and connect them to evidence strands.
katagami spec
# Woven Ledger Context System ## Philosophy A restrained text-and-data design language for AI context products where reading remains primary and every contextual strand can be traced through ledger-like structure, thread marks, and quiet provenance cues. ### Values - Text is the main surface; context should enrich reading without interrupting it. - Every source, metric, and inference remains traceable inline rather than hidden in a modal or separate dashboard. - Color is a thread category system, not decoration; at most four active thread hues appear in one view. - Ruled rhythm, tabular alignment, and marginal markers create confidence before cards, shadows, or charts are introduced. - Dense evidence views should feel calm and inspectable, never like an enterprise admin grid. - The interface must work in monochrome through dash, knot, and stroke patterns so meaning is not color-only. ### Anti-Values - Rainbow tag clouds, heatmaps, and arbitrary category colors that make context feel noisy. - Trello-style card walls for every context object regardless of whether the user is reading, inspecting, or auditing. - Floating glass panels, decorative gradients, and depth effects that obscure reading continuity. - Hidden provenance, source detail, or confidence metadata locked behind modal dialogs. - Over-compressed tables with tiny type, harsh grid lines, and generic enterprise admin styling. ### Visual Character - Warm ledger-paper backgrounds with off-white bands and graphite text create a quiet archival reading field. - Horizontal rules, marginal knots, and thin left-edge thread rails replace heavy panels and filled status badges. - Reading, Inspecting, and Ledger densities let the same product shift from prose to split context review to compact provenance rows. - Thread colors are muted blue, plum, gold, and green, applied as hairline strokes, dots, tabs, and selected series only. - Charts are small multiples with hairline axes and textual annotations; data remains secondary to explanation and evidence. - Navigation uses woven tabs with one active thread line rather than saturated nav blocks or floating glass. ## Tokens ### Borders - **Character**: paper-ledger hairlines with occasional 2px thread rails and knot dots for selected or pinned context - **Default Width**: 1px - **Rule Width**: 1px - **Style**: solid - **Thread Width**: 2px ### Colors | Name | Value | |------|-------| | accent | `#315F7D` | | background | `#FCFAF4` | | border | `#DED6C8` | | border_faint | `rgba(75,65,52,0.09)` | | error | `#9B4B3F` | | info | `#315F7D` | | muted | `#67625A` | | primary | `#315F7D` | | secondary | `#76516B` | | success | `#637247` | | surface | `#FFFFFF` | | surface_alt | `#F3EEE4` | | text | `#2B2A27` | | warning | `#B7852D` | ### Motion - **Duration**: 160ms - **Easing**: cubic-bezier(0.2, 0, 0, 1) - **Philosophy**: functional trace motion only: thread lines draw 8-16px, knots fade, and pinned layers settle without bounce ### Radii - **Full**: 9999px - **Lg**: 16px - **Md**: 10px - **None**: 0 - **Sm**: 4px ### Shadows - **Lg**: 0 32px 80px rgba(43,42,39,0.10) - **Md**: 0 18px 48px rgba(43,42,39,0.07) - **Sm**: 0 1px 0 rgba(43,42,39,0.04) ### Spacing - **Base**: 8px - **Scale**: [4,8,12,16,24,32,48,64,80,96] ### Surfaces - **Bg Pattern**: subtle horizontal linear-gradient rules every 32px using rgba(75,65,52,0.045) on ledger-paper zones - **Card Style**: off-white sheets with faint horizontal rules, soft 10-16px radius, and optional left-edge thread rail - **Treatment**: warm flat paper surfaces, pale ledger bands, and ruled separators; avoid glossy glass and saturated fills ### Typography - **Base Size**: 16px - **Body Font**: Source Sans 3 - **Dense Size**: 13.5px - **Google Fonts Url**: https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap - **Heading Font**: Source Sans 3 - **Letter Spacing**: -0.01em - **Line Height**: 1.55 - **Mono Font**: IBM Plex Mono - **Numeric Style**: tabular-nums ## Rules ### Composition Compose screens around a dominant reading or work surface plus a persistent context/provenance lane. Use ledger rows for evidence and compact metrics, not generic equal-card dashboards. ### Density Allow high density only in Ledger mode and keep type at 13-14px minimum with generous row height, tabular figures, and faint horizontal rules. Separate dense clusters with calm paper bands. ### Hierarchy Start with readable prose and graphite headings, then marginal thread indicators, then source metadata. Color never outranks text; a selected thread is a line, knot, or rail supported by a label. ### Signature Patterns - Thread margin: a narrow left or right lane of colored knots aligned to text paragraphs, each opening inline evidence without a modal. - Braided context stack: pinned, muted, and active context layers appear as thin interlaced rails with clear labels and monochrome dash fallbacks. - Ledger provenance row: source, excerpt, confidence, timestamp, and action are arranged on ruled rows with graphite hierarchy and one selected accent rail. - Woven tabs: top-level navigation uses a single active thread line along the tab edge rather than filled tabs or heavy nav blocks. - Annotated small multiples: charts use hairline axes, one highlighted series, and adjacent text annotations linking back to evidence rows. ## Layout ### Breakpoints mobile < 640px stacks marginal threads above cards, tablet 640-1023px uses reading plus collapsible context stack, desktop >= 1024px enables persistent split panes and ledger tables, wide >= 1280px adds the marginal provenance lane. ### Density Three named densities: Reading for prose and marginal indicators, Inspecting for split-pane context layers, and Ledger for compact evidence/provenance rows. Dense regions keep 13-14px minimum type with increased row height. ### Grid Desktop uses a calm three-density shell: Reading mode centers a 680-760px text column with a 72px marginal thread lane; Inspecting mode uses a 7-column reading pane plus 5-column context stack; Ledger mode uses full-width ruled rows with source, excerpt, confidence, timestamp, and action columns. ### Responsive Preserve traceability at all sizes: left-edge rails become top thread lines on mobile, context stacks become pinned accordions, and ledger rows become source-first record cards with timestamp and confidence still visible. ### Whitespace Use 24-32px around sheets, 48-80px between unrelated evidence groups, and narrow 8-12px gaps inside thread metadata so horizontal rule rhythm remains visible. ## Guidance ### Do - Use ruled-paper rhythm to organize evidence rows, provenance, source excerpts, and metrics. - Cap active thread colors at blue, plum, gold, and green; keep inactive categories graphite or neutral. - Prefer thin strokes, small knots, left-edge rails, and annotated text over filled badges or colorful panels. - Keep source, excerpt, confidence, and timestamp available inline in provenance views. - Use tabular numerals for timestamps, confidence, row counts, and metrics. - Give users density controls between Reading, Inspecting, and Ledger modes instead of forcing one dashboard layout. - Provide monochrome equivalents through dashed, dotted, braided, or solid thread styles. - Style every input, select, table row, and focus state with the ledger/thread grammar rather than browser defaults. ### Don't - Do not use dense rainbow category tagging or dashboard heatmaps as the primary identity. - Do not hide provenance or confidence details in modals detached from the text being inspected. - Do not turn every context item into a card wall; use rows, margins, layers, and inline annotations. - Do not obscure text with floating translucent panels or decorative glass effects. - Do not over-compress ledger tables below readable sizes or remove row rhythm. - Do not use gradients, confetti toasts, or large saturated surfaces for routine feedback. - Do not rely on color alone for selected, pinned, muted, warning, or source states. - Do not let charts dominate; annotate and connect them to evidence strands. ### Accessibility Graphite text meets WCAG AA on ledger-paper and white surfaces; thread colors are paired with labels, dash patterns, or knot shapes; focus uses a visible blue outline plus offset, never color alone. ### Usage Context Best for AI writing, research, knowledge-base, compliance review, and analysis products where users need to read generated text while tracing sources, context layers, metrics, and provenance.
DESIGN.md
---
version: "alpha"
name: "Woven Ledger Context System"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
accent: "#315F7D"
background: "#FCFAF4"
border: "#DED6C8"
error: "#9B4B3F"
info: "#315F7D"
muted: "#67625A"
primary: "#315F7D"
secondary: "#76516B"
success: "#637247"
surface: "#FFFFFF"
surface_alt: "#F3EEE4"
text: "#2B2A27"
warning: "#B7852D"
typography:
headline-lg:
fontFamily: "Source Sans 3"
fontSize: "1.953rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.01em"
headline-md:
fontFamily: "Source Sans 3"
fontSize: "1.563rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.01em"
body-md:
fontFamily: "Source Sans 3"
fontSize: "16px"
fontWeight: 400
lineHeight: 1.55
letterSpacing: "-0.01em"
label-md:
fontFamily: "IBM Plex Mono"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
full: "9999px"
lg: "16px"
md: "10px"
none: "0px"
sm: "4px"
spacing:
base: "8px"
xs: "4px"
sm: "8px"
md: "12px"
lg: "16px"
xl: "24px"
2xl: "32px"
3xl: "48px"
4xl: "64px"
step-8: "80px"
step-9: "96px"
components:
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-background:
backgroundColor: "{colors.background}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-error:
backgroundColor: "{colors.error}"
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-surface_alt:
backgroundColor: "{colors.surface_alt}"
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"
---
# Woven Ledger Context System
## Overview
A restrained text-and-data design language for AI context products where reading remains primary and every contextual strand can be traced through ledger-like structure, thread marks, and quiet provenance cues.
### Values
- Text is the main surface; context should enrich reading without interrupting it.
- Every source, metric, and inference remains traceable inline rather than hidden in a modal or separate dashboard.
- Color is a thread category system, not decoration; at most four active thread hues appear in one view.
- Ruled rhythm, tabular alignment, and marginal markers create confidence before cards, shadows, or charts are introduced.
- Dense evidence views should feel calm and inspectable, never like an enterprise admin grid.
- The interface must work in monochrome through dash, knot, and stroke patterns so meaning is not color-only.
### Anti-Values
- Rainbow tag clouds, heatmaps, and arbitrary category colors that make context feel noisy.
- Trello-style card walls for every context object regardless of whether the user is reading, inspecting, or auditing.
- Floating glass panels, decorative gradients, and depth effects that obscure reading continuity.
- Hidden provenance, source detail, or confidence metadata locked behind modal dialogs.
- Over-compressed tables with tiny type, harsh grid lines, and generic enterprise admin styling.
### Visual Character
- Warm ledger-paper backgrounds with off-white bands and graphite text create a quiet archival reading field.
- Horizontal rules, marginal knots, and thin left-edge thread rails replace heavy panels and filled status badges.
- Reading, Inspecting, and Ledger densities let the same product shift from prose to split context review to compact provenance rows.
- Thread colors are muted blue, plum, gold, and green, applied as hairline strokes, dots, tabs, and selected series only.
- Charts are small multiples with hairline axes and textual annotations; data remains secondary to explanation and evidence.
- Navigation uses woven tabs with one active thread line rather than saturated nav blocks or floating glass.
## 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 | `#315F7D` |
| background | `#FCFAF4` |
| border | `#DED6C8` |
| error | `#9B4B3F` |
| info | `#315F7D` |
| muted | `#67625A` |
| primary | `#315F7D` |
| secondary | `#76516B` |
| success | `#637247` |
| surface | `#FFFFFF` |
| surface_alt | `#F3EEE4` |
| text | `#2B2A27` |
| warning | `#B7852D` |
## Typography
- **Headline-Lg**: Source Sans 3, 1.953rem, weight 700, line-height 1.1.
- **Headline-Md**: Source Sans 3, 1.563rem, weight 600, line-height 1.15.
- **Body-Md**: Source Sans 3, 16px, weight 400, line-height 1.55.
- **Label-Md**: IBM Plex 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**: `80px`
- **Step-9**: `96px`
### Breakpoints
mobile < 640px stacks marginal threads above cards, tablet 640-1023px uses reading plus collapsible context stack, desktop >= 1024px enables persistent split panes and ledger tables, wide >= 1280px adds the marginal provenance lane.
### Density
Three named densities: Reading for prose and marginal indicators, Inspecting for split-pane context layers, and Ledger for compact evidence/provenance rows. Dense regions keep 13-14px minimum type with increased row height.
### Grid
Desktop uses a calm three-density shell: Reading mode centers a 680-760px text column with a 72px marginal thread lane; Inspecting mode uses a 7-column reading pane plus 5-column context stack; Ledger mode uses full-width ruled rows with source, excerpt, confidence, timestamp, and action columns.
### Responsive
Preserve traceability at all sizes: left-edge rails become top thread lines on mobile, context stacks become pinned accordions, and ledger rows become source-first record cards with timestamp and confidence still visible.
### Whitespace
Use 24-32px around sheets, 48-80px between unrelated evidence groups, and narrow 8-12px gaps inside thread metadata so horizontal rule rhythm remains visible.
## Elevation & Depth
### Shadows
- **Lg**: 0 32px 80px rgba(43,42,39,0.10)
- **Md**: 0 18px 48px rgba(43,42,39,0.07)
- **Sm**: 0 1px 0 rgba(43,42,39,0.04)
## Shapes
### Rounded
- **Full**: `9999px`
- **Lg**: `16px`
- **Md**: `10px`
- **None**: `0px`
- **Sm**: `4px`
### Surfaces
- **Bg Pattern**: subtle horizontal linear-gradient rules every 32px using rgba(75,65,52,0.045) on ledger-paper zones
- **Card Style**: off-white sheets with faint horizontal rules, soft 10-16px radius, and optional left-edge thread rail
- **Treatment**: warm flat paper surfaces, pale ledger bands, and ruled separators; avoid glossy glass and saturated fills
### Borders
- **Character**: paper-ledger hairlines with occasional 2px thread rails and knot dots for selected or pinned context
- **Default Width**: 1px
- **Rule Width**: 1px
- **Style**: solid
- **Thread Width**: 2px
## Components
### Composition
Compose screens around a dominant reading or work surface plus a persistent context/provenance lane. Use ledger rows for evidence and compact metrics, not generic equal-card dashboards.
### Density
Allow high density only in Ledger mode and keep type at 13-14px minimum with generous row height, tabular figures, and faint horizontal rules. Separate dense clusters with calm paper bands.
### Hierarchy
Start with readable prose and graphite headings, then marginal thread indicators, then source metadata. Color never outranks text; a selected thread is a line, knot, or rail supported by a label.
### Signature Patterns
- Thread margin: a narrow left or right lane of colored knots aligned to text paragraphs, each opening inline evidence without a modal.
- Braided context stack: pinned, muted, and active context layers appear as thin interlaced rails with clear labels and monochrome dash fallbacks.
- Ledger provenance row: source, excerpt, confidence, timestamp, and action are arranged on ruled rows with graphite hierarchy and one selected accent rail.
- Woven tabs: top-level navigation uses a single active thread line along the tab edge rather than filled tabs or heavy nav blocks.
- Annotated small multiples: charts use hairline axes, one highlighted series, and adjacent text annotations linking back to evidence rows.
## 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-019ee038-79c8-71d0-a339-27578bce3cac/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 ruled-paper rhythm to organize evidence rows, provenance, source excerpts, and metrics.
- Do Cap active thread colors at blue, plum, gold, and green; keep inactive categories graphite or neutral.
- Do Prefer thin strokes, small knots, left-edge rails, and annotated text over filled badges or colorful panels.
- Do Keep source, excerpt, confidence, and timestamp available inline in provenance views.
- Do Use tabular numerals for timestamps, confidence, row counts, and metrics.
- Do Give users density controls between Reading, Inspecting, and Ledger modes instead of forcing one dashboard layout.
- Do Provide monochrome equivalents through dashed, dotted, braided, or solid thread styles.
- Do Style every input, select, table row, and focus state with the ledger/thread grammar rather than browser defaults.
- Don't Do not use dense rainbow category tagging or dashboard heatmaps as the primary identity.
- Don't Do not hide provenance or confidence details in modals detached from the text being inspected.
- Don't Do not turn every context item into a card wall; use rows, margins, layers, and inline annotations.
- Don't Do not obscure text with floating translucent panels or decorative glass effects.
- Don't Do not over-compress ledger tables below readable sizes or remove row rhythm.
- Don't Do not use gradients, confetti toasts, or large saturated surfaces for routine feedback.
- Don't Do not rely on color alone for selected, pinned, muted, warning, or source states.
- Don't Do not let charts dominate; annotate and connect them to evidence strands.
### Accessibility
Graphite text meets WCAG AA on ledger-paper and white surfaces; thread colors are paired with labels, dash patterns, or knot shapes; focus uses a visible blue outline plus offset, never color alone.
### Usage Context
Best for AI writing, research, knowledge-base, compliance review, and analysis products where users need to read generated text while tracing sources, context layers, metrics, and provenance.
shadcn/ui theme
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "woven-ledger-context-system",
"type": "registry:theme",
"title": "Woven Ledger Context System shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#FCFAF4",
"foreground": "#2B2A27",
"card": "#FFFFFF",
"card-foreground": "#2B2A27",
"popover": "#FFFFFF",
"popover-foreground": "#2B2A27",
"primary": "#315F7D",
"primary-foreground": "#ffffff",
"secondary": "#76516B",
"secondary-foreground": "#ffffff",
"muted": "#67625A",
"muted-foreground": "#2B2A27",
"accent": "#315F7D",
"accent-foreground": "#ffffff",
"destructive": "#9B4B3F",
"border": "#DED6C8",
"input": "#DED6C8",
"ring": "#315F7D",
"chart-1": "#315F7D",
"chart-2": "#76516B",
"chart-3": "#315F7D",
"chart-4": "#637247",
"chart-5": "#B7852D",
"sidebar": "#FFFFFF",
"sidebar-foreground": "#2B2A27",
"sidebar-primary": "#315F7D",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#315F7D",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#DED6C8",
"sidebar-ring": "#315F7D",
"radius": "10px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#315F7D",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#315F7D",
"accent-foreground": "#ffffff",
"destructive": "#9B4B3F",
"border": "#303642",
"input": "#303642",
"ring": "#315F7D",
"chart-1": "#315F7D",
"chart-2": "#76516B",
"chart-3": "#315F7D",
"chart-4": "#637247",
"chart-5": "#B7852D",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#315F7D",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#315F7D",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#315F7D",
"radius": "10px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019ee038-79c8-71d0-a339-27578bce3cac",
"slug": "woven-ledger-context-system",
"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": [
"character",
"default_width",
"rule_width",
"style",
"thread_width"
],
"colors": [
"accent",
"background",
"border",
"border_faint",
"error",
"info",
"muted",
"primary",
"secondary",
"success",
"surface",
"surface_alt",
"text",
"warning"
],
"motion": [
"duration",
"easing",
"philosophy"
],
"radii": [
"full",
"lg",
"md",
"none",
"sm"
],
"shadows": [
"lg",
"md",
"sm"
],
"spacing": [
"base",
"scale"
],
"surfaces": [
"bg_pattern",
"card_style",
"treatment"
],
"typography": [
"base_size",
"body_font",
"dense_size",
"google_fonts_url",
"heading_font",
"letter_spacing",
"line_height",
"mono_font",
"numeric_style"
]
}
}
}
```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
- base8px
- xs4px
- sm8px
- md12px
- lg16px
- xl24px
- 2xl32px
- 3xl48px
- 4xl64px
- step-880px
- step-996px
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: #FCFAF4;
--foreground: #2B2A27;
--card: #FFFFFF;
--card-foreground: #2B2A27;
--popover: #FFFFFF;
--popover-foreground: #2B2A27;
--primary: #315F7D;
--primary-foreground: #ffffff;
--secondary: #76516B;
--secondary-foreground: #ffffff;
--muted: #67625A;
--muted-foreground: #2B2A27;
--accent: #315F7D;
--accent-foreground: #ffffff;
--destructive: #9B4B3F;
--border: #DED6C8;
--input: #DED6C8;
--ring: #315F7D;
--chart-1: #315F7D;
--chart-2: #76516B;
--chart-3: #315F7D;
--chart-4: #637247;
--chart-5: #B7852D;
--sidebar: #FFFFFF;
--sidebar-foreground: #2B2A27;
--sidebar-primary: #315F7D;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #315F7D;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #DED6C8;
--sidebar-ring: #315F7D;
--radius: 10px;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #315F7D;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #315F7D;
--accent-foreground: #ffffff;
--destructive: #9B4B3F;
--border: #303642;
--input: #303642;
--ring: #315F7D;
--chart-1: #315F7D;
--chart-2: #76516B;
--chart-3: #315F7D;
--chart-4: #637247;
--chart-5: #B7852D;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #315F7D;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #315F7D;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #315F7D;
--radius: 10px;
}
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 WovenLedgerContextSystemShadcnKit() {
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">Woven Ledger Context System</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": "woven-ledger-context-system",
"type": "registry:theme",
"title": "Woven Ledger Context System shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#FCFAF4",
"foreground": "#2B2A27",
"card": "#FFFFFF",
"card-foreground": "#2B2A27",
"popover": "#FFFFFF",
"popover-foreground": "#2B2A27",
"primary": "#315F7D",
"primary-foreground": "#ffffff",
"secondary": "#76516B",
"secondary-foreground": "#ffffff",
"muted": "#67625A",
"muted-foreground": "#2B2A27",
"accent": "#315F7D",
"accent-foreground": "#ffffff",
"destructive": "#9B4B3F",
"border": "#DED6C8",
"input": "#DED6C8",
"ring": "#315F7D",
"chart-1": "#315F7D",
"chart-2": "#76516B",
"chart-3": "#315F7D",
"chart-4": "#637247",
"chart-5": "#B7852D",
"sidebar": "#FFFFFF",
"sidebar-foreground": "#2B2A27",
"sidebar-primary": "#315F7D",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#315F7D",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#DED6C8",
"sidebar-ring": "#315F7D",
"radius": "10px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#315F7D",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#315F7D",
"accent-foreground": "#ffffff",
"destructive": "#9B4B3F",
"border": "#303642",
"input": "#303642",
"ring": "#315F7D",
"chart-1": "#315F7D",
"chart-2": "#76516B",
"chart-3": "#315F7D",
"chart-4": "#637247",
"chart-5": "#B7852D",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#315F7D",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#315F7D",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#315F7D",
"radius": "10px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019ee038-79c8-71d0-a339-27578bce3cac",
"slug": "woven-ledger-context-system",
"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": [
"character",
"default_width",
"rule_width",
"style",
"thread_width"
],
"colors": [
"accent",
"background",
"border",
"border_faint",
"error",
"info",
"muted",
"primary",
"secondary",
"success",
"surface",
"surface_alt",
"text",
"warning"
],
"motion": [
"duration",
"easing",
"philosophy"
],
"radii": [
"full",
"lg",
"md",
"none",
"sm"
],
"shadows": [
"lg",
"md",
"sm"
],
"spacing": [
"base",
"scale"
],
"surfaces": [
"bg_pattern",
"card_style",
"treatment"
],
"typography": [
"base_size",
"body_font",
"dense_size",
"google_fonts_url",
"heading_font",
"letter_spacing",
"line_height",
"mono_font",
"numeric_style"
]
}
}
}
# Woven Ledger Context System shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019ee038-79c8-71d0-a339-27578bce3cac`
Slug: `woven-ledger-context-system`
## Intent
A restrained text-and-data design language for AI context products where reading remains primary and every contextual strand can be traced through ledger-like structure, thread marks, and quiet provenance cues.
## 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": "#315F7D",
"background": "#FCFAF4",
"border": "#DED6C8",
"border_faint": "rgba(75,65,52,0.09)",
"error": "#9B4B3F",
"info": "#315F7D",
"muted": "#67625A",
"primary": "#315F7D",
"secondary": "#76516B",
"success": "#637247",
"surface": "#FFFFFF",
"surface_alt": "#F3EEE4",
"text": "#2B2A27",
"warning": "#B7852D"
}
Typography:
{
"base_size": "16px",
"body_font": "Source Sans 3",
"dense_size": "13.5px",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap",
"heading_font": "Source Sans 3",
"letter_spacing": "-0.01em",
"line_height": 1.55,
"mono_font": "IBM Plex Mono",
"numeric_style": "tabular-nums"
}
## Visual character to preserve
- Warm ledger-paper backgrounds with off-white bands and graphite text create a quiet archival reading field.
- Horizontal rules, marginal knots, and thin left-edge thread rails replace heavy panels and filled status badges.
- Reading, Inspecting, and Ledger densities let the same product shift from prose to split context review to compact provenance rows.
- Thread colors are muted blue, plum, gold, and green, applied as hairline strokes, dots, tabs, and selected series only.
- Charts are small multiples with hairline axes and textual annotations; data remains secondary to explanation and evidence.
- Navigation uses woven tabs with one active thread line rather than saturated nav blocks or floating glass.
## ShadSync visual profile
{
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": true,
"stickerBadges": true,
"motion": "still",
"density": "dense",
"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/woven-ledger-context-system/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 ruled-paper rhythm to organize evidence rows, provenance, source excerpts, and metrics.; Cap active thread colors at blue, plum, gold, and green; keep inactive categories graphite or neutral.; Prefer thin strokes, small knots, left-edge rails, and annotated text over filled badges or colorful panels.; Keep source, excerpt, confidence, and timestamp available inline in provenance views.; Use tabular numerals for timestamps, confidence, row counts, and metrics.; Give users density controls between Reading, Inspecting, and Ledger modes instead of forcing one dashboard layout.; Provide monochrome equivalents through dashed, dotted, braided, or solid thread styles.; Style every input, select, table row, and focus state with the ledger/thread grammar rather than browser defaults.
- Do not: Do not use dense rainbow category tagging or dashboard heatmaps as the primary identity.; Do not hide provenance or confidence details in modals detached from the text being inspected.; Do not turn every context item into a card wall; use rows, margins, layers, and inline annotations.; Do not obscure text with floating translucent panels or decorative glass effects.; Do not over-compress ledger tables below readable sizes or remove row rhythm.; Do not use gradients, confetti toasts, or large saturated surfaces for routine feedback.; Do not rely on color alone for selected, pinned, muted, warning, or source states.; Do not let charts dominate; annotate and connect them to evidence strands.
## 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 WovenLedgerContextSystemShadcnKit() {
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">Woven Ledger Context System</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
{
"breakpoints": "mobile < 640px stacks marginal threads above cards, tablet 640-1023px uses reading plus collapsible context stack, desktop >= 1024px enables persistent split panes and ledger tables, wide >= 1280px adds the marginal provenance lane.",
"density": "Three named densities: Reading for prose and marginal indicators, Inspecting for split-pane context layers, and Ledger for compact evidence/provenance rows. Dense regions keep 13-14px minimum type with increased row height.",
"grid": "Desktop uses a calm three-density shell: Reading mode centers a 680-760px text column with a 72px marginal thread lane; Inspecting mode uses a 7-column reading pane plus 5-column context stack; Ledger mode uses full-width ruled rows with source, excerpt, confidence, timestamp, and action columns.",
"responsive": "Preserve traceability at all sizes: left-edge rails become top thread lines on mobile, context stacks become pinned accordions, and ledger rows become source-first record cards with timestamp and confidence still visible.",
"whitespace": "Use 24-32px around sheets, 48-80px between unrelated evidence groups, and narrow 8-12px gaps inside thread metadata so horizontal rule rhythm remains visible."
}
{
"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-019ee038-79c8-71d0-a339-27578bce3cac",
"name": "Woven Ledger Context System",
"slug": "woven-ledger-context-system"
},
"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": [
"Warm ledger-paper backgrounds with off-white bands and graphite text create a quiet archival reading field.",
"Horizontal rules, marginal knots, and thin left-edge thread rails replace heavy panels and filled status badges.",
"Reading, Inspecting, and Ledger densities let the same product shift from prose to split context review to compact provenance rows.",
"Thread colors are muted blue, plum, gold, and green, applied as hairline strokes, dots, tabs, and selected series only.",
"Charts are small multiples with hairline axes and textual annotations; data remains secondary to explanation and evidence.",
"Navigation uses woven tabs with one active thread line rather than saturated nav blocks or floating glass."
],
"visualProfile": {
"family": "paper-collage",
"material": "paper",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": true,
"stickerBadges": true,
"motion": "still",
"density": "dense",
"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": "Woven Ledger Context System 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 ruled-paper rhythm to organize evidence rows, provenance, source excerpts, and metrics.",
"Cap active thread colors at blue, plum, gold, and green; keep inactive categories graphite or neutral.",
"Prefer thin strokes, small knots, left-edge rails, and annotated text over filled badges or colorful panels.",
"Keep source, excerpt, confidence, and timestamp available inline in provenance views.",
"Use tabular numerals for timestamps, confidence, row counts, and metrics.",
"Give users density controls between Reading, Inspecting, and Ledger modes instead of forcing one dashboard layout.",
"Provide monochrome equivalents through dashed, dotted, braided, or solid thread styles.",
"Style every input, select, table row, and focus state with the ledger/thread grammar rather than browser defaults."
],
"dont": [
"Do not use dense rainbow category tagging or dashboard heatmaps as the primary identity.",
"Do not hide provenance or confidence details in modals detached from the text being inspected.",
"Do not turn every context item into a card wall; use rows, margins, layers, and inline annotations.",
"Do not obscure text with floating translucent panels or decorative glass effects.",
"Do not over-compress ledger tables below readable sizes or remove row rhythm.",
"Do not use gradients, confetti toasts, or large saturated surfaces for routine feedback.",
"Do not rely on color alone for selected, pinned, muted, warning, or source states.",
"Do not let charts dominate; annotate and connect them to evidence strands."
]
}
}