タイポグラフィ
Large Title(64px)からCaption 2(11px)まで、13種類の文字スタイルを提供します。それぞれ4種類の太さを持ち、Interを使い、Figmaのテキストスタイルと1対1で対応しています。
システムがどのように機能するか
すべてのスタイルは、 複合トークン: 以下のような1つのクラス text-body-medium で定義される壷のサイズ、ライン高さ、手紙の間隔および重量を一緒に置きます styles/typography.css. 決して結合しません text-sm と、 font-medium そして、 leading-5 手で - 単一のトークンは、Figmaのテキストスタイルを指定する正確なメトリックを保証します。
ネーミングは text-{family}-{weight} - 13家族×4重量(通常400、中500、セミボルト600、ボルド700)。 色は、意味のあるテキストトークンと別々に適用されるので、一般的なラベルは読みます text-body-medium text-text-secondary: メトリックの1クラス、色は1クラス。
これらのクラスが住んでいたので text-* namespace は、登録済みです。 cx() (私たちのtailwind-merge wrapper) フォントサイズのユーティリティとして - それ以外の場合は、色のクラスとマージすることは、静かにそれらをドロップします。 あなたはスタイルを追加または名前を変更した場合、それをミラーリングします utils/cx.ts.
タイトル
64px / 80pxHero numerals and marketing-scale headings.
ディスプレイ 1
56px / 72pxFull-page hero headings.
ディスプレイ2
48px / 64pxLarge section heroes.
ディスプレイ 3
40px / 54pxProminent stats and page heroes.
ディスプレイ 4
32px / 44pxPage titles; the largest style used inside the app shell.
タイトル 1
24px / 34pxCard headline figures (step totals, earnings).
タイトル2
20px / 26pxSection headings inside pages and panels.
タイトル 3
18px / 24–26pxSub-section headings, calendar month titles.
見出し
16px / 22pxEmphasized body copy and lead paragraphs.
ボディ
14px / 20pxThe default UI text: labels, table cells, nav items.
ボディ2
13px / 18pxDense contexts: compact tables, secondary descriptions.
キャプション 1
12px / 16px · tracking 0.15pxAxis labels, unit suffixes, timestamps.
キャプション2
11px / 15px · tracking 0.2pxThe smallest legible annotations (badges, fine print).