Skip to content

Number

Token type$type: number2026-07-27

A unitless number. Use it for opacity, ratios, multipliers, z-index-like ordering values, and anything a dimension would give a misleading unit to.


Value format

{ "$type": "number", "$value": 0.8 }

The value is a raw JSON number. It must be finite — NaN and Infinity are rejected.


What you can type

Anything parseable as a number: 0.8, 1, -3, 1.5. A reference {global.opacity.muted} is also accepted.


Applying to Figma

Default target: Opacity.

GroupTargets
GeneralOpacity (clamped to 0–1), rotation, layout grow
Sizing / Radius / Border width / Spacing / Typography / EffectsThe same target list as dimension

Because a number has no unit, applying it to a dimensional target uses the raw value as pixels. 0.8 applied to Font size sets a font size of 0.8 px — the plugin will not warn you. Pick the target deliberately.


Notes and limits

  • Opacity is clamped to 0–1, so 80 becomes 1, not 80%.
  • Number is one of only three types that map cleanly to a Figma Variable (FLOAT). See Figma Variables.