Measure tokens define one single measure, such as 20px or 40%.
You can reference measure in most other tokens, providing values that can be changed from one single point. For example, if all your borders should have exactly 1px, you can define a measure and reference it in all border tokens. Then, changing the measure will change the value for all of them at once.
This is what the measure payload looks like:
"origin": ItemOrigin | null
"unit": "Pixels" | "Points" | "Percent" | "Ems",
"referencedToken": Measure | null
You can use the following functions to retrieve measure tokens from your design system:
This documentation was created using Supernova's fully customizable documentation engine.Start building your docs now!
© 2022 Supernova.io