Typography
Semantic type with independent visual hierarchy.
Interactive preview
Build with intention.
A clear hierarchy makes the important details easier to find.
Small details. Complete ownership.
--dvy-brand: #087565;Usage
import { Typography } from "@devvy-ui/react";
<Typography as="h3" variant="heading">Build with intention.</Typography>
<Typography tone="muted">A calmer reading rhythm.</Typography>API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| as | p | span | h1..h6 | blockquote | code | p | Semantic HTML tag. |
| variant | display | heading | body | small | code | body | Visual type style. |
| tone | default | muted | brand | danger | default | Theme token color. |
Accessibility & behavior
Platform Behavior & Guidelines
Choose heading rank for the document, independently of size. Color does not replace readable meaning. Supports native text-element attributes and an HTMLElement ref. Use CSS overrides for your own font and scale.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add typographyMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.