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.

What Scopes Do Scopes change how a token is previewed, typed in W3C JSON, and classified in Figma.
Preview

Color scopes render as swatches. Dimension scopes render as bars. Typography scopes render as text samples. Unscoped numbers render as raw values.

W3C JSON

Scoped tokens get a $type property in the output — color, dimension, fontWeight, etc. Unscoped tokens have no $type.

Figma Variables

Color scopes become COLOR variables. Dimension and spacing scopes become FLOAT variables in the appropriate collection. Figma uses scope to group variables correctly.

CSS

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.

Scope Syntax Inline, group, and shorthand forms.

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.

Color scopes — color, colorForeground, colorBackground, colorFill, colorBorder, colorEffect
Color Switch to Table view to see scope annotations in the output

Next: References — reuse token values with dollar references, ellipsis references, and collection access.