# Parchment theme

> Warm parchment and terracotta. A literary serif for headings and replies, a sans for controls, generous corners and a soft paper lift.

Page: https://uicontext.com/themes/parchment

Templates that start in it: [Chat](https://uicontext.com/blocks/ai-chat.md).

It starts light. Its sans-serif font is Inter Variable.

## Use Parchment

Apply the StyleX themes to your app’s root, or copy the roles as CSS variables or JSON for anything else.

### StyleX

```ts
import { parchment, parchmentScheme } from "./ui/uicontext/components/themes.stylex.ts"

// every group parchment sets, and the scheme it starts in
h.div.attrs(sx(...parchment, parchmentScheme)).children(app)
```

### CSS variables

```css
/* Parchment: a UiContext design language. */
:root {
	color-scheme: light;
	/* color */
	--color-app: light-dark(#f6f1e7, #1f1c18);
	--color-panel: light-dark(#fcf9f3, #28241f);
	--color-sidebar: light-dark(#efe8da, #1a1815);
	--color-raised: light-dark(#f1ebdf, #2c2822);
	--color-overlay: light-dark(#fffdf8, #2e2a24);
	--color-hover: light-dark(#f1ebe0, #322d27);
	--color-selected: light-dark(#f0eadf, #36312a);
	--color-line: light-dark(#e4dbca, #3a342c);
	--color-line-strong: light-dark(#d8cdb9, #484137);
	--color-control-line: light-dark(#887d6b, #8d8476);
	--color-fg: light-dark(#2b241d, #efe7d9);
	--color-muted: light-dark(#625747, #b5aa98);
	--color-faint: light-dark(#66594a, #ab9f8d);
	--color-accent: light-dark(#9b4224, #e48c66);
	--color-accent-fg: light-dark(#ffffff, #1f1c18);
	--color-focus-ring: light-dark(#9b4224, #e48c66);
	--color-danger: light-dark(#c4302b, #f87171);
	--color-warning: light-dark(#a34a0b, #fb923c);
	--color-caution: light-dark(#875c05, #facc15);
	--color-info: light-dark(#1d4ed8, #60a5fa);
	--color-success: light-dark(#13723a, #4ade80);
	--color-done: light-dark(#4f46e5, #a5b4fc);
	--color-neutral: light-dark(#66666f, #a1a1aa);
	--color-agent: light-dark(#6d3fd6, #c4b5fd);
	--color-brand: light-dark(#9b4224, #e48c66);
	--color-brand-fg: light-dark(#ffffff, #1f1c18);
	/* signal */
	--signal-accent: light-dark(#9b4224, #e48c66);
	--signal-on-accent: light-dark(#ffffff, #1f1c18);
	--signal-success: light-dark(#13723a, #4ade80);
	--signal-warning: light-dark(#a34a0b, #fb923c);
	--signal-danger: light-dark(#c4302b, #f87171);
	--signal-info: light-dark(#1d4ed8, #60a5fa);
	/* font */
	--font-sans: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono Variable", "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
	--font-serif: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	/* type */
	--type-display-family: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	--type-display-size: 40px;
	--type-display-weight: 500;
	--type-display-line-height: 48px;
	--type-display-tracking: -0.6px;
	--type-page-title-family: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	--type-page-title-size: 28px;
	--type-page-title-weight: 500;
	--type-page-title-line-height: 36px;
	--type-page-title-tracking: -0.3px;
	--type-section-family: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	--type-section-size: 21px;
	--type-section-weight: 500;
	--type-section-line-height: 28px;
	--type-section-tracking: 0px;
	--type-card-title-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-card-title-size: 15px;
	--type-card-title-weight: 600;
	--type-card-title-line-height: 22px;
	--type-card-title-tracking: 0px;
	--type-body-family: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	--type-body-size: 17px;
	--type-body-weight: 400;
	--type-body-line-height: 1.65;
	--type-body-tracking: 0px;
	--type-control-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-control-size: 14px;
	--type-control-weight: 500;
	--type-control-line-height: 20px;
	--type-control-tracking: 0px;
	--type-meta-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-meta-size: 12px;
	--type-meta-weight: 500;
	--type-meta-line-height: 16px;
	--type-meta-tracking: 0px;
	--type-figure-family: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	--type-figure-size: 32px;
	--type-figure-weight: 500;
	--type-figure-line-height: 40px;
	--type-figure-tracking: -0.4px;
	--type-code-family: "JetBrains Mono Variable", "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
	--type-code-size: 13px;
	--type-code-weight: 400;
	--type-code-line-height: 20px;
	--type-code-tracking: 0px;
	/* weight */
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	/* stroke */
	--stroke-hairline: 1px;
	--stroke-control: 1px;
	/* corner */
	--corner-tag: 8px;
	--corner-control: 10px;
	--corner-card: 16px;
	--corner-popover: 18px;
	--corner-modal: 24px;
	--corner-pill: 9999px;
	/* elevation */
	--elevation-control: 0 1px 2px light-dark(rgb(92 72 44 / 0.06), rgb(0 0 0 / 0.4));
	--elevation-card: 0 0 0 1px light-dark(rgb(92 72 44 / 0.08), rgb(255 245 230 / 0.07)), 0 1px 3px light-dark(rgb(92 72 44 / 0.06), rgb(0 0 0 / 0.4));
	--elevation-raised: 0 0 0 1px light-dark(rgb(92 72 44 / 0.08), rgb(255 245 230 / 0.08)), 0 2px 8px light-dark(rgb(92 72 44 / 0.1), rgb(0 0 0 / 0.45));
	--elevation-menu: 0 0 0 1px light-dark(rgb(92 72 44 / 0.08), rgb(255 245 230 / 0.09)), 0 4px 14px light-dark(rgb(92 72 44 / 0.1), rgb(0 0 0 / 0.5));
	--elevation-modal: 0 0 0 1px light-dark(rgb(92 72 44 / 0.08), rgb(255 245 230 / 0.1)), 0 12px 40px light-dark(rgb(92 72 44 / 0.16), rgb(0 0 0 / 0.6));
	--elevation-blur: 0px;
	--elevation-opacity: 1;
	/* density */
	--density-row: 36px;
	--density-control: 36px;
	--density-sidebar: 260px;
	--density-header: 52px;
	--density-content: 768px;
	--density-prose: 680px;
	/* icon */
	--icon-size: 16px;
	--icon-stroke: 1.5px;
	/* motion */
	--motion-fast: 150ms;
	--motion-base: 150ms;
	--motion-slow: 250ms;
	--motion-enter: 200ms;
	--motion-exit: 150ms;
	--motion-menu: 220ms;
	--motion-modal: 280ms;
	--motion-drawer: 320ms;
	--motion-move: 200ms;
	--motion-ease: cubic-bezier(0.2, 0, 0, 1);
	--motion-ease-out: cubic-bezier(0.22, 0.68, 0.36, 1);
	--motion-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--motion-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
	--motion-press: 0.97;
	--motion-pop: 0.96;
	--motion-shift: 4px;
}
@media (pointer: coarse) {
	:root {
		--density-row: max(36px, 44px);
		--density-control: max(36px, 44px);
	}
}
```

### Tokens (JSON)

```json
{
	"name": "parchment",
	"label": "Parchment",
	"scheme": "light",
	"color": {
		"app": {
			"light": "#f6f1e7",
			"dark": "#1f1c18"
		},
		"panel": {
			"light": "#fcf9f3",
			"dark": "#28241f"
		},
		"sidebar": {
			"light": "#efe8da",
			"dark": "#1a1815"
		},
		"raised": {
			"light": "#f1ebdf",
			"dark": "#2c2822"
		},
		"overlay": {
			"light": "#fffdf8",
			"dark": "#2e2a24"
		},
		"hover": {
			"light": "#f1ebe0",
			"dark": "#322d27"
		},
		"selected": {
			"light": "#f0eadf",
			"dark": "#36312a"
		},
		"line": {
			"light": "#e4dbca",
			"dark": "#3a342c"
		},
		"lineStrong": {
			"light": "#d8cdb9",
			"dark": "#484137"
		},
		"controlLine": {
			"light": "#887d6b",
			"dark": "#8d8476"
		},
		"fg": {
			"light": "#2b241d",
			"dark": "#efe7d9"
		},
		"muted": {
			"light": "#625747",
			"dark": "#b5aa98"
		},
		"faint": {
			"light": "#66594a",
			"dark": "#ab9f8d"
		},
		"accent": {
			"light": "#9b4224",
			"dark": "#e48c66"
		},
		"accentFg": {
			"light": "#ffffff",
			"dark": "#1f1c18"
		},
		"focusRing": {
			"light": "#9b4224",
			"dark": "#e48c66"
		},
		"danger": {
			"light": "#c4302b",
			"dark": "#f87171"
		},
		"warning": {
			"light": "#a34a0b",
			"dark": "#fb923c"
		},
		"caution": {
			"light": "#875c05",
			"dark": "#facc15"
		},
		"info": {
			"light": "#1d4ed8",
			"dark": "#60a5fa"
		},
		"success": {
			"light": "#13723a",
			"dark": "#4ade80"
		},
		"done": {
			"light": "#4f46e5",
			"dark": "#a5b4fc"
		},
		"neutral": {
			"light": "#66666f",
			"dark": "#a1a1aa"
		},
		"agent": {
			"light": "#6d3fd6",
			"dark": "#c4b5fd"
		},
		"brand": {
			"light": "#9b4224",
			"dark": "#e48c66"
		},
		"brandFg": {
			"light": "#ffffff",
			"dark": "#1f1c18"
		}
	},
	"signal": {
		"accent": {
			"light": "#9b4224",
			"dark": "#e48c66"
		},
		"onAccent": {
			"light": "#ffffff",
			"dark": "#1f1c18"
		},
		"success": {
			"light": "#13723a",
			"dark": "#4ade80"
		},
		"warning": {
			"light": "#a34a0b",
			"dark": "#fb923c"
		},
		"danger": {
			"light": "#c4302b",
			"dark": "#f87171"
		},
		"info": {
			"light": "#1d4ed8",
			"dark": "#60a5fa"
		}
	},
	"family": {
		"sans": "\"Inter Variable\", \"Inter\", \"Inter Fallback\", ui-sans-serif, system-ui, -apple-system, sans-serif",
		"mono": "\"JetBrains Mono Variable\", \"JetBrains Mono\", \"JetBrains Mono Fallback\", ui-monospace, SFMono-Regular, Menlo, monospace",
		"serif": "\"Newsreader\", \"Newsreader Fallback\", ui-serif, Georgia, Cambria, serif"
	},
	"typography": {
		"display": {
			"family": "serif",
			"size": "40px",
			"weight": "500",
			"lineHeight": "48px",
			"tracking": "-0.6px"
		},
		"pageTitle": {
			"family": "serif",
			"size": "28px",
			"weight": "500",
			"lineHeight": "36px",
			"tracking": "-0.3px"
		},
		"section": {
			"family": "serif",
			"size": "21px",
			"weight": "500",
			"lineHeight": "28px",
			"tracking": "0px"
		},
		"cardTitle": {
			"family": "sans",
			"size": "15px",
			"weight": "600",
			"lineHeight": "22px",
			"tracking": "0px"
		},
		"body": {
			"family": "serif",
			"size": "17px",
			"weight": "400",
			"lineHeight": "1.65",
			"tracking": "0px"
		},
		"control": {
			"family": "sans",
			"size": "14px",
			"weight": "500",
			"lineHeight": "20px",
			"tracking": "0px"
		},
		"meta": {
			"family": "sans",
			"size": "12px",
			"weight": "500",
			"lineHeight": "16px",
			"tracking": "0px"
		},
		"figure": {
			"family": "serif",
			"size": "32px",
			"weight": "500",
			"lineHeight": "40px",
			"tracking": "-0.4px"
		},
		"code": {
			"family": "mono",
			"size": "13px",
			"weight": "400",
			"lineHeight": "20px",
			"tracking": "0px"
		}
	},
	"weight": {
		"regular": "400",
		"medium": "500",
		"semibold": "600",
		"bold": "700"
	},
	"stroke": {
		"hairline": "1px",
		"control": "1px"
	},
	"corner": {
		"tag": "8px",
		"control": "10px",
		"card": "16px",
		"popover": "18px",
		"modal": "24px",
		"pill": "9999px"
	},
	"elevation": {
		"control": {
			"light": "0 1px 2px rgb(92 72 44 / 0.06)",
			"dark": "0 1px 2px rgb(0 0 0 / 0.4)"
		},
		"card": {
			"light": "0 0 0 1px rgb(92 72 44 / 0.08), 0 1px 3px rgb(92 72 44 / 0.06)",
			"dark": "0 0 0 1px rgb(255 245 230 / 0.07), 0 1px 3px rgb(0 0 0 / 0.4)"
		},
		"raised": {
			"light": "0 0 0 1px rgb(92 72 44 / 0.08), 0 2px 8px rgb(92 72 44 / 0.1)",
			"dark": "0 0 0 1px rgb(255 245 230 / 0.08), 0 2px 8px rgb(0 0 0 / 0.45)"
		},
		"menu": {
			"light": "0 0 0 1px rgb(92 72 44 / 0.08), 0 4px 14px rgb(92 72 44 / 0.1)",
			"dark": "0 0 0 1px rgb(255 245 230 / 0.09), 0 4px 14px rgb(0 0 0 / 0.5)"
		},
		"modal": {
			"light": "0 0 0 1px rgb(92 72 44 / 0.08), 0 12px 40px rgb(92 72 44 / 0.16)",
			"dark": "0 0 0 1px rgb(255 245 230 / 0.1), 0 12px 40px rgb(0 0 0 / 0.6)"
		},
		"blur": "0px",
		"opacity": "1"
	},
	"density": {
		"row": "36px",
		"control": "36px",
		"sidebar": "260px",
		"header": "52px",
		"content": "768px",
		"prose": "680px"
	},
	"icon": {
		"size": "16px",
		"stroke": "1.5px"
	},
	"motion": {
		"fast": "150ms",
		"base": "150ms",
		"slow": "250ms",
		"enter": "200ms",
		"exit": "150ms",
		"menu": "220ms",
		"modal": "280ms",
		"drawer": "320ms",
		"move": "200ms",
		"ease": "cubic-bezier(0.2, 0, 0, 1)",
		"easeOut": "cubic-bezier(0.22, 0.68, 0.36, 1)",
		"easeInOut": "cubic-bezier(0.77, 0, 0.175, 1)",
		"easeDrawer": "cubic-bezier(0.32, 0.72, 0, 1)",
		"press": "0.97",
		"pop": "0.96",
		"shift": "4px"
	}
}
```

## Other themes

- [Midnight](https://uicontext.com/themes/midnight.md): Dark-native and dense. Near-black surfaces, half-pixel lines, indigo focus and a variable sans with its own weight steps.
- [Ink](https://uicontext.com/themes/ink.md): Pure black and white. One-pixel rings instead of shadows, a single blue for focus and action, wide pages and a tall header.
- [Slate](https://uicontext.com/themes/slate.md): White cards on a cool gray canvas (a neutral one in the dark), a vivid violet, slate-tinted shadows and big tabular figures.
- [Paper](https://uicontext.com/themes/paper.md): Warm off-white paper, umber-tinted rings, a calm blue and a narrow page made for writing. Headings can switch to a serif.
- [Carbon](https://uicontext.com/themes/carbon.md): Carbon studio surfaces and an emerald brand. Mono for tables, IDs and queries, one-pixel borders and almost no lift.
- [Glass](https://uicontext.com/themes/glass.md): A translucent window over the desktop: a heavy backdrop blur, a one-pixel rim, a coral accent and quick motion. Made for command surfaces.
- [Sunburst](https://uicontext.com/themes/sunburst.md): Neo-brutal and playful. Cream and butter yellows, black ink, two-pixel strokes, hard ink offsets and a grotesk with its mono.

Make your own in the [theme editor](https://uicontext.com/themes/editor.md).
