Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
FoundationsCSS classes

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

Size

Text styles

Ready-made looks. The element gives the structure, the class gives the look.

One seed, every theme
.pm-displayHero headline: display family, largest size, tight tracking, balanced lines.
Section heading
.pm-heading .pm-text-3xlHeading look at any size: pair pm-heading with a pm-text-* size.
Card or panel heading
.pm-heading .pm-text-xlSame class, smaller size. Keep h1–h6 for structure; classes set the look.
A lead paragraph introduces the page in a larger, quieter voice.
.pm-leadIntro paragraph under a heading.
New in 1.0
.pm-eyebrowSmall uppercase label above a heading.
Updated 3 minutes ago
.pm-captionSecondary detail under content, images and fields.
Muted text for supporting copy; still meets AA contrast on every background.
.pm-mutedLower-emphasis text.
<h1 class="pm-display">One seed, every theme</h1> <h2 class="pm-heading pm-text-3xl">Section heading</h2> <h3 class="pm-heading pm-text-xl">Card or panel heading</h3> <p class="pm-lead">A lead paragraph introduces the page in a larger, quieter voice.</p> <span class="pm-eyebrow">New in 1.0</span> <span class="pm-caption">Updated 3 minutes ago</span> <p class="pm-muted">Muted text for supporting copy; still meets AA contrast on every background.</p>

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 seed
pm-text-4xlDesign with one seed
pm-text-3xlDesign with one seed
pm-text-2xlDesign with one seed
pm-text-xlDesign with one seed
pm-text-lgDesign with one seed
pm-text-mdDesign with one seed
pm-text-smDesign with one seed
pm-text-xsDesign with one seed

Weights, 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.

<p class="pm-truncate">Order #1042 for Ada Lovelace, shipped from the Lisbon warehouse on Tuesday</p> <p class="pm-line-clamp" style="--pm-lines: 2">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.</p>

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.

<h3 class="pm-heading pm-text-xl pm-balance">A heading that wraps onto two lines of similar length</h3> <p class="pm-pretty pm-measure">Body copy set to a comfortable measure, with the last line kept from ending on one short word.</p>

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

<p class="pm-tabular">1,204.50<br> 318.07<br>9,871.00</p> <p class="pm-slashed-zero pm-font-mono">ID 0O08-B0O1</p>

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)

<p class="pm-text-accent">Accent text</p> <p class="pm-text-success">Payment received</p> <p class="pm-text-warning">Card expires soon</p> <p class="pm-text-danger">Payment failed</p> <p class="pm-text-end pm-muted">Aligned to the end (right in LTR, left in RTL)</p>

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

<p class="pm-font-body">Body: interface and paragraphs</p> <p class="pm-font-display pm-text-xl">Display: headings</p> <p class="pm-font-serif">Serif: long reads and quotes</p> <p class="pm-font-mono">Mono: code and data 0123456789</p>

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.
<article class="pm-prose"> <h2>Release notes</h2> <p class="pm-lead">Everything inside <code>pm-prose</code> is styled: no classes on the content.</p> <p>Use it for Markdown or CMS output. Links are <a href="#prose">underlined</a>, <strong>strong text</strong> is heavier, and <kbd>Ctrl</kbd> <kbd>K</kbd> looks like keys.</p> <ul><li>Lists, quotes, tables and code blocks</li><li>Comfortable line length and spacing</li></ul> <blockquote>One seed, every theme.</blockquote> </article>

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.