Skip to content

Concat ​

What It Does ​

Combines two lists into a single list by joining them end-to-end. This is perfect for merging collections like color arrays, spacing scales, or any other grouped token sets.

Inputs ​

NameDescriptionTypeRequired
aThe first list to combineListYes
bThe second list to add to the endListYes

Outputs ​

NameDescriptionType
valueThe combined list with all items from both listsList

Array Concat Example

How to Use It ​

  1. Drag the Array Concat node into your graph.
  2. Connect your first list (like [Red, Blue]) to the "a" input.
  3. Connect your second list (like [Green, Yellow]) to the "b" input.
  4. Run the graph—your output will be [Red, Blue, Green, Yellow].

Tips ​

  • Both lists must be of the same type (e.g., both colors or both numbers).
  • Use multiple Concat nodes to combine more than two lists.

See Also ​

Use Cases ​

  • Combining Token Collections: Merge a base set of tokens with extension sets (e.g., join core colors with accent colors).
  • Building Complete Scales: Combine different parts of a scale (e.g., join negative and positive spacing values).
  • Theme Management: Join multiple theme-specific token collections to create a comprehensive theme.