Scoping
Scopes add semantic intent to tokens — telling Systematically DSL what a value is for, not just what it is. They drive preview visualization, W3C output types, and Figma variable classification.
What Scopes Do
A scope is a design-intent label. The same number can mean a font size, a spacing value, or a border radius — scopes tell the toolchain which it is, and each platform reacts accordingly.
Color scopes render as swatches. Dimension scopes render as bars. Typography scopes render as text samples. Unscoped numbers render as raw values.
Scoped tokens get a $type property in the output — color, dimension, fontWeight, etc. Unscoped tokens have no $type.
Color scopes become COLOR variables. Dimension and spacing scopes become FLOAT variables in the appropriate collection. Figma uses scope to group variables correctly.
No effect on CSS variable names or values. Scopes inform the other outputs only.
Syntax
Three ways to apply a scope — inline on a single token, at group level for all children, or shorthand when the token name and scope are the same.
Shorthand rule: :fontSize = 16 is equivalent to fontSize:fontSize = 16 — only works when the token name exactly matches the scope name.
Scope Reference
All available scopes, grouped by category. Click a category to see live examples.
Next: References — reuse token values with dollar references, ellipsis references, and collection access.