Add
Last updated
Last updated
Adds two numbers together to produce their sum. It's a basic math operation useful for combining numeric values like spacing tokens or opacity percentages.
a
The first number to add
Number
Yes
b
The second number to add
Number
Yes
value
The sum of a and b
Number
Drag the Add node into your graph.
Connect a number (like 3) to the "a" input.
Connect another number (like 3
) to the "b" input.
Run the graph—your output will be 6.
You can use the Add node with token references, like adding a base spacing value to an increment.
For adding more than two numbers, chain multiple Add nodes together or use the Variadic Add node.
Spacing Calculations: Add a base spacing unit (4px) to a multiplier to create consistent spacing increments in your design system.
Opacity Adjustments: Add a percentage to a base opacity value to create a range of transparencies for different states.
Font Size Scaling: Add a fixed increment to your base font size to create larger heading sizes.
: For removing one number from another.
: For multiplying numbers together.