Text

Body text on Merid's type scale. Hierarchy comes from the three text tones and weight — not from colour and never from bold.

StableSource

Merid separates regions by surface before border, keeps one accent for interaction, and lets tone and weight carry hierarchy.

Import

tsx
import { Text } from "@merid/react";

Examples

Sizes

lg is the 18px lead, md the 16px body (default), stepping down to the 12px 3xs caption.

lg: lead paragraph, 18px

md: body, 16px

sm: secondary text

xs: dense UI text

2xs: meta

3xs: caption, 12px

Tones

ink, body (default) and muted are the hierarchy tones. accent and danger are for the rare text that must carry meaning through colour.

ink: headings and strong text

body: default running text

muted: meta only

accent: interactive emphasis

danger: error copy

Weights

Regular

Medium

Semibold

Numbers and other elements

numeric turns on tabular numerals so figures line up. as renders another element — span inside a line, small, div.

1,204.50

987.10

Rendered as a span

API reference

Text renders a <p> by default, forwards its ref and passes other HTML attributes through.

PropTypeDefaultDescription
size"lg" | "md" | "sm" | "xs" | "2xs" | "3xs""md"Type scale step: lg 18px lead down to 3xs 12px caption.
tone"ink" | "body" | "muted" | "accent" | "danger""body"Text tone.
weight"regular" | "medium" | "semibold""regular"Font weight. There is no bold.
numericbooleanfalseUses tabular numerals.
prosebooleanfalseCaps the line length at the 720px reading width.
asElementType"p"Element or component to render instead.

Styling

HookValues
.mrd-textRoot element
data-sizelg · md · sm · xs · 2xs · 3xs
data-toneink · body · muted · accent · danger
data-weightregular · medium · semibold
data-numericPresent when numeric
data-prosePresent when prose

There are no text-specific variables; sizes and tones read the global typography and colour tokens.

Accessibility

  • muted falls below 4.5:1 on the page background in light mode. Use it for meta text only, never for content a reader must understand.
  • Do not convey meaning through accent or danger colour alone — pair it with wording or an icon.

Guidelines

Do

Build hierarchy with ink / body / muted and medium weight.

Avoid

Colour text blue for emphasis, or reach for a heavier weight than semibold.

  • Heading — titles and section headings.
  • Code and Kbd — inline technical text.