Skip to main content

Type Alias: LeafKind

type LeafKind = "color" | "length" | "ratio" | "weight" | "ms" | "text" | "rem";

Defined in: tokens.ts:24

Unit class of a token leaf.

  • color — CSS colour string (or an alias); emitted verbatim.
  • length — px on web / dp on native; emitted with a px suffix.
  • ratio — unitless multiplier (line height, type scale, font-scale cap).
  • weight — CSS font weight 100–900.
  • ms — duration in milliseconds; emitted with an ms suffix.
  • text — free string (font stacks, box-shadow, enum values).