What are variables?

Variables in Ditto allow teams to integrate dynamic values into their text.

From names to counts to links, variables make it easy for teams to integrate dynamic values, without requiring engineers to manually restructure content and without interfering with the display of text in designs. 🙌

Untitled

Variable Basics

All variables are referenced by their name. Names are unique within a workspace and composed of characters in the set [A-Za-z0-9_]+.

We currently support 3 different types of variables: stringsnumbers, and links. Depending on the type, the variable will contain different properties:

🔤 String — for dynamic text content (ex: a user's name, company name, selected value)

🔢 Number — for dynamic numbers (ex: counts, prices)

🔗 Links — for hyperlinks in the text

Untitled