Typography
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
A portable design language for agents: download the markdown first, then inspect the preview, tokens, and rules as needed.
Portable DESIGN.md source of truth for most agents and apps.
Use an 8px baseline. Paragraphs breathe at 12-16px, object blocks at 20-24px, sections at 32-48px. Tables use 40px default rows, 32px compact rows, and strong typographic alignment rather than boxed cells.
Desktop uses a document-first grid: 72px navigation/thread rail, minmax(620px, 76ch) reading column, and 280-340px marginalia/evidence column with 24px gutters. Tablet collapses marginalia under the relevant section. Mobile becomes a single stacked reading flow.
Canvas warm white; page slightly brighter; inline objects mist-gray; active selection uses a soft cyan/sage wash; warnings use muted amber/rose bands with labels.
Use subtle woven vertical rules, row threads, sticky section breadcrumbs, source chips, and margin notes to show where the reader is without adding panels.
# AYA Text-First Woven Knowledge Workspace ## Philosophy AYA Text-First Woven Knowledge Workspace is a calm document-native design language for long-form thinking, structured knowledge, and readable evidence. It treats text as the primary surface, lets data live as quiet inline artifacts, and uses a faint woven grid as orientation rather than ornament. ### Anti-Values - Dashboard hero cards, KPI walls, neon gradients, glassmorphism, heavy shadows, and rainbow status systems. - Decorative texture that competes with words or reduces contrast. - Enterprise panel sprawl where every metadata field becomes its own box. - Charts without captions, legends, or narrative context. ## Tokens ### Color - **Accent.Annotation**: #B8792D - **Accent.Annotation.Soft**: #F6E9D5 - **Accent.Primary**: #1F7A8C - **Accent.Primary.Soft**: #DDEFF2 - **Accent.Primary.Text**: #0D4F5D - **Accent.Sage**: #5E7F68 - **Accent.Warning**: #A85D62 - **Accent.Warning.Soft**: #F3DDDF - **Border.Hairline**: #D9DDD9 - **Border.Woven**: rgba(23,32,39,0.10) - **State.Focus**: #1F7A8C - **State.Selection**: #DDEFF2 - **Surface.Canvas**: #FBFAF7 - **Surface.Mist**: #ECEFF1 - **Surface.Page**: #FFFDF9 - **Surface.Subtle**: #F4F2EE - **Surface.Thread**: rgba(60,72,82,0.08) - **Text.Ink**: #172027 - **Text.Muted**: #68737C - **Text.Slate**: #3E4A53 ### Radius - **Chip**: 6px - **Object**: 10px - **Page**: 14px ### Shadow - **Lift Subtle**: 0 1px 2px rgba(23,32,39,0.06) - **None Preferred**: none ### Space - **Baseline**: 8px - **Gutter**: 24px - **Inline Gap**: 6px - **Major Gap**: 48px - **Object Padding**: 12px 14px - **Section Gap**: 32px ### Texture - **Paper Fiber**: fine warm-gray noise below 3% opacity; never behind small text without a solid scrim - **Woven Grid**: 1px lines at 24px intervals, 4-8% ink opacity, clipped to quiet surfaces ### Typography - **Body.LineHeight**: 1.62 - **Body.Size**: 16px - **Caption.LineHeight**: 1.35 - **Caption.Size**: 12px - **Dense.LineHeight**: 1.45 - **Dense.Size**: 14px - **Font.Mono**: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, monospace - **Font.Sans**: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif - **Font.Serif.Optional**: Source Serif 4, Georgia, serif - **H1.LineHeight**: 1.18 - **H1.Size**: 32px - **H2.LineHeight**: 1.25 - **H2.Size**: 24px - **Measure.Metadata**: 28-38ch - **Measure.Reading**: 66-76ch ## Rules ### Components - Document page with calm title block, synopsis, provenance chips, and long-form body rhythm. - Inline knowledge object: compact bordered slip with title, status, source count, and one-line summary. - Evidence table: monochrome-first, readable row height, sticky header only when necessary, selected row in primary soft accent. - Captioned micro-chart: small multiple or sparkline embedded beside prose; one active comparison uses accent, all else slate. - Marginalia rail: footnotes, annotations, unresolved questions, and source backlinks aligned to text anchors. - Status chip: quiet outline or soft fill with text label; color is semantic but sparse. ### Content Rules - Prefer plain-language headings and short metadata labels. - Use sentence-case UI copy and visible source/provenance labels. - Keep structured data document-native: references, chips, tables, and footnotes instead of dashboard chrome. ### Interaction States - Hover: 4-6% ink state layer or thread darkening, no dramatic lift. - Focus: 2px cyan/sage outline with 2px offset on controls and inline objects. - Selection: soft cyan/sage background plus left thread marker. - Warning annotation: muted amber/rose seam, label, and optional icon; never red-only. ## Layout ### Density Use an 8px baseline. Paragraphs breathe at 12-16px, object blocks at 20-24px, sections at 32-48px. Tables use 40px default rows, 32px compact rows, and strong typographic alignment rather than boxed cells. ### Grid Desktop uses a document-first grid: 72px navigation/thread rail, minmax(620px, 76ch) reading column, and 280-340px marginalia/evidence column with 24px gutters. Tablet collapses marginalia under the relevant section. Mobile becomes a single stacked reading flow. ### Layers Canvas warm white; page slightly brighter; inline objects mist-gray; active selection uses a soft cyan/sage wash; warnings use muted amber/rose bands with labels. ### Orientation Use subtle woven vertical rules, row threads, sticky section breadcrumbs, source chips, and margin notes to show where the reader is without adding panels. ## Guidance ### Do - Build pages as reading documents with inline objects, side notes, reference chips, and compact tables that follow the prose. - Use warm white and mist-gray layers to separate canvas, page, object, and metadata without visible panel clutter. - Reserve the cool accent for links, focus rings, selected rows, and one active chart comparison at a time. - Use amber or rose only for annotations, warnings, unresolved claims, or editorial attention states. - Caption every chart and table with a plain-language takeaway and source/provenance metadata. - Let woven hairlines, indentation, and baseline rhythm create orientation before icons or backgrounds. ### Don't - Do not create KPI walls, analytics hero cards, saturated status dashboards, or decorative gradient AI motifs. - Do not use more than one accent family in a single local decision unless severity requires it. - Do not hide structured data in heavy side panels; keep it close to the sentence, block, or table it explains. - Do not rely on shadow for hierarchy; prefer layer color, spacing, and hairline seams. - Do not let texture reduce readability or appear as a theme wallpaper. ### Accessibility Maintain WCAG AA contrast for all text and essential states. Focus rings are visible cyan/sage outlines with non-color affordances. Warning/annotation states include labels or icons, not color alone. Keep body text at 16px/1.62 for reading, with dense 14px only for metadata and tables.
---
version: "alpha"
name: "AYA Text-First Woven Knowledge Workspace"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
typography:
headline-lg:
fontFamily: "Inter"
fontSize: "1.953rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
headline-md:
fontFamily: "Inter"
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: "Inter"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
---
# AYA Text-First Woven Knowledge Workspace
## Overview
AYA Text-First Woven Knowledge Workspace is a calm document-native design language for long-form thinking, structured knowledge, and readable evidence. It treats text as the primary surface, lets data live as quiet inline artifacts, and uses a faint woven grid as orientation rather than ornament.
### Anti-Values
- Dashboard hero cards, KPI walls, neon gradients, glassmorphism, heavy shadows, and rainbow status systems.
- Decorative texture that competes with words or reduces contrast.
- Enterprise panel sprawl where every metadata field becomes its own box.
- Charts without captions, legends, or narrative context.
## Typography
- **Headline-Lg**: Inter, 1.953rem, weight 700, line-height 1.1.
- **Headline-Md**: Inter, 1.563rem, weight 600, line-height 1.15.
- **Body-Md**: Inter, 16px, weight 400, line-height 1.5.
- **Label-Md**: Inter, 0.75rem, weight 600, line-height 1.
## Layout
### Density
Use an 8px baseline. Paragraphs breathe at 12-16px, object blocks at 20-24px, sections at 32-48px. Tables use 40px default rows, 32px compact rows, and strong typographic alignment rather than boxed cells.
### Grid
Desktop uses a document-first grid: 72px navigation/thread rail, minmax(620px, 76ch) reading column, and 280-340px marginalia/evidence column with 24px gutters. Tablet collapses marginalia under the relevant section. Mobile becomes a single stacked reading flow.
### Layers
Canvas warm white; page slightly brighter; inline objects mist-gray; active selection uses a soft cyan/sage wash; warnings use muted amber/rose bands with labels.
### Orientation
Use subtle woven vertical rules, row threads, sticky section breadcrumbs, source chips, and margin notes to show where the reader is without adding panels.
## Components
### Components
- Document page with calm title block, synopsis, provenance chips, and long-form body rhythm.
- Inline knowledge object: compact bordered slip with title, status, source count, and one-line summary.
- Evidence table: monochrome-first, readable row height, sticky header only when necessary, selected row in primary soft accent.
- Captioned micro-chart: small multiple or sparkline embedded beside prose; one active comparison uses accent, all else slate.
- Marginalia rail: footnotes, annotations, unresolved questions, and source backlinks aligned to text anchors.
- Status chip: quiet outline or soft fill with text label; color is semantic but sparse.
### Content Rules
- Prefer plain-language headings and short metadata labels.
- Use sentence-case UI copy and visible source/provenance labels.
- Keep structured data document-native: references, chips, tables, and footnotes instead of dashboard chrome.
### Interaction States
- Hover: 4-6% ink state layer or thread darkening, no dramatic lift.
- Focus: 2px cyan/sage outline with 2px offset on controls and inline objects.
- Selection: soft cyan/sage background plus left thread marker.
- Warning annotation: muted amber/rose seam, label, and optional icon; never red-only.
## 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/aya-text-first-woven-knowledge-workspace/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 Build pages as reading documents with inline objects, side notes, reference chips, and compact tables that follow the prose.
- Do Use warm white and mist-gray layers to separate canvas, page, object, and metadata without visible panel clutter.
- Do Reserve the cool accent for links, focus rings, selected rows, and one active chart comparison at a time.
- Do Use amber or rose only for annotations, warnings, unresolved claims, or editorial attention states.
- Do Caption every chart and table with a plain-language takeaway and source/provenance metadata.
- Do Let woven hairlines, indentation, and baseline rhythm create orientation before icons or backgrounds.
- Don't Do not create KPI walls, analytics hero cards, saturated status dashboards, or decorative gradient AI motifs.
- Don't Do not use more than one accent family in a single local decision unless severity requires it.
- Don't Do not hide structured data in heavy side panels; keep it close to the sentence, block, or table it explains.
- Don't Do not rely on shadow for hierarchy; prefer layer color, spacing, and hairline seams.
- Don't Do not let texture reduce readability or appear as a theme wallpaper.
### Accessibility
Maintain WCAG AA contrast for all text and essential states. Focus rings are visible cyan/sage outlines with non-color affordances. Warning/annotation states include labels or icons, not color alone. Keep body text at 16px/1.62 for reading, with dense 14px only for metadata and tables.
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "aya-text-first-woven-knowledge-workspace",
"type": "registry:theme",
"title": "AYA Text-First Woven Knowledge Workspace shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#ffffff",
"foreground": "#111111",
"card": "#ffffff",
"card-foreground": "#111111",
"popover": "#ffffff",
"popover-foreground": "#111111",
"primary": "#111111",
"primary-foreground": "#ffffff",
"secondary": "#f4f4f5",
"secondary-foreground": "#111111",
"muted": "#f4f4f5",
"muted-foreground": "#111111",
"accent": "#111111",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#e4e4e7",
"input": "#e4e4e7",
"ring": "#111111",
"chart-1": "#111111",
"chart-2": "#f4f4f5",
"chart-3": "#111111",
"chart-4": "#16a34a",
"chart-5": "#d97706",
"sidebar": "#ffffff",
"sidebar-foreground": "#111111",
"sidebar-primary": "#111111",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#111111",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#e4e4e7",
"sidebar-ring": "#111111",
"radius": "0.625rem"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#111111",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#111111",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#111111",
"chart-1": "#111111",
"chart-2": "#f4f4f5",
"chart-3": "#111111",
"chart-4": "#16a34a",
"chart-5": "#d97706",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#111111",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#111111",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#111111",
"radius": "0.625rem"
}
},
"meta": {
"source": "katagami",
"languageId": "aya-text-first-woven-knowledge-workspace",
"slug": "aya-text-first-woven-knowledge-workspace",
"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": {
"color": [
"accent.annotation",
"accent.annotation.soft",
"accent.primary",
"accent.primary.soft",
"accent.primary.text",
"accent.sage",
"accent.warning",
"accent.warning.soft",
"border.hairline",
"border.woven",
"state.focus",
"state.selection",
"surface.canvas",
"surface.mist",
"surface.page",
"surface.subtle",
"surface.thread",
"text.ink",
"text.muted",
"text.slate"
],
"radius": [
"chip",
"object",
"page"
],
"shadow": [
"lift_subtle",
"none_preferred"
],
"space": [
"baseline",
"gutter",
"inline_gap",
"major_gap",
"object_padding",
"section_gap"
],
"texture": [
"paper_fiber",
"woven_grid"
],
"typography": [
"body.lineHeight",
"body.size",
"caption.lineHeight",
"caption.size",
"dense.lineHeight",
"dense.size",
"font.mono",
"font.sans",
"font.serif.optional",
"h1.lineHeight",
"h1.size",
"h2.lineHeight",
"h2.size",
"measure.metadata",
"measure.reading"
]
}
}
}
```The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
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.
npx shadcn@latest add button card input textarea select dialog sheet tabs badge separator checkbox switch slider tooltip dropdown-menu table:root {
--background: #ffffff;
--foreground: #111111;
--card: #ffffff;
--card-foreground: #111111;
--popover: #ffffff;
--popover-foreground: #111111;
--primary: #111111;
--primary-foreground: #ffffff;
--secondary: #f4f4f5;
--secondary-foreground: #111111;
--muted: #f4f4f5;
--muted-foreground: #111111;
--accent: #111111;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #e4e4e7;
--input: #e4e4e7;
--ring: #111111;
--chart-1: #111111;
--chart-2: #f4f4f5;
--chart-3: #111111;
--chart-4: #16a34a;
--chart-5: #d97706;
--sidebar: #ffffff;
--sidebar-foreground: #111111;
--sidebar-primary: #111111;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #111111;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #e4e4e7;
--sidebar-ring: #111111;
--radius: 0.625rem;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #111111;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #111111;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--border: #303642;
--input: #303642;
--ring: #111111;
--chart-1: #111111;
--chart-2: #f4f4f5;
--chart-3: #111111;
--chart-4: #16a34a;
--chart-5: #d97706;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #111111;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #111111;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #111111;
--radius: 0.625rem;
}
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 AyaTextFirstWovenKnowledgeWorkspaceShadcnKit() {
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">AYA Text-First Woven Knowledge Workspace</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": "aya-text-first-woven-knowledge-workspace",
"type": "registry:theme",
"title": "AYA Text-First Woven Knowledge Workspace shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#ffffff",
"foreground": "#111111",
"card": "#ffffff",
"card-foreground": "#111111",
"popover": "#ffffff",
"popover-foreground": "#111111",
"primary": "#111111",
"primary-foreground": "#ffffff",
"secondary": "#f4f4f5",
"secondary-foreground": "#111111",
"muted": "#f4f4f5",
"muted-foreground": "#111111",
"accent": "#111111",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#e4e4e7",
"input": "#e4e4e7",
"ring": "#111111",
"chart-1": "#111111",
"chart-2": "#f4f4f5",
"chart-3": "#111111",
"chart-4": "#16a34a",
"chart-5": "#d97706",
"sidebar": "#ffffff",
"sidebar-foreground": "#111111",
"sidebar-primary": "#111111",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#111111",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#e4e4e7",
"sidebar-ring": "#111111",
"radius": "0.625rem"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#111111",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#111111",
"accent-foreground": "#ffffff",
"destructive": "#dc2626",
"border": "#303642",
"input": "#303642",
"ring": "#111111",
"chart-1": "#111111",
"chart-2": "#f4f4f5",
"chart-3": "#111111",
"chart-4": "#16a34a",
"chart-5": "#d97706",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#111111",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#111111",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#111111",
"radius": "0.625rem"
}
},
"meta": {
"source": "katagami",
"languageId": "aya-text-first-woven-knowledge-workspace",
"slug": "aya-text-first-woven-knowledge-workspace",
"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": {
"color": [
"accent.annotation",
"accent.annotation.soft",
"accent.primary",
"accent.primary.soft",
"accent.primary.text",
"accent.sage",
"accent.warning",
"accent.warning.soft",
"border.hairline",
"border.woven",
"state.focus",
"state.selection",
"surface.canvas",
"surface.mist",
"surface.page",
"surface.subtle",
"surface.thread",
"text.ink",
"text.muted",
"text.slate"
],
"radius": [
"chip",
"object",
"page"
],
"shadow": [
"lift_subtle",
"none_preferred"
],
"space": [
"baseline",
"gutter",
"inline_gap",
"major_gap",
"object_padding",
"section_gap"
],
"texture": [
"paper_fiber",
"woven_grid"
],
"typography": [
"body.lineHeight",
"body.size",
"caption.lineHeight",
"caption.size",
"dense.lineHeight",
"dense.size",
"font.mono",
"font.sans",
"font.serif.optional",
"h1.lineHeight",
"h1.size",
"h2.lineHeight",
"h2.size",
"measure.metadata",
"measure.reading"
]
}
}
}
# AYA Text-First Woven Knowledge Workspace shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `aya-text-first-woven-knowledge-workspace`
Slug: `aya-text-first-woven-knowledge-workspace`
## Intent
AYA Text-First Woven Knowledge Workspace is a calm document-native design language for long-form thinking, structured knowledge, and readable evidence. It treats text as the primary surface, lets data live as quiet inline artifacts, and uses a faint woven grid as orientation rather than ornament.
## 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:
Defined by the Katagami source fields.
Typography:
{
"body.lineHeight": "1.62",
"body.size": "16px",
"caption.lineHeight": "1.35",
"caption.size": "12px",
"dense.lineHeight": "1.45",
"dense.size": "14px",
"font.mono": "IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, monospace",
"font.sans": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
"font.serif.optional": "Source Serif 4, Georgia, serif",
"h1.lineHeight": "1.18",
"h1.size": "32px",
"h2.lineHeight": "1.25",
"h2.size": "24px",
"measure.metadata": "28-38ch",
"measure.reading": "66-76ch"
}
## Visual character to preserve
- Make the source language's structural identity visible in every component state.
## ShadSync visual profile
{
"family": "system",
"material": "flat",
"contour": "default",
"border": "solid",
"underlay": false,
"grain": false,
"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/aya-text-first-woven-knowledge-workspace/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: Build pages as reading documents with inline objects, side notes, reference chips, and compact tables that follow the prose.; Use warm white and mist-gray layers to separate canvas, page, object, and metadata without visible panel clutter.; Reserve the cool accent for links, focus rings, selected rows, and one active chart comparison at a time.; Use amber or rose only for annotations, warnings, unresolved claims, or editorial attention states.; Caption every chart and table with a plain-language takeaway and source/provenance metadata.; Let woven hairlines, indentation, and baseline rhythm create orientation before icons or backgrounds.
- Do not: Do not create KPI walls, analytics hero cards, saturated status dashboards, or decorative gradient AI motifs.; Do not use more than one accent family in a single local decision unless severity requires it.; Do not hide structured data in heavy side panels; keep it close to the sentence, block, or table it explains.; Do not rely on shadow for hierarchy; prefer layer color, spacing, and hairline seams.; Do not let texture reduce readability or appear as a theme wallpaper.
## 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 AyaTextFirstWovenKnowledgeWorkspaceShadcnKit() {
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">AYA Text-First Woven Knowledge Workspace</h2>
<p className="mt-1 max-w-xl text-sm text-muted-foreground">
Use the Katagami registry theme, then compose these shadcn primitives
with the language-specific component recipes.
</p>
</div>
<Button>Apply theme</Button>
</div>
<Tabs defaultValue="components">
<TabsList>
<TabsTrigger value="components">Components</TabsTrigger>
<TabsTrigger value="states">States</TabsTrigger>
<TabsTrigger value="export">Export</TabsTrigger>
</TabsList>
</Tabs>
<Card>
<CardHeader>
<CardTitle>Component recipe</CardTitle>
<CardDescription>
Replace this starter content with the agent-authored product scene
from components.md and preview-shots.json.
</CardDescription>
</CardHeader>
<CardContent className="grid gap-3 sm:grid-cols-[1fr_auto]">
<Input defaultValue="Tokenized shadcn surface" aria-label="Recipe name" />
<Button variant="secondary">Preview state</Button>
</CardContent>
<CardFooter className="justify-between">
<Badge>Ready</Badge>
<Button variant="outline">Copy recipe</Button>
</CardFooter>
</Card>
</section>
);
}
```
## Layout notes
{
"density": "Use an 8px baseline. Paragraphs breathe at 12-16px, object blocks at 20-24px, sections at 32-48px. Tables use 40px default rows, 32px compact rows, and strong typographic alignment rather than boxed cells.",
"grid": "Desktop uses a document-first grid: 72px navigation/thread rail, minmax(620px, 76ch) reading column, and 280-340px marginalia/evidence column with 24px gutters. Tablet collapses marginalia under the relevant section. Mobile becomes a single stacked reading flow.",
"layers": "Canvas warm white; page slightly brighter; inline objects mist-gray; active selection uses a soft cyan/sage wash; warnings use muted amber/rose bands with labels.",
"orientation": "Use subtle woven vertical rules, row threads, sticky section breadcrumbs, source chips, and margin notes to show where the reader is without adding panels."
}
{
"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": "aya-text-first-woven-knowledge-workspace",
"name": "AYA Text-First Woven Knowledge Workspace",
"slug": "aya-text-first-woven-knowledge-workspace"
},
"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": "AYA Text-First Woven Knowledge Workspace 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": [
"Build pages as reading documents with inline objects, side notes, reference chips, and compact tables that follow the prose.",
"Use warm white and mist-gray layers to separate canvas, page, object, and metadata without visible panel clutter.",
"Reserve the cool accent for links, focus rings, selected rows, and one active chart comparison at a time.",
"Use amber or rose only for annotations, warnings, unresolved claims, or editorial attention states.",
"Caption every chart and table with a plain-language takeaway and source/provenance metadata.",
"Let woven hairlines, indentation, and baseline rhythm create orientation before icons or backgrounds."
],
"dont": [
"Do not create KPI walls, analytics hero cards, saturated status dashboards, or decorative gradient AI motifs.",
"Do not use more than one accent family in a single local decision unless severity requires it.",
"Do not hide structured data in heavy side panels; keep it close to the sentence, block, or table it explains.",
"Do not rely on shadow for hierarchy; prefer layer color, spacing, and hairline seams.",
"Do not let texture reduce readability or appear as a theme wallpaper."
]
}
}