Zephora UI

Data

Typography

Text primitives: semantic Heading (h1-h6) with a decoupled size scale, inline Text, block Paragraph and mono Code — also bundled as the Typography namespace.

Import

import { Heading, Text, Paragraph, Code, Typography } from "@zephora/react";

Examples

Headings

Semantic `level` and visual `size` are independent.

Heading 1

Heading 2

Heading 3

h2 rendered at md size

Text variants

Large semiboldMuted secondary text

This long line is truncated with a single-line ellipsis when it overflows.

Paragraph and code

Install the package with npm install @zephora/react and import any component from the root entry point.

API

Heading props

PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 62Semantic heading level — renders `<h1>`…`<h6>`.
size"xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl"Visual size override; defaults to a scale matching the level.
weight"regular" | "medium" | "semibold" | "bold""semibold"Font weight.
unstyledbooleanfalseHeadless mode — skips Zephora styling.

Text props

PropTypeDefaultDescription
as"span" | "div" | "p" | "strong" | "em""span"Rendered element.
size"xs" | "sm" | "md" | "lg" | "xl""md"Font size scale.
weight"regular" | "medium" | "semibold" | "bold"Font weight.
mutedbooleanfalseUses the muted foreground color.
truncatebooleanfalseSingle-line ellipsis truncation.
align"start" | "center" | "end" | "justify"Text alignment.
unstyledbooleanfalseHeadless mode — skips Zephora styling.

Paragraph props

PropTypeDefaultDescription
leading"tight" | "normal" | "relaxed""normal"Line-height scale.
size"xs" | "sm" | "md" | "lg" | "xl""md"Font size scale.
mutedbooleanfalseUses the muted foreground color.
unstyledbooleanfalseHeadless mode — skips Zephora styling.