Skip to main content

Text Styles

:::tip Core Principle The typography system is designed for multilingual support, using 4 font families to cover Latin, Simplified Chinese, Traditional Chinese, and Japanese. All font sizes are managed through a unified Type Scale Token. :::


Font Families

The system supports 4 fonts with automatic language-based fallback:

FontLanguageUsage
InterLatin (English)Primary UI font, numbers, English labels
PingFang SCSimplified ChineseMainland China user interfaces
PingFang TCTraditional ChineseHong Kong and Taiwan user interfaces
Noto Sans JPJapaneseJapan user interfaces

CSS font-family Declaration

font-family: 'Inter', 'PingFang SC', 'PingFang TC', 'Noto Sans JP', sans-serif;

The corresponding font takes priority based on the content language. Inter is the preferred font for numbers and English text, ensuring precise alignment in data display.


Font Weights

WeightValueUsage
Regular400Body text, descriptions, forms
Medium500Emphasized text, navigation labels (non-Inter fonts)
Semibold600Headings, buttons, key actions (Inter uses Semibold for Emphasized)

Note: In DS 4.0, Light (300) has been removed. The Emphasized semantic weight maps to Semibold for Inter (Latin) and Medium for other fonts. Weight support varies across font families. Refer to the Weight Availability Matrix below.


UI Type Scale

Heading Levels

LevelSizeLine HeightWeightUsage
Display32px44pxSemiboldPage-level large heading
H124px32pxSemiboldPage title
H220px28pxSemiboldModule / section heading
H318px24pxSemiboldSub-module heading

Body & Supporting Text

LevelSizeLine HeightWeightUsage
Body14px20pxRegularParagraph text, lists, form inputs
Footnote13px18pxRegularSupporting notes, disclaimers

Details Page Reference

The details page is the highest-information-density context. Typography rules for this layout:

LevelSizeLine HeightTop SpacingWeight
H128px36px32px (0 for first block)Semibold
H224px32px24pxSemibold
H320px28px20pxSemibold
H418px24px16pxSemibold
Paragraph16px24px— (12px bottom spacing)Regular
Paragraph Bold16px24pxsame as aboveSemibold
Paragraph Italic / Italic Bold16px24pxsame as aboveRegular / Semibold

Block spacing = previous block's padding-bottom (H1/H2: 12px, H3/H4: 8px, Paragraph: 12px) + current block's margin-top, consistent with block-editor implementation.


Weight Availability Matrix

Weight availability across font families:

FontRegular (400)Medium (500)Semibold (600)
Inter
PingFang SC
PingFang TC
Noto Sans JP

Accessibility

Minimum Font Size

All UI text must be no smaller than 13px (Footnote level), ensuring readability across all devices.

  • Body text: ≥ 1.5× font size
  • Headings: ≥ 1.25× font size

Minimum Weight

Regular (400) is the lightest permitted weight in DS 4.0. Light (300) has been removed from the design system.


Usage

Tailwind Class

// Heading
<h1 className="text-[24px] leading-[32px] font-semibold">Page Title</h1>

// Body text
<p className="text-[14px] leading-[20px] font-normal">Body content</p>

// Supporting text
<span className="text-[13px] leading-[18px] text-[var(--Labels-Secondary)]">Supporting note</span>

Typography in Components

// Button uses Body level + Medium
<Button>Action</Button> // 14px / Medium

// Input uses Body level + Regular
<Input placeholder="Enter text" /> // 14px / Regular