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.
Organize the interface as a reading room: a masthead above, a dominant warm reading column in the middle, and the apparatus — notes, citations, progress — pushed into a marginal gutter so the story stays sovereign.
The reading-column title and lead establish entry; a rubricated drop-cap opens the prose; superscript markers tie passages to margin notes; the apparatus is deliberately quieter through reduced scale, muted colour, and hairline rules.
Prose is spacious and intimate at a narrow measure; utility regions and the marginalia rail can be moderately dense while staying visually lighter than the reading column.
The gloss rail — a reading column flanked by a marginal gutter, each marked passage tied to its note with a hairline rubric, a reading thread running the spine, and three accents used like a scribe's marks.
A two-zone reading grid: a warm reading column and a marginal gutter beside it for notes, citations, and progress. The masthead breathes above; on smaller viewports the margin folds beneath the column, joined by a top rule.
Desktop shows the column and its margin side by side; tablet keeps them paired with a narrower rail; mobile (~390px) becomes a single reading column with the margin notes stacked beneath and the reading thread retired.
Generous outer space and paragraph spacing, padding above every title, and an intimate column measure so long passages stay calm and legible.
rubricator
Ink-and-gilt manuscript illumination: confident brush-and-reed ink contour over a warm vellum ground, with hand-laid gold-leaf flecks and a few rubricated red marks steering the eye, in lamplit chiaroscuro.
Full-bleed hero behind the dark overlay, and feature/illustration slots inside sections; never used for the thumbnail (the embodiment is the thumbnail source).
# Rubric ## Philosophy A reading system for longform writing. The story stays sovereign in a warm reading column; everything that serves the reading — notes, citations, your place — lives in the margin beside it, tied to the line and never louder than it. Set on a lamplit ink-dark ground so the parchment reading surface reads like a page held to the light. ### Values - the prose is sovereign; the apparatus serves it - every note is tied to its line in the margin, never louder than the body - accents organise the page, they do not decorate it - a calm lamplit reading room over a bright app window ### Anti-Values - card grids and bright chrome that break narrative flow - footnote-heavy apparatus that interrupts the line - accent colour used as a large background behind prose - generic SaaS controls detached from the reading ### Visual Character - The gloss rail: a warm vellum reading column flanked by a marginal gutter, where each marked passage ties to its note with a hairline rubric and a reading thread runs the spine of the page. - A lamplit ink-dark ground against which the parchment reading surface and its glosses glow; structure comes from hairline editorial rules, the gutter, and generous space rather than borders. - High-contrast literary serif display (Fraunces) over a calm reading serif (Source Serif 4), with Archivo folio labels set in wide uppercase in place of the old mono-caption. - A rubricated drop-cap lead-in, superscript gloss markers, and three accents used like a scribe's marks: rubric red to tie, gold leaf to honour, slate to cite. ## Tokens ### Colors | Name | Value | |------|-------| | primary | `#D4452E` | | secondary | `#C9942B` | | accent | `#D4452E` | | background | `#161310` | | surface | `#211C16` | | text | `#F4ECDD` | | muted | `#A99B86` | | border | `#332B22` | | vellum | `#F4ECDD` | | ink | `#221C15` | | gilt | `#C9942B` | | slate | `#5E83A6` | | error | `#C2412B` | | success | `#5E8A55` | | warning | `#C9942B` | | info | `#5E83A6` | ### Typography - **Heading Font**: Fraunces - **Body Font**: Source Serif 4 - **Mono Font**: Archivo - **Base Size**: 18px - **Scale Ratio**: 1.2 - **Line Height**: 1.7 - **Letter Spacing**: -0.02em - **Heading Weight**: 600 - **Heading Transform**: none - **Google Fonts Url**: https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Archivo:wght@400;500;600;700&display=swap ### Spacing - **Base**: 8px - **Scale**: [4,8,12,16,24,32,48,64] ### Radii - **None**: 0 - **Md**: 16px - **Lg**: 24px - **Full**: 9999px ### Shadows - **Sm**: 0 1px 0 rgba(0,0,0,.25) - **Md**: 0 24px 60px rgba(0,0,0,.45) - **Lg**: 0 20px 50px rgba(0,0,0,.5) ### Surfaces - **Treatment**: lamplit ink with parchment reading cards - **Card Style**: warm vellum reading columns and ink panels, no borders; structure from hairline rules, the gutter, and space - **Bg Pattern**: none ### Borders - **Default Width**: 1px - **Accent Width**: 3px - **Style**: solid - **Character**: hairline editorial rules and a 3px accent bar for notices; never decorative borders ### Motion - **Duration**: 180ms - **Easing**: cubic-bezier(0.2,0.8,0.2,1) - **Philosophy**: deliberate; settled by default, a quiet rise-in reveal added on top, respecting reduced-motion ## Rules ### Composition Organize the interface as a reading room: a masthead above, a dominant warm reading column in the middle, and the apparatus — notes, citations, progress — pushed into a marginal gutter so the story stays sovereign. ### Hierarchy The reading-column title and lead establish entry; a rubricated drop-cap opens the prose; superscript markers tie passages to margin notes; the apparatus is deliberately quieter through reduced scale, muted colour, and hairline rules. ### Density Prose is spacious and intimate at a narrow measure; utility regions and the marginalia rail can be moderately dense while staying visually lighter than the reading column. ### Signature The gloss rail — a reading column flanked by a marginal gutter, each marked passage tied to its note with a hairline rubric, a reading thread running the spine, and three accents used like a scribe's marks. ## Layout ### Grid A two-zone reading grid: a warm reading column and a marginal gutter beside it for notes, citations, and progress. The masthead breathes above; on smaller viewports the margin folds beneath the column, joined by a top rule. ### Breakpoints Desktop shows the column and its margin side by side; tablet keeps them paired with a narrower rail; mobile (~390px) becomes a single reading column with the margin notes stacked beneath and the reading thread retired. ### Whitespace Generous outer space and paragraph spacing, padding above every title, and an intimate column measure so long passages stay calm and legible. ### Breakpoints Map - **Mobile**: 390px - **Tablet**: 760px - **Desktop**: 1080px - **Wide**: 1440px ## Guidance ### Do - Keep the reading column intimate and let the prose be sovereign - Tie every margin note to its line; never let the apparatus shout over the body - Use rubric red only to organise — a tie, a mark, one primary action - Reserve gilt for honour and keep citations in slate - Let the lamplit ground do the work so the parchment column reads as a lit page ### Don't - Don't turn the page into a card grid, component gallery, or bright analytics dashboard - Don't use accent colour as a large background behind continuous reading text - Don't box the navigation into a pill bar or nest cards - Don't widen the body so far that the reading measure loses its intimacy ### Accessibility High contrast throughout (parchment on ink, ink on vellum); body text 18px; all form controls explicitly styled with visible rubric focus rings; motion respects prefers-reduced-motion and the page is fully legible with no JavaScript. ## Imagery Direction ### Pairs With rubricator ### Summary Ink-and-gilt manuscript illumination: confident brush-and-reed ink contour over a warm vellum ground, with hand-laid gold-leaf flecks and a few rubricated red marks steering the eye, in lamplit chiaroscuro. ### Subjects - a scholar reading by lamp - a bound ledger or manuscript - a marginal hand at work - a quiet interior lit by a single source - a city, a coastline, an object treated the same way ### Usage Full-bleed hero behind the dark overlay, and feature/illustration slots inside sections; never used for the thumbnail (the embodiment is the thumbnail source).
---
version: "alpha"
name: "Rubric"
description: "Agent-curated design language exported from Katagami as DESIGN.md."
colors:
primary: "#D4452E"
secondary: "#C9942B"
accent: "#D4452E"
background: "#161310"
surface: "#211C16"
text: "#F4ECDD"
muted: "#A99B86"
border: "#332B22"
vellum: "#F4ECDD"
ink: "#221C15"
gilt: "#C9942B"
slate: "#5E83A6"
error: "#C2412B"
success: "#5E8A55"
warning: "#C9942B"
info: "#5E83A6"
typography:
headline-lg:
fontFamily: "Fraunces"
fontSize: "1.944rem"
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
headline-md:
fontFamily: "Fraunces"
fontSize: "1.62rem"
fontWeight: 600
lineHeight: 1.15
letterSpacing: "-0.02em"
body-md:
fontFamily: "Source Serif 4"
fontSize: "18px"
fontWeight: 400
lineHeight: 1.7
letterSpacing: "-0.02em"
label-md:
fontFamily: "Archivo"
fontSize: "0.75rem"
fontWeight: 600
lineHeight: 1
letterSpacing: "0.08em"
rounded:
none: "0px"
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"
components:
color-reference-primary:
backgroundColor: "{colors.primary}"
color-reference-secondary:
backgroundColor: "{colors.secondary}"
color-reference-accent:
backgroundColor: "{colors.accent}"
color-reference-background:
backgroundColor: "{colors.background}"
color-reference-surface:
backgroundColor: "{colors.surface}"
color-reference-text:
backgroundColor: "{colors.text}"
color-reference-muted:
backgroundColor: "{colors.muted}"
color-reference-border:
backgroundColor: "{colors.border}"
color-reference-vellum:
backgroundColor: "{colors.vellum}"
color-reference-ink:
backgroundColor: "{colors.ink}"
color-reference-gilt:
backgroundColor: "{colors.gilt}"
color-reference-slate:
backgroundColor: "{colors.slate}"
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: "#000000"
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"
---
# Rubric
## Overview
A reading system for longform writing. The story stays sovereign in a warm reading column; everything that serves the reading — notes, citations, your place — lives in the margin beside it, tied to the line and never louder than it. Set on a lamplit ink-dark ground so the parchment reading surface reads like a page held to the light.
### Values
- the prose is sovereign; the apparatus serves it
- every note is tied to its line in the margin, never louder than the body
- accents organise the page, they do not decorate it
- a calm lamplit reading room over a bright app window
### Anti-Values
- card grids and bright chrome that break narrative flow
- footnote-heavy apparatus that interrupts the line
- accent colour used as a large background behind prose
- generic SaaS controls detached from the reading
### Visual Character
- The gloss rail: a warm vellum reading column flanked by a marginal gutter, where each marked passage ties to its note with a hairline rubric and a reading thread runs the spine of the page.
- A lamplit ink-dark ground against which the parchment reading surface and its glosses glow; structure comes from hairline editorial rules, the gutter, and generous space rather than borders.
- High-contrast literary serif display (Fraunces) over a calm reading serif (Source Serif 4), with Archivo folio labels set in wide uppercase in place of the old mono-caption.
- A rubricated drop-cap lead-in, superscript gloss markers, and three accents used like a scribe's marks: rubric red to tie, gold leaf to honour, slate to cite.
## 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 | `#D4452E` |
| secondary | `#C9942B` |
| accent | `#D4452E` |
| background | `#161310` |
| surface | `#211C16` |
| text | `#F4ECDD` |
| muted | `#A99B86` |
| border | `#332B22` |
| vellum | `#F4ECDD` |
| ink | `#221C15` |
| gilt | `#C9942B` |
| slate | `#5E83A6` |
| error | `#C2412B` |
| success | `#5E8A55` |
| warning | `#C9942B` |
| info | `#5E83A6` |
## Typography
- **Headline-Lg**: Fraunces, 1.944rem, weight 700, line-height 1.1.
- **Headline-Md**: Fraunces, 1.62rem, weight 600, line-height 1.15.
- **Body-Md**: Source Serif 4, 18px, weight 400, line-height 1.7.
- **Label-Md**: Archivo, 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`
### Grid
A two-zone reading grid: a warm reading column and a marginal gutter beside it for notes, citations, and progress. The masthead breathes above; on smaller viewports the margin folds beneath the column, joined by a top rule.
### Breakpoints
Desktop shows the column and its margin side by side; tablet keeps them paired with a narrower rail; mobile (~390px) becomes a single reading column with the margin notes stacked beneath and the reading thread retired.
### Whitespace
Generous outer space and paragraph spacing, padding above every title, and an intimate column measure so long passages stay calm and legible.
### Breakpoints Map
- **Mobile**: 390px
- **Tablet**: 760px
- **Desktop**: 1080px
- **Wide**: 1440px
## Elevation & Depth
### Shadows
- **Sm**: 0 1px 0 rgba(0,0,0,.25)
- **Md**: 0 24px 60px rgba(0,0,0,.45)
- **Lg**: 0 20px 50px rgba(0,0,0,.5)
## Shapes
### Rounded
- **None**: `0px`
- **Md**: `16px`
- **Lg**: `24px`
- **Full**: `9999px`
### Surfaces
- **Treatment**: lamplit ink with parchment reading cards
- **Card Style**: warm vellum reading columns and ink panels, no borders; structure from hairline rules, the gutter, and space
- **Bg Pattern**: none
### Borders
- **Default Width**: 1px
- **Accent Width**: 3px
- **Style**: solid
- **Character**: hairline editorial rules and a 3px accent bar for notices; never decorative borders
## Components
### Composition
Organize the interface as a reading room: a masthead above, a dominant warm reading column in the middle, and the apparatus — notes, citations, progress — pushed into a marginal gutter so the story stays sovereign.
### Hierarchy
The reading-column title and lead establish entry; a rubricated drop-cap opens the prose; superscript markers tie passages to margin notes; the apparatus is deliberately quieter through reduced scale, muted colour, and hairline rules.
### Density
Prose is spacious and intimate at a narrow measure; utility regions and the marginalia rail can be moderately dense while staying visually lighter than the reading column.
### Signature
The gloss rail — a reading column flanked by a marginal gutter, each marked passage tied to its note with a hairline rubric, a reading thread running the spine, and three accents used like a scribe's marks.
## 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-019efd69-d9fc-7cf3-b38b-2f9dec12b520/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 Keep the reading column intimate and let the prose be sovereign
- Do Tie every margin note to its line; never let the apparatus shout over the body
- Do Use rubric red only to organise — a tie, a mark, one primary action
- Do Reserve gilt for honour and keep citations in slate
- Do Let the lamplit ground do the work so the parchment column reads as a lit page
- Don't Don't turn the page into a card grid, component gallery, or bright analytics dashboard
- Don't Don't use accent colour as a large background behind continuous reading text
- Don't Don't box the navigation into a pill bar or nest cards
- Don't Don't widen the body so far that the reading measure loses its intimacy
### Accessibility
High contrast throughout (parchment on ink, ink on vellum); body text 18px; all form controls explicitly styled with visible rubric focus rings; motion respects prefers-reduced-motion and the page is fully legible with no JavaScript.
## Imagery Direction
### Pairs With
rubricator
### Summary
Ink-and-gilt manuscript illumination: confident brush-and-reed ink contour over a warm vellum ground, with hand-laid gold-leaf flecks and a few rubricated red marks steering the eye, in lamplit chiaroscuro.
### Subjects
- a scholar reading by lamp
- a bound ledger or manuscript
- a marginal hand at work
- a quiet interior lit by a single source
- a city, a coastline, an object treated the same way
### Usage
Full-bleed hero behind the dark overlay, and feature/illustration slots inside sections; never used for the thumbnail (the embodiment is the thumbnail source).
```json
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "rubric",
"type": "registry:theme",
"title": "Rubric shadcn Theme",
"cssVars": {
"theme": {},
"light": {
"background": "#161310",
"foreground": "#F4ECDD",
"card": "#211C16",
"card-foreground": "#F4ECDD",
"popover": "#211C16",
"popover-foreground": "#F4ECDD",
"primary": "#D4452E",
"primary-foreground": "#ffffff",
"secondary": "#C9942B",
"secondary-foreground": "#ffffff",
"muted": "#A99B86",
"muted-foreground": "#F4ECDD",
"accent": "#D4452E",
"accent-foreground": "#ffffff",
"destructive": "#C2412B",
"border": "#332B22",
"input": "#332B22",
"ring": "#D4452E",
"chart-1": "#D4452E",
"chart-2": "#C9942B",
"chart-3": "#D4452E",
"chart-4": "#5E8A55",
"chart-5": "#C9942B",
"sidebar": "#211C16",
"sidebar-foreground": "#F4ECDD",
"sidebar-primary": "#D4452E",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#5E83A6",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#332B22",
"sidebar-ring": "#D4452E",
"radius": "16px"
},
"dark": {
"background": "#0f1115",
"foreground": "#f8fafc",
"card": "#181b22",
"card-foreground": "#f8fafc",
"popover": "#181b22",
"popover-foreground": "#f8fafc",
"primary": "#D4452E",
"primary-foreground": "#ffffff",
"secondary": "#252a33",
"secondary-foreground": "#f8fafc",
"muted": "#252a33",
"muted-foreground": "#a1a1aa",
"accent": "#D4452E",
"accent-foreground": "#ffffff",
"destructive": "#C2412B",
"border": "#303642",
"input": "#303642",
"ring": "#D4452E",
"chart-1": "#D4452E",
"chart-2": "#C9942B",
"chart-3": "#D4452E",
"chart-4": "#5E8A55",
"chart-5": "#C9942B",
"sidebar": "#181b22",
"sidebar-foreground": "#f8fafc",
"sidebar-primary": "#D4452E",
"sidebar-primary-foreground": "#ffffff",
"sidebar-accent": "#D4452E",
"sidebar-accent-foreground": "#ffffff",
"sidebar-border": "#303642",
"sidebar-ring": "#D4452E",
"radius": "16px"
}
},
"meta": {
"source": "katagami",
"languageId": "en-019efd69-d9fc-7cf3-b38b-2f9dec12b520",
"slug": "rubric",
"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",
"border",
"error",
"gilt",
"info",
"ink",
"muted",
"primary",
"secondary",
"slate",
"success",
"surface",
"text",
"vellum",
"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"
],
"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 Rubricand 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: #161310;
--foreground: #F4ECDD;
--card: #211C16;
--card-foreground: #F4ECDD;
--popover: #211C16;
--popover-foreground: #F4ECDD;
--primary: #D4452E;
--primary-foreground: #ffffff;
--secondary: #C9942B;
--secondary-foreground: #ffffff;
--muted: #A99B86;
--muted-foreground: #F4ECDD;
--accent: #D4452E;
--accent-foreground: #ffffff;
--destructive: #C2412B;
--border: #332B22;
--input: #332B22;
--ring: #D4452E;
--chart-1: #D4452E;
--chart-2: #C9942B;
--chart-3: #D4452E;
--chart-4: #5E8A55;
--chart-5: #C9942B;
--sidebar: #211C16;
--sidebar-foreground: #F4ECDD;
--sidebar-primary: #D4452E;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #5E83A6;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #332B22;
--sidebar-ring: #D4452E;
--radius: 16px;
}
.dark {
--background: #0f1115;
--foreground: #f8fafc;
--card: #181b22;
--card-foreground: #f8fafc;
--popover: #181b22;
--popover-foreground: #f8fafc;
--primary: #D4452E;
--primary-foreground: #ffffff;
--secondary: #252a33;
--secondary-foreground: #f8fafc;
--muted: #252a33;
--muted-foreground: #a1a1aa;
--accent: #D4452E;
--accent-foreground: #ffffff;
--destructive: #C2412B;
--border: #303642;
--input: #303642;
--ring: #D4452E;
--chart-1: #D4452E;
--chart-2: #C9942B;
--chart-3: #D4452E;
--chart-4: #5E8A55;
--chart-5: #C9942B;
--sidebar: #181b22;
--sidebar-foreground: #f8fafc;
--sidebar-primary: #D4452E;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #D4452E;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #303642;
--sidebar-ring: #D4452E;
--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 RubricShadcnKit() {
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">Rubric</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": "rubric",
"type": "registry:theme",
"title": "Rubric",
"description": "A lamplit longform-reading theme: warm ink-dark ground, parchment reading surfaces, a rubricator's red, gold leaf, and one cool slate. Accents used like rubrication marks.",
"visualProfile": {
"mode": "dark",
"ground": "warm-ink-black",
"material": "lamplit parchment on ink",
"radius": "16px",
"borders": "hairline editorial rules, no decorative borders",
"accentUsage": "rubrication marks — sparing, signature-led",
"displayFont": "Fraunces",
"bodyFont": "Source Serif 4",
"labelFont": "Archivo"
},
"cssVars": {
"theme": {
"font-sans": "Archivo, system-ui, sans-serif",
"font-serif": "'Source Serif 4', Georgia, serif",
"font-display": "Fraunces, Georgia, serif",
"radius": "16px"
},
"light": {
"background": "#F4ECDD",
"foreground": "#221C15",
"card": "#FBF6EC",
"card-foreground": "#221C15",
"popover": "#FBF6EC",
"popover-foreground": "#221C15",
"primary": "#D4452E",
"primary-foreground": "#F8F1E4",
"secondary": "#EBE0CC",
"secondary-foreground": "#221C15",
"muted": "#EBE0CC",
"muted-foreground": "#6E6354",
"accent": "#C9942B",
"accent-foreground": "#231A06",
"destructive": "#C2412B",
"destructive-foreground": "#F8F1E4",
"border": "#D8CBB2",
"input": "#D8CBB2",
"ring": "#D4452E",
"chart-1": "#D4452E",
"chart-2": "#C9942B",
"chart-3": "#5E83A6",
"chart-4": "#5E8A55",
"chart-5": "#6E6354",
"radius": "16px"
},
"dark": {
"background": "#161310",
"foreground": "#F4ECDD",
"card": "#211C16",
"card-foreground": "#F4ECDD",
"popover": "#211C16",
"popover-foreground": "#F4ECDD",
"primary": "#D4452E",
"primary-foreground": "#F8F1E4",
"secondary": "#2A2319",
"secondary-foreground": "#F4ECDD",
"muted": "#2A2319",
"muted-foreground": "#A99B86",
"accent": "#C9942B",
"accent-foreground": "#231A06",
"destructive": "#C2412B",
"destructive-foreground": "#F8F1E4",
"border": "#332B22",
"input": "#332B22",
"ring": "#D4452E",
"chart-1": "#D4452E",
"chart-2": "#C9942B",
"chart-3": "#5E83A6",
"chart-4": "#5E8A55",
"chart-5": "#A99B86",
"radius": "16px"
}
}
}
# Rubric shadcn/ui Components
Artifact: `component-recipes-v1`
Author: `katagami-ui-projection`
Language ID: `en-019efd69-d9fc-7cf3-b38b-2f9dec12b520`
Slug: `rubric`
## Intent
A reading system for longform writing. The story stays sovereign in a warm reading column; everything that serves the reading — notes, citations, your place — lives in the margin beside it, tied to the line and never louder than it. Set on a lamplit ink-dark ground so the parchment reading surface reads like a page held to the light.
## 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": "#D4452E",
"secondary": "#C9942B",
"accent": "#D4452E",
"background": "#161310",
"surface": "#211C16",
"text": "#F4ECDD",
"muted": "#A99B86",
"border": "#332B22",
"vellum": "#F4ECDD",
"ink": "#221C15",
"gilt": "#C9942B",
"slate": "#5E83A6",
"error": "#C2412B",
"success": "#5E8A55",
"warning": "#C9942B",
"info": "#5E83A6"
}
Typography:
{
"heading_font": "Fraunces",
"body_font": "Source Serif 4",
"mono_font": "Archivo",
"base_size": "18px",
"scale_ratio": 1.2,
"line_height": 1.7,
"letter_spacing": "-0.02em",
"heading_weight": 600,
"heading_transform": "none",
"google_fonts_url": "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Archivo:wght@400;500;600;700&display=swap"
}
## Visual character to preserve
- The gloss rail: a warm vellum reading column flanked by a marginal gutter, where each marked passage ties to its note with a hairline rubric and a reading thread runs the spine of the page.
- A lamplit ink-dark ground against which the parchment reading surface and its glosses glow; structure comes from hairline editorial rules, the gutter, and generous space rather than borders.
- High-contrast literary serif display (Fraunces) over a calm reading serif (Source Serif 4), with Archivo folio labels set in wide uppercase in place of the old mono-caption.
- A rubricated drop-cap lead-in, superscript gloss markers, and three accents used like a scribe's marks: rubric red to tie, gold leaf to honour, slate to cite.
## ShadSync visual profile
{
"family": "editorial",
"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/rubric/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: Keep the reading column intimate and let the prose be sovereign; Tie every margin note to its line; never let the apparatus shout over the body; Use rubric red only to organise — a tie, a mark, one primary action; Reserve gilt for honour and keep citations in slate; Let the lamplit ground do the work so the parchment column reads as a lit page
- Do not: Don't turn the page into a card grid, component gallery, or bright analytics dashboard; Don't use accent colour as a large background behind continuous reading text; Don't box the navigation into a pill bar or nest cards; Don't widen the body so far that the reading measure loses its intimacy
## 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 RubricShadcnKit() {
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">Rubric</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 two-zone reading grid: a warm reading column and a marginal gutter beside it for notes, citations, and progress. The masthead breathes above; on smaller viewports the margin folds beneath the column, joined by a top rule.",
"breakpoints": "Desktop shows the column and its margin side by side; tablet keeps them paired with a narrower rail; mobile (~390px) becomes a single reading column with the margin notes stacked beneath and the reading thread retired.",
"whitespace": "Generous outer space and paragraph spacing, padding above every title, and an intimate column measure so long passages stay calm and legible.",
"breakpoints_map": {
"mobile": "390px",
"tablet": "760px",
"desktop": "1080px",
"wide": "1440px"
}
}
{
"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-019efd69-d9fc-7cf3-b38b-2f9dec12b520",
"name": "Rubric",
"slug": "rubric"
},
"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 gloss rail: a warm vellum reading column flanked by a marginal gutter, where each marked passage ties to its note with a hairline rubric and a reading thread runs the spine of the page.",
"A lamplit ink-dark ground against which the parchment reading surface and its glosses glow; structure comes from hairline editorial rules, the gutter, and generous space rather than borders.",
"High-contrast literary serif display (Fraunces) over a calm reading serif (Source Serif 4), with Archivo folio labels set in wide uppercase in place of the old mono-caption.",
"A rubricated drop-cap lead-in, superscript gloss markers, and three accents used like a scribe's marks: rubric red to tie, gold leaf to honour, slate to cite."
],
"visualProfile": {
"family": "editorial",
"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": "Rubric 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": [
"Keep the reading column intimate and let the prose be sovereign",
"Tie every margin note to its line; never let the apparatus shout over the body",
"Use rubric red only to organise — a tie, a mark, one primary action",
"Reserve gilt for honour and keep citations in slate",
"Let the lamplit ground do the work so the parchment column reads as a lit page"
],
"dont": [
"Don't turn the page into a card grid, component gallery, or bright analytics dashboard",
"Don't use accent colour as a large background behind continuous reading text",
"Don't box the navigation into a pill bar or nest cards",
"Don't widen the body so far that the reading measure loses its intimacy"
]
}
}