jbmui

Big

  • UI

Display heading in Geist at weight 800 with tight tracking.

Ideas que
se entienden.

Install

npx shadcn@latest add @jbm/big

Needs the @jbm entry in components.json; see Install once.

Also installs @jbm/tokens.

Usage

Headline with an accent phrase
import { Big } from "@/jbm/ui/big"import { color } from "@/jbm/lib/tokens"<Big size={76}>  Ideas que<br />  <span style={{ color: color.accent }}>se entienden.</span></Big>
Cream heading on a dark card
import { Big } from "@/jbm/ui/big"import { color } from "@/jbm/lib/tokens"import { Card } from "@/jbm/ui/card" // install @jbm/card separately<Card dark><Big size={48} color={color.bg}>Surface</Big></Card>

Props

Stage px
Declared at the documented defaults
Landscape
fill by 101
Vertical
fill by 101
Basis

One line at the default size 96 with line-height 1.05: 96 × 1.05 ≈ 101 stage px. Height is lines × size × 1.05; the block div fills its container's width and wraps long text.

Block-level display heading: Geist sans, weight 800, line-height 1.05, -2px letter spacing, ink by default. Children may include line breaks and accent spans.

PropTypeDefaultDescription
childrenReact.ReactNoderequiredHeading content; use <br /> for deliberate line breaks and a span with color.accent for the one accent word.
sizenumber96Font size in stage pixels; 56 to 170 in practice.
colorstringcolor.inkText color; defaults to ink. Use color.bg on dark surfaces.
styleReact.CSSPropertiesnoneInline styles merged last, for example textAlign or maxWidth.

QA checks

  • Check the largest size used still fits the safe area in both orientations; portrait usually needs a smaller size or manual line breaks.
  • Confirm tight tracking does not collide glyphs at small sizes (below about 56px) and only one span uses the accent.