Zum Hauptinhalt springen Seitenleiste
Auf dieser Seite
Zum Inhaltsverzeichnis springen

Typography

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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

Wir würden uns freuen, von dir zu hören. Kontaktiere uns bitte bei Fragen oder Anliegen, die du hast.

Du kannst uns per E‐Mail unter placer.coc.reports+contact@gmail.com erreichen.

Wir freuen uns darauf, von dir zu hören!

Alles klar!
Gefährliche Lande

Ui! Du bist in die gefährlichen Lande von Placer Toolkit geraten. Version 0 ist veraltet und entspricht nicht den EU‐Datenschutzstandards, einschließlich DSGVO.

Willst du die neuesten Kräfte, Sicherheit und Compliance? Bleib bei der aktuellen Version von Placer Toolkit!

Ups! Aufladen!

Unsere Website ist zu 100 % frei von Cookies! Wir legen großen Wert auf deine Privatsphäre und speichern daher keinerlei Cookies oder persönliche Informationen über dich.

Dein Browserverlauf bleibt sauber und deine Daten sind geschützt, ganz im Einklang mit modernen Datenschutzstandards wie der DSGVO. Genieße deinen Besuch ganz ohne digitale Cookies! 🍪🚫

Weitere Informationen findest du in unserer Datenschutzerklärung.

Alles klar!