salesforce-ux / theo

Theo is a an abstraction for transforming and formatting Design Tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alias calculations

NoWorries opened this issue · comments

Is it possible to use calculations, for example to create a range of sizes based on a single alias?

_aliases

base-spacing:
value: "8px"

_props

spacing-default:
value: "{!base-spacing}"

spacing-large:
value: "{!base-spacing} * 2"

resolves to:

spacing-default: 8px
spacing-large: 16px

This is not currently supported

I'd like to start thinking about a proposal for adding this type of functionality though