Font tokens define one single font, such as Lato or Arial .
Example Token Payload
This is what the color payload looks like:
{
"id": string
"name": string
"description": string
"tokenType": "Font"
"origin": ItemOrigin | null
"value": {
"family": "Lato"
"subfamily": "bold"
"referencedToken": Font | null
}
}
Associated functions
You can use the following functions to retrieve color tokens from your design system:
- @ds.allTokens
- @ds.tokensByType (with "Font") attribute
- @ds.tokensByGroupId