Number
A number as defined in 8.7.
json
{
"line-height-large": {
"$type": "number",
"$value": 100
}
}
yaml
line-height-large:
$type: number
$value: 100
Property | Type | Description |
---|---|---|
$type | string | Required. "number" |
$value | number | Required. A number, which can be positive, negative, or a fraction. |
$description | string | (Optional) A description of this token and its intended usage. |
Usage
A number
token theoretically has many creative uses. But in practice. It can’t be used for a font weight, and has no units like a dimension requires.
However, it can be used for lineHeight
within a typography token (as a shorthand for em dimension), as well as stops within a gradient token.