Type scale
Design System
Type scale
display/xl
Composable state.
60/500
display/lg
State, without ceremony.
48/500
h1
Ticket: Payment retry loop
30/600
h2
Transitions, guarded
24/600
body
Matchina handles state transitions, effects, and pattern matching — end-to-end typed.
14/400
caption
Last edited 3 hours ago by kai.
12/400
mono/sm
v0.4.0 · 2kb gzipped · 0 dependencies
12/400
eyebrow
now · shipping · api reference
10/500
Eight-step type scale — display, headings, body, caption, mono, eyebrow. Tailwind named sizes throughout.
heading · stackimport { Grid } from "@/components/ui/grid"
import { Heading } from "@/components/ui/heading"
export function TypeScale() {
return (
<Grid className="grid-cols-[140px_1fr_80px] items-baseline gap-x-6 gap-y-4 pb-3 border-b border-border">
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/xl</p>
<Heading level="h1" className="font-serif italic font-medium text-6xl tracking-tight">Composable state.</Heading>
<p className="font-mono text-2xs text-muted-foreground">60/500</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/lg</p>
<Heading level="h1" className="font-serif font-medium text-5xl tracking-tight">State, without ceremony.</Heading>
<p className="font-mono text-2xs text-muted-foreground">48/500</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h1</p>
<Heading level="h1">Ticket: Payment retry loop</Heading>
<p className="font-mono text-2xs text-muted-foreground">30/600</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h2</p>
<Heading level="h2">Transitions, guarded</Heading>
<p className="font-mono text-2xs text-muted-foreground">24/600</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">body</p>
<p className="text-sm leading-relaxed">Matchina handles state transitions, effects, and pattern matching — end-to-end typed.</p>
<p className="font-mono text-2xs text-muted-foreground">14/400</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">caption</p>
<p className="text-xs text-muted-foreground">Last edited 3 hours ago by kai.</p>
<p className="font-mono text-2xs text-muted-foreground">12/400</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">mono/sm</p>
<p className="text-xs font-mono">v0.4.0 · 2kb gzipped · 0 dependencies</p>
<p className="font-mono text-2xs text-muted-foreground">12/400</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">eyebrow</p>
<p className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">now · shipping · api reference</p>
<p className="font-mono text-2xs text-muted-foreground">10/500</p>
</Grid>
)
}
ui26/react
<script lang="ts">
import Grid from "$lib/components/ui/grid.svelte"
import Heading from "$lib/components/ui/heading.svelte"
</script>
<Grid class="grid-cols-[140px_1fr_80px] items-baseline gap-x-6 gap-y-4 pb-3 border-b border-border">
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/xl</p>
<Heading level="h1" class="font-serif italic font-medium text-6xl tracking-tight">Composable state.</Heading>
<p class="font-mono text-2xs text-muted-foreground">60/500</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/lg</p>
<Heading level="h1" class="font-serif font-medium text-5xl tracking-tight">State, without ceremony.</Heading>
<p class="font-mono text-2xs text-muted-foreground">48/500</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h1</p>
<Heading level="h1">Ticket: Payment retry loop</Heading>
<p class="font-mono text-2xs text-muted-foreground">30/600</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h2</p>
<Heading level="h2">Transitions, guarded</Heading>
<p class="font-mono text-2xs text-muted-foreground">24/600</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">body</p>
<p class="text-sm leading-relaxed">Matchina handles state transitions, effects, and pattern matching — end-to-end typed.</p>
<p class="font-mono text-2xs text-muted-foreground">14/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">caption</p>
<p class="text-xs text-muted-foreground">Last edited 3 hours ago by kai.</p>
<p class="font-mono text-2xs text-muted-foreground">12/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">mono/sm</p>
<p class="text-xs font-mono">v0.4.0 · 2kb gzipped · 0 dependencies</p>
<p class="font-mono text-2xs text-muted-foreground">12/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">eyebrow</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">now · shipping · api reference</p>
<p class="font-mono text-2xs text-muted-foreground">10/500</p>
</Grid>
ui26/svelte
---
import Grid from "@/components/ui/grid.astro"
import Heading from "@/components/ui/heading.astro"
---
<Grid class="grid-cols-[140px_1fr_80px] items-baseline gap-x-6 gap-y-4 pb-3 border-b border-border">
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/xl</p>
<Heading level="h1" class="font-serif italic font-medium text-6xl tracking-tight">Composable state.</Heading>
<p class="font-mono text-2xs text-muted-foreground">60/500</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">display/lg</p>
<Heading level="h1" class="font-serif font-medium text-5xl tracking-tight">State, without ceremony.</Heading>
<p class="font-mono text-2xs text-muted-foreground">48/500</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h1</p>
<Heading level="h1">Ticket: Payment retry loop</Heading>
<p class="font-mono text-2xs text-muted-foreground">30/600</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">h2</p>
<Heading level="h2">Transitions, guarded</Heading>
<p class="font-mono text-2xs text-muted-foreground">24/600</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">body</p>
<p class="text-sm leading-relaxed">Matchina handles state transitions, effects, and pattern matching — end-to-end typed.</p>
<p class="font-mono text-2xs text-muted-foreground">14/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">caption</p>
<p class="text-xs text-muted-foreground">Last edited 3 hours ago by kai.</p>
<p class="font-mono text-2xs text-muted-foreground">12/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">mono/sm</p>
<p class="text-xs font-mono">v0.4.0 · 2kb gzipped · 0 dependencies</p>
<p class="font-mono text-2xs text-muted-foreground">12/400</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">eyebrow</p>
<p class="font-mono text-2xs uppercase tracking-wider text-muted-foreground">now · shipping · api reference</p>
<p class="font-mono text-2xs text-muted-foreground">10/500</p>
</Grid>
ui26/astro
{
"root": "grid",
"elements": {
"grid": {
"type": "Grid",
"props": {
"className": "grid-cols-[140px_1fr_80px] items-baseline gap-x-6 gap-y-4 pb-3 border-b border-border"
},
"children": [
"t0",
"s0",
"z0",
"t1",
"s1",
"z1",
"t2",
"s2",
"z2",
"t3",
"s3",
"z3",
"t4",
"s4",
"z4",
"t5",
"s5",
"z5",
"t6",
"s6",
"z6",
"t7",
"s7",
"z7"
]
},
"t0": {
"type": "Text",
"props": {
"content": "display/xl",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s0": {
"type": "Heading",
"props": {
"text": "Composable state.",
"level": "h1",
"className": "font-serif italic font-medium text-6xl tracking-tight"
},
"children": []
},
"z0": {
"type": "Text",
"props": {
"content": "60/500",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t1": {
"type": "Text",
"props": {
"content": "display/lg",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s1": {
"type": "Heading",
"props": {
"text": "State, without ceremony.",
"level": "h1",
"className": "font-serif font-medium text-5xl tracking-tight"
},
"children": []
},
"z1": {
"type": "Text",
"props": {
"content": "48/500",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t2": {
"type": "Text",
"props": {
"content": "h1",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s2": {
"type": "Heading",
"props": {
"text": "Ticket: Payment retry loop",
"level": "h1"
},
"children": []
},
"z2": {
"type": "Text",
"props": {
"content": "30/600",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t3": {
"type": "Text",
"props": {
"content": "h2",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s3": {
"type": "Heading",
"props": {
"text": "Transitions, guarded",
"level": "h2"
},
"children": []
},
"z3": {
"type": "Text",
"props": {
"content": "24/600",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t4": {
"type": "Text",
"props": {
"content": "body",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s4": {
"type": "Text",
"props": {
"content": "Matchina handles state transitions, effects, and pattern matching — end-to-end typed.",
"size": "sm",
"className": "leading-relaxed"
},
"children": []
},
"z4": {
"type": "Text",
"props": {
"content": "14/400",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t5": {
"type": "Text",
"props": {
"content": "caption",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s5": {
"type": "Text",
"props": {
"content": "Last edited 3 hours ago by kai.",
"size": "xs",
"muted": true
},
"children": []
},
"z5": {
"type": "Text",
"props": {
"content": "12/400",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t6": {
"type": "Text",
"props": {
"content": "mono/sm",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s6": {
"type": "Text",
"props": {
"content": "v0.4.0 · 2kb gzipped · 0 dependencies",
"size": "xs",
"mono": true
},
"children": []
},
"z6": {
"type": "Text",
"props": {
"content": "12/400",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
},
"t7": {
"type": "Text",
"props": {
"content": "eyebrow",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"s7": {
"type": "Text",
"props": {
"content": "now · shipping · api reference",
"mono": true,
"className": "text-2xs uppercase tracking-wider text-muted-foreground"
},
"children": []
},
"z7": {
"type": "Text",
"props": {
"content": "10/500",
"mono": true,
"className": "text-2xs text-muted-foreground"
},
"children": []
}
}
}
ui26/json-render