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.
Compose every region as a piece of cloth on a warp-and-weft grid: generous margins, ruled subdivisions, and selvedge-tab labels protruding from panel edges, leaving the margin open for notes.
Hierarchy comes from selvedge tabs, running-stitch subdivisions, a quiet serif, mono numerals, and one floss accent on the live element — not from large scale shifts.
Moderately dense. Information can be plentiful, but every cluster sits inside a labelled woven panel with visible spacing and stitched micro-labels.
The selvedge tab + warp-rule grid: every panel is woven cloth with a stitched fabric tab woven into its edge; dividers and the headline highlighter are running stitches.
A 12-column desk-page grid on desktop, collapsing to a single column under 760px while preserving margin gutters and the woven warp-weft subdivisions inside modules.
Generous perimeter margins, moderate inter-panel spacing, small internal padding always padded above titles; the open margin is part of the composition.
comfortable-to-moderate
Single column under 760px; the warp grid and selvedge tabs persist at every width; tables scroll inside their panel; hoops and framed windows move below primary content rather than disappearing; the hero headline shrinks with clamp() and wraps, never clipping at 390px.
woven-sampler-embroidery
Subjects rendered as hand-embroidered woven textile — directional satin-stitch fills, couched outlines, french knots, on a visible linen warp-weft weave — in the Madder Skein flosses on a linen ground.
One full-bleed hero per landing; spot illustration bounded inside an embroidery hoop or a framed window, never bleeding across controls.
# Selvage ## Philosophy Selvage keeps the discipline of a Japanese stationery planner — ruled columns, edge labels, open margins, bounded illustration — but works every surface in woven linen and embroidery floss. The grid is a real warp-and-weft weave, section labels are stitched fabric tabs that protrude from a panel's edge, dividers are running stitches, and pictures live inside an embroidery hoop. Structure is woven in, never drawn on top; warmth comes from honest material and three muted flosses used like highlighters on a calm linen ground. ### Values - planner discipline expressed as a real woven warp-and-weft grid - section labels as stitched selvedge tabs, findable at a glance - illustration kept bounded inside an embroidery hoop or framed window - open margins for stitched annotations, timestamps and owners - one floss accent per view, used like a highlighter on linen ### Anti-Values - atmospheric gradients or pastel washes replacing structure - a single accent edge stamped on every card - imagery bleeding across the controls that run the studio - all three flosses spread across the chrome at once - soft blobs that erase the woven, planner-square feel ### Visual Character - the warp-rule grid: a fine warp-and-weft thread grid runs through the ground and every panel, so the module reads as cloth - selvedge tabs: section names are full-pill fabric tabs dyed madder, indigo or saffron that protrude from a panel's top edge - running-stitch rules: rows, columns and panel frames divide on dashed running stitches instead of hard lines - the embroidery hoop: illustration is always bounded inside a circular hoop or a 16:10 framed window, never bleeding free - stitched marginalia: timestamps, owners and helper copy tuck into the margin as quiet mono annotations ## Tokens ### Colors | Name | Value | |------|-------| | primary | `#B23A2E` | | secondary | `#2D4A7C` | | accent | `#C99A1F` | | bg | `#E7DFCE` | | background | `#E7DFCE` | | surface | `#F3EDE1` | | surface_raised | `#FBF7EE` | | text | `#1E2A44` | | muted | `#7C6F5B` | | border | `#CDBFA6` | | on_accent | `#FBF7EE` | | error | `#B23A2E` | | success | `#5C7A4A` | | warning | `#C99A1F` | | info | `#2D4A7C` | ### Typography - **Heading Font**: Fraunces - **Body Font**: Inter - **Mono Font**: Spline Sans Mono - **Base Size**: 17px - **Scale Ratio**: 1.2 - **Line Height**: 1.6 - **Letter Spacing**: -0.01em - **Heading Weight**: 600 - **Heading Transform**: none - **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600&display=swap ### Spacing - **Base**: 8px - **Scale**: [4,8,12,16,24,32,48,64,96] ### Radii - **None**: 0 - **Sm**: 16px - **Md**: 16px - **Lg**: 24px - **Full**: 9999px ### Shadows - **Sm**: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 16px rgba(30,42,68,0.06) - **Md**: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 30px rgba(30,42,68,0.07) - **Lg**: 0 24px 50px rgba(30,42,68,0.14) ### Surfaces - **Treatment**: woven-textile - **Card Style**: a piece of cloth: warm linen surface with a woven warp-weft grid fill and an inset running-stitch (dashed) frame, lifted by a soft shadow; no border ring - **Bg Pattern**: woven-grid ### Borders - **Default Width**: 0 - **Accent Width**: 0 - **Style**: none - **Character**: no borders; separation comes from an inset running-stitch (dashed) frame, woven texture, and soft shadow ### Motion - **Duration**: 700ms - **Easing**: cubic-bezier(0.2,0.8,0.2,1) - **Philosophy**: deliberate: panels settle upward on enter like cloth laid on a table; settled state is the no-JS default ## Rules ### Composition Compose every region as a piece of cloth on a warp-and-weft grid: generous margins, ruled subdivisions, and selvedge-tab labels protruding from panel edges, leaving the margin open for notes. ### Hierarchy Hierarchy comes from selvedge tabs, running-stitch subdivisions, a quiet serif, mono numerals, and one floss accent on the live element — not from large scale shifts. ### Density Moderately dense. Information can be plentiful, but every cluster sits inside a labelled woven panel with visible spacing and stitched micro-labels. ### Signature The selvedge tab + warp-rule grid: every panel is woven cloth with a stitched fabric tab woven into its edge; dividers and the headline highlighter are running stitches. ## Layout ### Grid A 12-column desk-page grid on desktop, collapsing to a single column under 760px while preserving margin gutters and the woven warp-weft subdivisions inside modules. ### Whitespace Generous perimeter margins, moderate inter-panel spacing, small internal padding always padded above titles; the open margin is part of the composition. ### Density comfortable-to-moderate ### Responsive Single column under 760px; the warp grid and selvedge tabs persist at every width; tables scroll inside their panel; hoops and framed windows move below primary content rather than disappearing; the hero headline shrinks with clamp() and wraps, never clipping at 390px. ### Breakpoints - **Sm**: 390px - **Md**: 760px - **Lg**: 1000px - **Xl**: 1700px ## Guidance ### Do - Let the woven warp-and-weft grid show through the ground and every panel. - Label sections with stitched selvedge tabs; keep them short like notebook headings. - Divide rows and columns with running-stitch dashes; keep illustration inside a hoop or frame. - Reserve one floss accent — madder, indigo or saffron — for the live element of a view. - Leave the margin open for timestamps, owners and helper annotations. ### Don't - Replace structure with atmospheric gradients or pastel background washes. - Put a single accent edge on a card, or trap navigation in a floating pill bar. - Let imagery bleed across functional controls. - Spread all three flosses across the chrome in the same view. - Round everything into soft blobs that erase the woven, planner-square feel. ### Accessibility Body 17px+; deep indigo text #1E2A44 on linen clears 4.5:1; floss accents carry linen labels at AA; status never relies on colour alone (a mono label and a dot accompany every floss pill); motion respects prefers-reduced-motion and the settled state renders with no JavaScript. ## Imagery Direction ### Pairs With woven-sampler-embroidery ### Summary Subjects rendered as hand-embroidered woven textile — directional satin-stitch fills, couched outlines, french knots, on a visible linen warp-weft weave — in the Madder Skein flosses on a linen ground. ### Subjects - a flat-lay of stationery and sewing objects worked in thread - an embroidered botanical hoop - a stitched sampler band - a woven map of an order ledger ### Usage One full-bleed hero per landing; spot illustration bounded inside an embroidery hoop or a framed window, never bleeding across controls.
---
version: "alpha"
name: "Selvage"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
primary: "#B23A2E"
secondary: "#2D4A7C"
accent: "#C99A1F"
bg: "#E7DFCE"
background: "#E7DFCE"
surface: "#F3EDE1"
surface_raised: "#FBF7EE"
text: "#1E2A44"
muted: "#7C6F5B"
border: "#CDBFA6"
on_accent: "#FBF7EE"
error: "#B23A2E"
success: "#5C7A4A"
warning: "#C99A1F"
info: "#2D4A7C"
typography:
headline-lg:
fontFamily: "Fraunces"
fontSize: "1.836rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.01em"
headline-md:
fontFamily: "Fraunces"
fontSize: "1.53rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.01em"
body-md:
fontFamily: "Inter"
fontSize: "17px"
fontWeight: 400
lineHeight: 1.6
letterSpacing: "-0.01em"
label-md:
fontFamily: "Spline Sans Mono"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
none: "0px"
sm: "16px"
md: "16px"
lg: "24px"
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-primary:
backgroundColor: "{colors.primary}"
color-reference-secondary:
backgroundColor: "{colors.secondary}"
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-bg:
backgroundColor: "{colors.bg}"
color-reference-background:
backgroundColor: "{colors.background}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-surface_raised:
backgroundColor: "{colors.surface_raised}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-on_accent:
backgroundColor: "{colors.on_accent}"
color-reference-error:
backgroundColor: "{colors.error}"
color-reference-success:
backgroundColor: "{colors.success}"
color-reference-warning:
backgroundColor: "{colors.warning}"
color-reference-info:
backgroundColor: "{colors.info}"
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"
---
# Selvage
## Overview
Selvage keeps the discipline of a Japanese stationery planner — ruled columns, edge labels, open margins, bounded illustration — but works every surface in woven linen and embroidery floss. The grid is a real warp-and-weft weave, section labels are stitched fabric tabs that protrude from a panel's edge, dividers are running stitches, and pictures live inside an embroidery hoop. Structure is woven in, never drawn on top; warmth comes from honest material and three muted flosses used like highlighters on a calm linen ground.
### Values
- planner discipline expressed as a real woven warp-and-weft grid
- section labels as stitched selvedge tabs, findable at a glance
- illustration kept bounded inside an embroidery hoop or framed window
- open margins for stitched annotations, timestamps and owners
- one floss accent per view, used like a highlighter on linen
### Anti-Values
- atmospheric gradients or pastel washes replacing structure
- a single accent edge stamped on every card
- imagery bleeding across the controls that run the studio
- all three flosses spread across the chrome at once
- soft blobs that erase the woven, planner-square feel
### Visual Character
- the warp-rule grid: a fine warp-and-weft thread grid runs through the ground and every panel, so the module reads as cloth
- selvedge tabs: section names are full-pill fabric tabs dyed madder, indigo or saffron that protrude from a panel's top edge
- running-stitch rules: rows, columns and panel frames divide on dashed running stitches instead of hard lines
- the embroidery hoop: illustration is always bounded inside a circular hoop or a 16:10 framed window, never bleeding free
- stitched marginalia: timestamps, owners and helper copy tuck into the margin as quiet mono annotations
## Colors
Use the YAML color tokens as the normative palette. The prose below names the roles agents should preserve when generating UI.
| Token | Value |
|-------|-------|
| primary | `#B23A2E` |
| secondary | `#2D4A7C` |
| accent | `#C99A1F` |
| bg | `#E7DFCE` |
| background | `#E7DFCE` |
| surface | `#F3EDE1` |
| surface_raised | `#FBF7EE` |
| text | `#1E2A44` |
| muted | `#7C6F5B` |
| border | `#CDBFA6` |
| on_accent | `#FBF7EE` |
| error | `#B23A2E` |
| success | `#5C7A4A` |
| warning | `#C99A1F` |
| info | `#2D4A7C` |
## Typography
- **Headline-Lg**: Fraunces, 1.836rem, weight 700, line-height 1.1.
- **Headline-Md**: Fraunces, 1.53rem, weight 600, line-height 1.15.
- **Body-Md**: Inter, 17px, weight 400, line-height 1.6.
- **Label-Md**: Spline Sans 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
A 12-column desk-page grid on desktop, collapsing to a single column under 760px while preserving margin gutters and the woven warp-weft subdivisions inside modules.
### Whitespace
Generous perimeter margins, moderate inter-panel spacing, small internal padding always padded above titles; the open margin is part of the composition.
### Density
comfortable-to-moderate
### Responsive
Single column under 760px; the warp grid and selvedge tabs persist at every width; tables scroll inside their panel; hoops and framed windows move below primary content rather than disappearing; the hero headline shrinks with clamp() and wraps, never clipping at 390px.
### Breakpoints
- **Sm**: 390px
- **Md**: 760px
- **Lg**: 1000px
- **Xl**: 1700px
## Elevation & Depth
### Shadows
- **Sm**: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 16px rgba(30,42,68,0.06)
- **Md**: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 30px rgba(30,42,68,0.07)
- **Lg**: 0 24px 50px rgba(30,42,68,0.14)
## Shapes
### Rounded
- **None**: `0px`
- **Sm**: `16px`
- **Md**: `16px`
- **Lg**: `24px`
- **Full**: `9999px`
### Surfaces
- **Treatment**: woven-textile
- **Card Style**: a piece of cloth: warm linen surface with a woven warp-weft grid fill and an inset running-stitch (dashed) frame, lifted by a soft shadow; no border ring
- **Bg Pattern**: woven-grid
### Borders
- **Default Width**: 0
- **Accent Width**: 0
- **Style**: none
- **Character**: no borders; separation comes from an inset running-stitch (dashed) frame, woven texture, and soft shadow
## Components
### Composition
Compose every region as a piece of cloth on a warp-and-weft grid: generous margins, ruled subdivisions, and selvedge-tab labels protruding from panel edges, leaving the margin open for notes.
### Hierarchy
Hierarchy comes from selvedge tabs, running-stitch subdivisions, a quiet serif, mono numerals, and one floss accent on the live element — not from large scale shifts.
### Density
Moderately dense. Information can be plentiful, but every cluster sits inside a labelled woven panel with visible spacing and stitched micro-labels.
### Signature
The selvedge tab + warp-rule grid: every panel is woven cloth with a stitched fabric tab woven into its edge; dividers and the headline highlighter are running stitches.
## 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-019efddc-be6b-7972-89f9-33558ff1c338/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 Let the woven warp-and-weft grid show through the ground and every panel.
- Do Label sections with stitched selvedge tabs; keep them short like notebook headings.
- Do Divide rows and columns with running-stitch dashes; keep illustration inside a hoop or frame.
- Do Reserve one floss accent — madder, indigo or saffron — for the live element of a view.
- Do Leave the margin open for timestamps, owners and helper annotations.
- Don't Replace structure with atmospheric gradients or pastel background washes.
- Don't Put a single accent edge on a card, or trap navigation in a floating pill bar.
- Don't Let imagery bleed across functional controls.
- Don't Spread all three flosses across the chrome in the same view.
- Don't Round everything into soft blobs that erase the woven, planner-square feel.
### Accessibility
Body 17px+; deep indigo text #1E2A44 on linen clears 4.5:1; floss accents carry linen labels at AA; status never relies on colour alone (a mono label and a dot accompany every floss pill); motion respects prefers-reduced-motion and the settled state renders with no JavaScript.
## Imagery Direction
### Pairs With
woven-sampler-embroidery
### Summary
Subjects rendered as hand-embroidered woven textile — directional satin-stitch fills, couched outlines, french knots, on a visible linen warp-weft weave — in the Madder Skein flosses on a linen ground.
### Subjects
- a flat-lay of stationery and sewing objects worked in thread
- an embroidered botanical hoop
- a stitched sampler band
- a woven map of an order ledger
### Usage
One full-bleed hero per landing; spot illustration bounded inside an embroidery hoop or a framed window, never bleeding across controls.
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "selvage",
"type": "registry:theme",
"title": "Selvage shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#E7DFCE",
"foreground": "#1E2A44",
"card": "#F3EDE1",
"card-foreground": "#1E2A44",
"popover": "#F3EDE1",
"popover-foreground": "#1E2A44",
"primary": "#B23A2E",
"primary-foreground": "#ffffff",
"secondary": "#2D4A7C",
"secondary-foreground": "#ffffff",
"muted": "#7C6F5B",
"muted-foreground": "#1E2A44",
"accent": "#C99A1F",
"accent-foreground": "#ffffff",
"destructive": "#B23A2E",
"border": "#CDBFA6",
"input": "#CDBFA6",
"ring": "#C99A1F",
"chart-1": "#B23A2E",
"chart-2": "#2D4A7C",
"chart-3": "#C99A1F",
"chart-4": "#5C7A4A",
"chart-5": "#C99A1F",
"sidebar": "#F3EDE1",
"sidebar-foreground": "#1E2A44",
"sidebar-primary": "#B23A2E",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#2D4A7C",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#CDBFA6",
"sidebar-ring": "#C99A1F",
"radius": "16px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#B23A2E",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#C99A1F",
"accent-foreground": "#ffffff",
"destructive": "#B23A2E",
"border": "#303642",
"input": "#303642",
"ring": "#C99A1F",
"chart-1": "#B23A2E",
"chart-2": "#2D4A7C",
"chart-3": "#C99A1F",
"chart-4": "#5C7A4A",
"chart-5": "#C99A1F",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#B23A2E",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#C99A1F",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#C99A1F",
"radius": "16px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019efddc-be6b-7972-89f9-33558ff1c338",
"slug": "selvage",
"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": {
"colors": [
"accent",
"background",
"bg",
"border",
"error",
"info",
"muted",
"on_accent",
"primary",
"secondary",
"success",
"surface",
"surface_raised",
"text",
"warning"
],
"typography": [
"base_size",
"body_font",
"google_fonts_url",
"heading_font",
"heading_transform",
"heading_weight",
"letter_spacing",
"line_height",
"mono_font",
"scale_ratio"
],
"spacing": [
"base",
"scale"
],
"radii": [
"full",
"lg",
"md",
"none",
"sm"
],
"shadows": [
"lg",
"md",
"sm"
],
"surfaces": [
"bg_pattern",
"card_style",
"treatment"
],
"borders": [
"accent_width",
"character",
"default_width",
"style"
],
"motion": [
"duration",
"easing",
"philosophy"
]
}
}
}
```The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
Agent-generated
produced by opus-4.8 · sourced by opus-4.8 · images by gpt-image-2
Keep Selvageand swap a palette and an art style onto it — the landing & dashboard recolor live. The Studio does the same with all three lanes free.
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: #E7DFCE;
--foreground: #1E2A44;
--card: #F3EDE1;
--card-foreground: #1E2A44;
--popover: #F3EDE1;
--popover-foreground: #1E2A44;
--primary: #B23A2E;
--primary-foreground: #ffffff;
--secondary: #2D4A7C;
--secondary-foreground: #ffffff;
--muted: #7C6F5B;
--muted-foreground: #1E2A44;
--accent: #C99A1F;
--accent-foreground: #ffffff;
--destructive: #B23A2E;
--border: #CDBFA6;
--input: #CDBFA6;
--ring: #C99A1F;
--chart-1: #B23A2E;
--chart-2: #2D4A7C;
--chart-3: #C99A1F;
--chart-4: #5C7A4A;
--chart-5: #C99A1F;
--sidebar: #F3EDE1;
--sidebar-foreground: #1E2A44;
--sidebar-primary: #B23A2E;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #2D4A7C;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #CDBFA6;
--sidebar-ring: #C99A1F;
--radius: 16px;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #B23A2E;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #C99A1F;
--accent-foreground: #ffffff;
--destructive: #B23A2E;
--border: #303642;
--input: #303642;
--ring: #C99A1F;
--chart-1: #B23A2E;
--chart-2: #2D4A7C;
--chart-3: #C99A1F;
--chart-4: #5C7A4A;
--chart-5: #C99A1F;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #B23A2E;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #C99A1F;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #C99A1F;
--radius: 16px;
}
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 SelvageShadcnKit() {
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">Selvage</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": "selvage",
"type": "registry:theme",
"author": "katagami-agent",
"visualProfile": {
"material": "woven-textile",
"elevation": "panel on cloth: woven warp-weft grid fill + inset running-stitch (dashed) frame + soft drop shadow; no hard borders",
"border": "none (separation from dashed running-stitch inset + woven texture + shadow)",
"radius": "16px soft-fabric panels, full pills for tabs and buttons",
"accentUsage": "one floss at a time, highlighter-style (madder / indigo / saffron)",
"ground": "unbleached linen, light mode, woven warp-weft grid",
"motion": "panels settle upward on enter, deliberate; no JS = settled state"
},
"cssVars": {
"theme": {
"font-sans": "Inter, system-ui, sans-serif",
"font-heading": "\"Fraunces\", Georgia, serif",
"font-mono": "\"Spline Sans Mono\", ui-monospace, monospace",
"radius": "1rem"
},
"light": {
"background": "#E7DFCE",
"foreground": "#1E2A44",
"card": "#F3EDE1",
"card-foreground": "#1E2A44",
"popover": "#FBF7EE",
"popover-foreground": "#1E2A44",
"primary": "#B23A2E",
"primary-foreground": "#FBF7EE",
"secondary": "#2D4A7C",
"secondary-foreground": "#FBF7EE",
"muted": "#FBF7EE",
"muted-foreground": "#7C6F5B",
"accent": "#C99A1F",
"accent-foreground": "#1E2A44",
"destructive": "#B23A2E",
"destructive-foreground": "#FBF7EE",
"success": "#5C7A4A",
"warning": "#C99A1F",
"info": "#2D4A7C",
"border": "transparent",
"input": "#FBF7EE",
"ring": "#2D4A7C",
"radius": "1rem",
"warp": "rgba(124,111,91,0.16)",
"weft": "rgba(124,111,91,0.10)",
"stitch": "1.5px dashed #CDBFA6",
"shadow-panel": "0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 30px rgba(30,42,68,0.07)",
"shadow-tab": "0 4px 10px rgba(30,42,68,0.18)"
},
"dark": {
"background": "#1B2233",
"foreground": "#EDE3CE",
"card": "#222B40",
"card-foreground": "#EDE3CE",
"popover": "#222B40",
"popover-foreground": "#EDE3CE",
"primary": "#D9544A",
"primary-foreground": "#161B27",
"secondary": "#6E92C9",
"secondary-foreground": "#161B27",
"muted": "#2A3550",
"muted-foreground": "#A99C84",
"accent": "#E0B53E",
"accent-foreground": "#161B27",
"destructive": "#D9544A",
"destructive-foreground": "#161B27",
"success": "#86A86B",
"warning": "#E0B53E",
"info": "#6E92C9",
"border": "transparent",
"input": "#2A3550",
"ring": "#6E92C9",
"radius": "1rem",
"warp": "rgba(237,227,206,0.10)",
"weft": "rgba(237,227,206,0.06)",
"stitch": "1.5px dashed #3C4760"
}
}
}
# Selvage shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019efddc-be6b-7972-89f9-33558ff1c338`
Slug: `selvage`
## Intent
Selvage keeps the discipline of a Japanese stationery planner — ruled columns, edge labels, open margins, bounded illustration — but works every surface in woven linen and embroidery floss. The grid is a real warp-and-weft weave, section labels are stitched fabric tabs that protrude from a panel's edge, dividers are running stitches, and pictures live inside an embroidery hoop. Structure is woven in, never drawn on top; warmth comes from honest material and three muted flosses used like highlighters on a calm linen ground.
## 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:
{
"primary": "#B23A2E",
"secondary": "#2D4A7C",
"accent": "#C99A1F",
"bg": "#E7DFCE",
"background": "#E7DFCE",
"surface": "#F3EDE1",
"surface_raised": "#FBF7EE",
"text": "#1E2A44",
"muted": "#7C6F5B",
"border": "#CDBFA6",
"on_accent": "#FBF7EE",
"error": "#B23A2E",
"success": "#5C7A4A",
"warning": "#C99A1F",
"info": "#2D4A7C"
}
Typography:
{
"heading_font": "Fraunces",
"body_font": "Inter",
"mono_font": "Spline Sans Mono",
"base_size": "17px",
"scale_ratio": 1.2,
"line_height": 1.6,
"letter_spacing": "-0.01em",
"heading_weight": "600",
"heading_transform": "none",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600&display=swap"
}
## Visual character to preserve
- the warp-rule grid: a fine warp-and-weft thread grid runs through the ground and every panel, so the module reads as cloth
- selvedge tabs: section names are full-pill fabric tabs dyed madder, indigo or saffron that protrude from a panel's top edge
- running-stitch rules: rows, columns and panel frames divide on dashed running stitches instead of hard lines
- the embroidery hoop: illustration is always bounded inside a circular hoop or a 16:10 framed window, never bleeding free
- stitched marginalia: timestamps, owners and helper copy tuck into the margin as quiet mono annotations
## ShadSync visual profile
{
"family": "system",
"material": "flat",
"contour": "pebble",
"border": "dashed",
"underlay": false,
"grain": true,
"stickerBadges": true,
"motion": "lift",
"density": "balanced",
"accents": [
"primary",
"accent",
"secondary",
"muted"
]
}
## Signature component recipes
### Button
Use `Button` for primary, secondary, outline, and ghost actions. Primary actions must expose the language's strongest contrast pair, while secondary and ghost actions should preserve the surface treatment instead of falling back to default neutral SaaS styling.
### Card
Use `Card`, `CardHeader`, `CardContent`, `CardFooter`, and `CardAction` as the main composition frame. Cards should demonstrate the language's surface, border, hierarchy, and density rules rather than appearing as generic rounded rectangles.
### Input and Textarea
Use `Input` and `Textarea` with visible focus rings, field labels, validation states, and the language's rhythm. Forms should show real product content, not placeholder-only controls.
### Select, Tabs, and Table
Use `Select`, `Tabs`, and `Table` to prove navigation, filtering, and dense data states. The table should show row rhythm, separators, hover/focus states, and an empty or status state when the language calls for it.
### Dialog and Sheet
Use `Dialog` for centered decisions and `Sheet` for contextual editing. Both should inherit the language's spacing, border, overlay, and motion rules.
## Preview shots
- `application-shell`: dashboard or workspace shell with navigation, cards, forms, and state badges.
- `detail-editor`: focused editing flow using input, textarea, select, switch/checkbox, dialog or sheet, and action buttons.
- `data-operations`: table-heavy operational view with tabs, dropdown menu affordances, badges, and destructive/empty states.
- Each preview shot must include a renderable `scene` payload with concrete headline, description, actions, and rows/fields/stats for the UI preview.
## Implementation contract
- Start from local `ui/src/components/ui` shadcn-style primitives; do not create a second component system.
- Apply `/katagami/shadcn/selvage/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: Let the woven warp-and-weft grid show through the ground and every panel.; Label sections with stitched selvedge tabs; keep them short like notebook headings.; Divide rows and columns with running-stitch dashes; keep illustration inside a hoop or frame.; Reserve one floss accent — madder, indigo or saffron — for the live element of a view.; Leave the margin open for timestamps, owners and helper annotations.
- Do not: Replace structure with atmospheric gradients or pastel background washes.; Put a single accent edge on a card, or trap navigation in a floating pill bar.; Let imagery bleed across functional controls.; Spread all three flosses across the chrome in the same view.; Round everything into soft blobs that erase the woven, planner-square feel.
## 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 SelvageShadcnKit() {
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">Selvage</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": "A 12-column desk-page grid on desktop, collapsing to a single column under 760px while preserving margin gutters and the woven warp-weft subdivisions inside modules.",
"whitespace": "Generous perimeter margins, moderate inter-panel spacing, small internal padding always padded above titles; the open margin is part of the composition.",
"density": "comfortable-to-moderate",
"responsive": "Single column under 760px; the warp grid and selvedge tabs persist at every width; tables scroll inside their panel; hoops and framed windows move below primary content rather than disappearing; the hero headline shrinks with clamp() and wraps, never clipping at 390px.",
"breakpoints": {
"sm": "390px",
"md": "760px",
"lg": "1000px",
"xl": "1700px"
}
}
{
"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-019efddc-be6b-7972-89f9-33558ff1c338",
"name": "Selvage",
"slug": "selvage"
},
"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": [
"the warp-rule grid: a fine warp-and-weft thread grid runs through the ground and every panel, so the module reads as cloth",
"selvedge tabs: section names are full-pill fabric tabs dyed madder, indigo or saffron that protrude from a panel's top edge",
"running-stitch rules: rows, columns and panel frames divide on dashed running stitches instead of hard lines",
"the embroidery hoop: illustration is always bounded inside a circular hoop or a 16:10 framed window, never bleeding free",
"stitched marginalia: timestamps, owners and helper copy tuck into the margin as quiet mono annotations"
],
"visualProfile": {
"family": "system",
"material": "flat",
"contour": "pebble",
"border": "dashed",
"underlay": false,
"grain": false,
"stickerBadges": true,
"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": "Selvage 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": [
"Let the woven warp-and-weft grid show through the ground and every panel.",
"Label sections with stitched selvedge tabs; keep them short like notebook headings.",
"Divide rows and columns with running-stitch dashes; keep illustration inside a hoop or frame.",
"Reserve one floss accent — madder, indigo or saffron — for the live element of a view.",
"Leave the margin open for timestamps, owners and helper annotations."
],
"dont": [
"Replace structure with atmospheric gradients or pastel background washes.",
"Put a single accent edge on a card, or trap navigation in a floating pill bar.",
"Let imagery bleed across functional controls.",
"Spread all three flosses across the chrome in the same view.",
"Round everything into soft blobs that erase the woven, planner-square feel."
]
}
}