Calm motion: animations on this site only fade, with no movement
Type scale
A specimen of the font sizes, with the size, the line height, and the name
Shows each step of a type scale with a line of text in that size, on a design page. With no steps, it shows the text sizes of this library. For the tokens as a table, see the tokens guide.
Basic
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
Home Studio, real sound
stepsis a list of steps. Each step has aname, a CSSsize, and an optionallineHeightandweight. Without it, the steps are the--bless-text-*tokens, from the smallest to the largest.sampleis the line of text in each size.- Each row shows the size and the line height in pixels, as the browser draws them. The sizes of this library use
clamp(), so the numbers change with the width of the window. They show after the page loads. - On a narrow screen, the name goes above the sample. A long sample ends with "…".
- The specimen is a region. Change the words with
labelsor a label pack:title,size, andline.
Usage
ts
import { BlessTypeScale } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
steps | BlessTypeStep[] | — | the steps to show; default: the text sizes of the library |
sample | string | "Home Studio, real sound" | the words to show in each size |
labels | Partial<{ title: string; size: string; line: string; }> | — |