Font Weight & Style

Font utilities control typographic emphasis and hierarchy — from readable body text and compact interface labels to buttons, navigation items, dashboards, and production design system components.

FrontAlign provides a clean set of font weight and font style utilities, along with a default font stack and a path to custom Google Fonts at runtime or build time.

All font utilities are pure CSS and do not require the FrontAlign runtime.

Quick reference

GroupClassesCSS outputCommon use
Font weights

font-thin, font-light, font-normal, font-medium, font-semibold, font-bold, font-extrabold, font-black

font-weight: ...;Headings, body text, labels, buttons, navigation, and dashboard UI.
Font styles

font-italic, font-not-italic

font-style: ...;Quotes, editorial notes, emphasis, and italic resets.
Default stack

--font, --font-monospace

system font stackFast native rendering across operating systems.
Custom fonts

Google Fonts, FrontAlign configuration

runtime or build-time loadingBrand-specific typography without rewriting the utility system.

Font weight scale

Apply weight utilities directly on headings, paragraphs, buttons, labels, and links. Each class maps to a single, predictable font-weight value.

ClassWeightUsage
font-thin100Ultra-light display text.
font-light300Secondary text and elegant headings.
font-normal400Default body text.
font-medium500Labels, metadata, tabs, and subtle emphasis.
font-semibold600Buttons, navigation, and compact UI labels.
font-bold700Section titles and strong emphasis.
font-extrabold800Page headings and hero titles.
font-black900Large display headings and brand moments.
<h1 class="font-black">
  Build modern interfaces faster.
</h1>

<p class="font-normal">
  FrontAlign gives you flexible typography utilities for real production UI.
</p>

Font style utilities

ClassCSS outputDescription
font-italicfont-style: italic;Apply italic style.
font-not-italicfont-style: normal;Reset italic style, useful when only part of an italic block should return to normal.
<p class="font-italic">
  Design is intelligence made visible.

  <span class="font-not-italic">
    This part stays upright.
  </span>
</p>

Default font stack

FrontAlign ships with a modern system font stack by default, designed to be fast, native, and reliable across macOS, Windows, Linux, Android, and iOS. It avoids unnecessary font downloads while still providing excellent rendering.

--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
  "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
  "Helvetica Neue", "Noto Sans", sans-serif;

--font-monospace: Monaco, Consolas, "Courier New", SFMono-Regular,
  Menlo, "Liberation Mono", monospace;

Custom fonts

FrontAlign isn't limited to the default stack. Any Google Font can be loaded at runtime or build time with a single JavaScript configuration line, so a project can adopt brand-specific typography without rewriting its CSS system.

For full setup instructions, see the Typography and Configuration documentation.

Where each weight belongs

ElementRecommended utilityReason
Display headingsfont-blackCreates maximum hierarchy for large display text.
Hero titlesfont-extraboldStrong visual weight without becoming too heavy.
Section headingsfont-boldClear section separation inside documentation and layouts.
Buttonsfont-semiboldImproves click target clarity and action visibility.
Navigation linksfont-mediumKeeps navigation readable without overpowering content.
Labels and badgesfont-mediumWorks well for compact UI text and metadata.
Body textfont-normalBest default for comfortable reading.
Secondary textfont-lightUseful for subtle text when contrast remains accessible.
Editorial emphasisfont-italicFits quotes, notes, and expressive content.

Real world examples

Dashboard metric

<div class="border rounded-4 shadow">
  <span class="font-medium">
    Revenue
  </span>

  <h2 class="font-black">
    $24,800
  </h2>
</div>

Feature card

<div class="border rounded-4 shadow">
  <h3 class="font-bold">
    Runtime Engine
  </h3>

  <p class="font-normal">
    Build interactive interfaces without framework lock-in.
  </p>
</div>

Pricing card

<div class="border rounded-4 shadow">
  <h3 class="font-bold">
    Pro
  </h3>

  <p class="font-black">
    $29
  </p>

  <span class="font-medium">
    per month
  </span>
</div>

Testimonial

<blockquote class="is-boxed">
  <p class="font-italic">
    FrontAlign feels fast, clean, and production-ready.
  </p>

  <footer class="blockquote-footer font-medium">
    Product Designer
  </footer>
</blockquote>

Badge

<span class="font-semibold">
  Beta
</span>

Accessibility notes

Typography weight should improve hierarchy, not reduce readability. Avoid using very thin weights for small text — font-thin and font-light are best suited for large display text or decorative typography, not body copy.

Best practices

PracticeRecommendation
HierarchyReserve font-bold, font-extrabold, and font-black for headings that need to stand out.
Thin weightsUse font-thin and font-light carefully, especially at small sizes.
Editorial textUse font-italic for quotes, notes, and editorial emphasis.
ConsistencyKeep font weight choices consistent across your design system rather than mixing ad-hoc values.
Brand fontsLoad custom Google Fonts through FrontAlign configuration when your brand needs a specific typography identity.

FrontAlign