Language Preview—DTL is currently in alpha. Explore the language, try the playground, and learn how to use it.Alpha release coming soon.
Operators
DTL supports various operators for performing calculations and transformations on token values.
Arithmetic Operators
Perform mathematical operations on numeric and size values:
Color Methods
Transform colors using built-in methods:
Array Access
Access array elements by index:
Object Access
Access object properties using dot notation:
Reference Operator
Reference other tokens using dot notation:
Function Calls
Call built-in functions and user-defined functions:
Operator Precedence
Operators follow standard precedence rules. Use parentheses to control evaluation order:
Type Safety
DTL enforces type safety. Operations must be valid for the types involved: