Text
Interface text in the sizes and tones of the tokens: the sentence under a title, a paragraph, a note, a figure.
import { Text, TextSkeleton } from '@sypnia/ui/react'
Sizes, tones, and its skeleton
numeric for figures that line up; truncate for one line. TextSkeleton on the right.
Everything your project keeps, as tables.
Import a CSV, or connect another database.
The file can be up to 1 GB.
Last import 3 minutes ago.
1,240 rows · 6 columns
customers_2026_november_final_v2.csv
Code
import { Text, TextSkeleton } from '@sypnia/ui/react';
export default function Sizes() {
return (
<div className="sy-cols" style={{ '--cols': 2, '--gap': 'var(--s-6)' } as React.CSSProperties}>
<div className="sy-stack" style={{ '--gap': 'var(--s-2)' } as React.CSSProperties}>
<Text size="lead">Everything your project keeps, as tables.</Text>
<Text>Import a CSV, or connect another database.</Text>
<Text size="sm" tone="soft">The file can be up to 1 GB.</Text>
<Text size="xs" tone="muted">Last import 3 minutes ago.</Text>
<Text size="sm" strong numeric>1,240 rows · 6 columns</Text>
<div style={{ width: '12rem' }}><Text size="sm" truncate>customers_2026_november_final_v2.csv</Text></div>
</div>
<TextSkeleton title lines={4} />
</div>
);
} When to use it
Use it when
- Any text of the interface that is not a heading.
Do not use it when
- Text written for reading at length: that is Prose.
- Changing the colour to say a state: use Status or Badge, which say it in words.
For everyone
- Muted text still keeps AA contrast on night and paper.
- A truncated line keeps its full text for screen readers; give the full value somewhere reachable too.
Props
| Text | Type | Default |
|---|---|---|
as | ElementType | p |
className | string | |
numericNumbers of equal width, for figures that change or line up. | boolean | |
sizelead: the sentence under a title. | "sm" | "md" | "lead" | "xs" | "2xs" | md |
strong | boolean | |
tone | "default" | "soft" | "muted" | default |
truncateOne line, cut with an ellipsis. | boolean |
| TextSkeleton | Type | Default |
|---|---|---|
lines | number | 3 |
title | boolean |