Skip to content

Number

A number as defined in 8.7.

json
{
  "line-height-large": {
    "$type": "number",
    "$value": 100
  }
}
yaml
line-height-large:
  $type: number
  $value: 100
PropertyTypeDescription
$typestringRequired. "number"
$valuenumberRequired. A number, which can be positive, negative, or a fraction.
$descriptionstring(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.

See also