Components

Lettering

Display titles in the script font with a riso print look: ink with a second color printed a hair off register. Pure CSS text-shadow, so the words are real text at any size. No gradients, no filters.

Install

terminal
npx shadcn@latest add @wobko/lettering

First time here? Add the registry to components.json first. How to install

Examples

Default

Ink with a marker-colored second pass, printed a hair out of register.

Sizes, colors, duotone and wobble

Five sizes; the second color is a token; a duotone print adds a third pass; wobble writes each word a hair off the baseline.

A poster

Hero lettering, a lead line and a sticker on a sheet of paper.

API reference

Lettering

A heading (any element with `as`) in the script role, bold, with `ll-riso`. The offset color is a token (`--ll-riso`) set by `tone`; `calm` density and the misregistration knob bring it to zero.

PropTypeDefaultDescription
asReact.ElementType"h2"The element: a heading level, or p / span for lettering that is not a heading.
size"sm" | "md" | "lg" | "xl" | "hero""lg"30, 48, 60, 72 to 96 (responsive), and 72 to 128 px (responsive).
tone"marker" | "tomato" | "tangerine" | "lemon" | "grass" | "teal" | "sky" | "grape" | "bubblegum""marker"The second color of the print.
duotonesame as tone-A third pass in another accent, printed to the other side.
wobblenumber0Per-word baseline jitter, 0 (typeset) to 2 (hurried). Words stay real, selectable text.
seedstring | number-Pins the hand of the wobble.

Accessibility

  • A real heading (or the element you choose): headings keep their level and outline. The offset color is decoration; the ink text has 14:1 contrast on paper.
  • Use one Lettering as the page's h1 at most; for repeated display text prefer p or span.
  • The riso offset is a text-shadow, so it scales with the text, follows the density knob (calm = none) and disappears in Windows high contrast.

Source

The files the CLI copies into your project.

Loading the source