Skip to main content Sidebar
On this page
Skip to table of contents

Typography

Typography is used to maintain a consistent set of font styles throughout your app.

Font family

The default font stack is simple and elegant, and has a lot of fallbacks if the main font isn’t available.

Design tokenDefault valueExample
--pc-font-sans"Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "Roboto", "Open Sans", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"Sphinx of black quartz, judge my vow.
--pc-font-serif"Playfair Display", "Georgia", "Times New Roman", serifSphinx of black quartz, judge my vow.
--pc-font-mono"JetBrains Mono", "Source Code Pro", "IBM Plex Mono", "Consolas", "Menlo", monospaceSphinx of black quartz, judge my vow.
--pc-font-math"STIX Two Math", "Cambria Math", "Times New Roman", serifx=b±b24ac2a

Font size

Our font size system uses the major second ratio (r=1,125): smaller sizes scale down linearly by r, while larger sizes scale up by the squared ratio (r2) to maximise visual impact.

Each value uses rem units and is rounded to the nearest whole pixel when rendered with round().

You can use --pc-font-size-scale to increase or decrease all font sizes at once. By default, this multiplier is 1.

Custom propertyDefault valueExample
--pc-font-size-xxsround(calc(var(--pc-font-size-xs) / 1.125), 1px) (11 px)AaBb
--pc-font-size-xsround(calc(var(--pc-font-size-s) / 1.125), 1px) (12 px)AaBb
--pc-font-size-sround(calc(var(--pc-font-size-m) / 1.125), 1px) (14 px)AaBb
--pc-font-size-mround(calc(1rem * var(--pc-font-size-scale)), 1px) (16 px)AaBb
--pc-font-size-lround(calc(var(--pc-font-size-m) * 1.125 * 1.125), 1px) (20 px)AaBb
--pc-font-size-xlround(calc(var(--pc-font-size-l) * 1.125 * 1.125), 1px) (25 px)AaBb
--pc-font-size-xxlround(calc(var(--pc-font-size-xl) * 1.125 * 1.125), 1px) (32 px)AaBb
--pc-font-size-xxxlround(calc(var(--pc-font-size-xxl) * 1.125 * 1.125), 1px) (41 px)AaBb
--pc-font-size-xxxxlround(calc(var(--pc-font-size-xxxl) * 1.125 * 1.125), 1px) (52 px)AaBb

You can also use these two custom properties to make any font size proportionately smaller or larger to its parent.

Custom propertyDefault value
--pc-font-size-smallerround(calc(1em / 1.125), 1px)
--pc-font-size-largerround(calc(1em * 1.125 * 1.125), 1px)

Font weights

Font weights range from 300 (Light) to 700 (Bold), letting you fine‐tune emphasis. Our default variable fonts support any value in this range, while other non‐variable fallbacks may use standard weight tokens.

Custom propertyDefault valueExample
--pc-font-weight-light300Sphinx of black quartz, judge my vow.
--pc-font-weight-normal400Sphinx of black quartz, judge my vow.
--pc-font-weight-medium500Sphinx of black quartz, judge my vow.
--pc-font-weight-semibold600Sphinx of black quartz, judge my vow.
--pc-font-weight-bold700Sphinx of black quartz, judge my vow.

Line height

Line heights control the distance between lines of text and are unitless to scale proportionately with the font size. For readability, --pc-line-height-normal, recommended for paragraphs, should be 1.6 or greater.

Custom propertyDefault valueExample
--pc-line-height-denser1
Sphinx of black quartz, judge my vow.
Voix, jugez, ce vieux kip ! Wha ? Prix du blond.
Prüft Hähnchen‐Xylofonmusik: Quark, Vögel, Jazz‐Blues, Nacht, Wurst.
--pc-line-height-dense1.4
Sphinx of black quartz, judge my vow.
Voix, jugez, ce vieux kip ! Wha ? Prix du blond.
Prüft Hähnchen‐Xylofonmusik: Quark, Vögel, Jazz‐Blues, Nacht, Wurst.
--pc-line-height-normal1.8
Sphinx of black quartz, judge my vow.
Voix, jugez, ce vieux kip ! Wha ? Prix du blond.
Prüft Hähnchen‐Xylofonmusik: Quark, Vögel, Jazz‐Blues, Nacht, Wurst.
--pc-line-height-loose2.2
Sphinx of black quartz, judge my vow.
Voix, jugez, ce vieux kip ! Wha ? Prix du blond.
Prüft Hähnchen‐Xylofonmusik: Quark, Vögel, Jazz‐Blues, Nacht, Wurst.
--pc-line-height-looser2.6
Sphinx of black quartz, judge my vow.
Voix, jugez, ce vieux kip ! Wha ? Prix du blond.
Prüft Hähnchen‐Xylofonmusik: Quark, Vögel, Jazz‐Blues, Nacht, Wurst.

Together with --pc-color-link, these tokens add text decoration to <a> elements to signal their role as hyperlinks.

Custom propertyDefault value
--pc-link-decoration-defaultunderline dotted currentColor
--pc-link-decoration-hoverunderline solid currentColor
--pc-link-decoration-activeunderline solid currentColor

We’d love to hear from you. Please reach out to us with any questions or enquiries you may have.

You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

We look forward to hearing from you!

Got it!
Dangerous lands

Whoa! You’ve wandered into the dangerous lands of Placer Toolkit. Version 0 is out of date and doesn’t meet EU privacy standards, including GDPR.

Want the latest powers, security and compliance? Stick with the current version of Placer Toolkit!

Yikes! Power up!

Our site is 100 % cookie‐free! We value your privacy, which is why we don’t store any cookies or personal information related to you.

Your browser history is safe from crumbs, and your data is protected, aligning with modern privacy standards like the GDPR. Enjoy your visit without a single digital cookie in sight! 🍪🚫

View our Privacy Policy for more information.

Got it!