Typography

B2B back-office involves a lot of "reading" time. Typography directly impacts comprehension speed and error prevention.

Font Family

System Font Stack

Acua prioritizes system fonts for optimal rendering on each user's environment.

UsageFont Stack
UI Textsystem-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
Thai"Noto Sans Thai", "Sarabun", system-ui, sans-serif
Monospaceui-monospace, "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace

Why System Fonts?

BenefitDescription
PerformanceNo font file downloads required
Native feelUses OS default fonts for familiarity
MultilingualSystem fonts cover multiple languages
ReadabilityOptimized rendering on each OS

Type Scale

Acua uses a type scale based on multiples of 4.

TokenSizeLine-heightUsage
text-2xs10px1.4Tiny annotations (discouraged)
text-xs12px1.5Captions, badges
text-sm14px1.5Body, form labels, table cells
text-base16px1.5Emphasized text, input fields
text-lg18px1.4Subheadings
text-xl20px1.4Page titles
text-2xl24px1.3Section headings
text-3xl30px1.25Large headings
text-4xl36px1.2Hero headings (rare)

Font Weight

TokenValueUsage
font-normal400Body text, descriptions, input values
font-medium500Labels, light emphasis, form labels, table headers
font-semibold600Headings, buttons, page titles
font-bold700Strong emphasis, amounts, warning headings

Usage Guidelines

Do:

  • font-normal: Body, descriptions, input values
  • font-medium: Form labels, table headers, light emphasis
  • font-semibold: Page titles, buttons, headings
  • font-bold: Amount display, important warnings

Don't:

  • Don't use font-light (300) - reduces readability
  • Don't use font-black (900) - appears aggressive
  • Don't overuse bold - emphasis loses meaning
  • Don't mix multiple weights in the same sentence

Visual Hierarchy

3-Tier Structure

TierRoleStyleExample
Level 1: HeadingWhat (entry point)text-xl font-semibold text-foreground"Invoice Detail"
Level 2: BodyHow (instructions)text-sm font-normal text-foreground"Review the info below"
Level 3: AnnotationExceptions, notestext-xs font-normal text-muted-foreground"*Cannot be undone"

Heading Level Usage

HTML ElementStyleUsage
<h1>text-2xl font-semiboldPage title (one per page)
<h2>text-xl font-semiboldSection heading
<h3>text-lg font-semiboldSubsection heading
<h4>text-base font-mediumCard title, minor heading
<h5>text-sm font-mediumGroup label
<h6>text-xs font-mediumSmallest heading (rare)

Number Typography

Number readability is critical for financial applications.

TypeFontAlignmentSeparatorExample
Amountfont-mono or tabular-numsRightComma¥1,234,567
IDfont-monoLeftNoneINV-2024-001
DateProportionalLeftNone2024/01/15
Percenttabular-numsRightNone12.34%
CountProportionalRightComma1,234 items

tabular-nums Importance

tabular-nums unifies digit widths for proper column alignment in tables.

Without tabular-nums:    With tabular-nums:
¥1,234,567               ¥1,234,567
    ¥99,999              ¥   99,999
   ¥100,000              ¥  100,000