Typography
Text styles as plain CSS classes: display and heading looks, lead, eyebrow and caption text, a fluid size scale, weights, wrapping and number utilities, and pm-prose for long-form content. Everything reads the theme's font tokens, so one data-font attribute restyles it all.
The quick brown fox jumps over the lazy dog
--pm-font-size-md
Text styles
Ready-made looks. The element gives the structure, the class gives the look.
Size scale
Nine steps, pm-text-xs to pm-text-5xl. Larger steps are fluid: they shrink a little on small screens. The whole scale follows the user's Text size setting.
pm-text-5xlDesign with one seedpm-text-4xlDesign with one seedpm-text-3xlDesign with one seedpm-text-2xlDesign with one seedpm-text-xlDesign with one seedpm-text-lgDesign with one seedpm-text-mdDesign with one seedpm-text-smDesign with one seedpm-text-xsDesign with one seedWeights, leading and tracking
Regular pm-weight-regular
Medium pm-weight-medium
Semibold pm-weight-semibold
Bold pm-weight-bold
Tight leading for headings that wrap onto more than one line in a narrow column. pm-leading-tight
Relaxed leading for long paragraphs that need more room between lines to read well. pm-leading-relaxed
Uppercase with wider tracking pm-uppercase
Truncate and clamp
One line with an ellipsis, or a fixed number of lines (--pm-lines, default 2).
Order #1042 for Ada Lovelace, shipped from the Lisbon warehouse on Tuesday
Prismora derives every colour, surface and state from one seed colour, checks contrast for you, and ships the result as plain CSS that works in any framework or none at all.
Balanced and pretty wrapping
pm-balance evens out heading lines; pm-pretty avoids a single word on the last line of a paragraph.
A heading that wraps onto two lines of similar length
Body copy set to a comfortable measure, with the last line kept from ending on one short word.
Numbers
Tabular figures keep columns of numbers aligned; slashed zero helps in codes and ids.
1,204.50
318.07
9,871.00
ID 0O08-B0O1
Colour and alignment
Text colours come from the theme, so they keep their contrast in light and dark.
Accent text
Payment received
Card expires soon
Payment failed
Aligned to the end (right in LTR, left in RTL)
Font families
Each theme has body, display, serif and mono families; data-font on any element switches the pairing for that area.
Body: interface and paragraphs
Display: headings
Serif: long reads and quotes
Mono: code and data 0123456789
Prose
For content you do not control (Markdown, CMS, user-written text). Options: data-size="sm | lg" and data-measure="narrow | wide | none".
Release notes
Everything inside pm-prose is styled: no classes on the content.
Use it for Markdown or CMS output. Links are underlined, strong text is heavier, and Ctrl K looks like keys.
- Lists, quotes, tables and code blocks
- Comfortable line length and spacing
One seed, every theme.
Tokens and fonts
Sizes, weights, line heights, tracking and families are tokens (--pm-font-size-lg, --pm-font-weight-semibold, --pm-line-height-snug, --pm-tracking-tight, --pm-font-display) that you can use in your own CSS. Choosing fonts, pairings and the scale ratio is covered in Typography & fonts.