> For the complete documentation index, see [llms.txt](https://supernova-developers.gitbook.io/supernova-dsm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supernova-developers.gitbook.io/supernova-dsm/design-system-data/tokens/typographies.md).

# Typography

Typography tokens define one single text style, such as `12px bold Lato, 150% line spacing`.&#x20;

### Example Token Payload

This is what the typography payload looks like:

```javascript
{
  "id": string
  "name": string
  "description": string
  "tokenType": "Typography"
  "origin": ItemOrigin | null
  "value": {
    "font": {
      "family": string,
      "subfamily": string
      "referencedToken": Font | null
    },
    "fontSize": {
      "unit": "px",
      "measure": double
      "referencedToken": Measure | null
    },
    "letterSpacing": {
      "unit": "px",
      "measure": double
      "referencedToken": Measure | null
    },
    "lineHeight": {
      "unit": "px",
      "measure": double
      "referencedToken": Measure | null
    },
    "paragraphIndent": {
      "unit": "px",
      "measure": double
      "referencedToken": Measure | null
    },
    "textDecoration": "None" | "Underline" | "Strikethrough"
    "textCase": "Original" | "Upper" | "Lower" | "Camel"
    "referencedToken": Typography | null
  }
}
```

### Associated functions

You can use the following functions to retrieve typography tokens from your design system:

* [@ds.allTokens](/supernova-dsm/design-system-data/function-list.md#ds-alltokens)
* [@ds.tokensByType](/supernova-dsm/design-system-data/function-list.md#ds-tokensbytype) (with `"Typography"`) attribute
* [@ds.tokensByGroupId](/supernova-dsm/design-system-data/function-list.md#ds-tokensbygroupid)
