concept
variable fonts — CSS reference
A variable font stores a design space with axes, allowing intermediate instances within supported ranges. Registered axes have standardized meanings, such as wght for weight; custom axes are font-specific. Prefer high-level CSS for standard axes and use low-level settings only as needed. Declare accurate ranges in @font-face; a static font will not gain variation axes.
Formal Syntax & Structure
css syntaxcss
font-weight:650; font-variation-settings:"wght" 650;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{font-weight:650;font-variation-settings:"wght" 650}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>