Text

Themed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.

Preview

Props Changes apply to the live preview above.

Installation

npx @lumioui/cli add text

Usage

import { Text } from "@/components/ui/text/text";
<Text />

Examples

Scale

The type scale doing its job in a long-read: display title, dek, byline, body, a subhead, the accent pull quote and a caption.

API reference

Prop Type Default
variant
"default" | "h1" +10 "default" | "h1" | "h2" | "h3" | "h4" | "large" | "small" | "muted" | "lead" | "code" | "blockquote" | "quote"
"default"
tone "default" | "dim"

dim draws the text as dim structure — readable, not yet switched on (DESIGN-TASTE §5c rule 6) — without wrapping it in a Mount. Default default.

"default"
className string —