Text Style
Map variables to Text Styles
Text Styles Mapping
Setelah Typography Variables Collection terdefinisi, apply semua nilainya ke Figma Text Styles. Ada keterbatasan teknis Figma untuk precentage (%) native di Variables, jadi ikuti aturan ini:
Variable Binding
Bind langsung ke Typography Collection untuk:
- Font Family
- Font Size
- Font Weight
Manual Override
Line Height dan Letter Spacing harus diinput manual di Text Style level (tidak bisa via Variables).
Alasan: Figma tidak support persentase (%) di Variable binding secara native.
Format Requirements
Line Height: Gunakan persentase ( % ) — contoh: 120%, bukan px.
Letter Spacing: Gunakan persentase ( % ) — contoh: -2%.
Naming Convention
Gunakan format standar ini untuk semua Text Styles:
Format: Prefix Category Variant
Contoh Struktur
Display
L · 164/100(Display Large)M · 132/100(Display Medium)
Heading
H1 · 92/100H2 · 72/100H3 · 64/100H4 · 48/100H5 · 32/100H6 · 20/100
Body
XL · 40/120L · 18/120M · 16/120S · 14/120XS · 12/120
UI
Nav · 18/100Button · 24/100Label · 20/100
Folder Structure
Organize menggunakan folder hierarchy:
- Display
- Heading
- Body
- UI