Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/type-family-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@variablelab/brand": patch
---

The Typography chapter says that a step's `family` in `tokens.json` names a font token, `sans` or `mono`, and that its stack is that token's `value` under `font`.
2 changes: 1 addition & 1 deletion skills/vlab-brand/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The bigger the size, the tighter the tracking: each step carries its own value.

- CSS: `@variablelab/brand/tokens.css` defines five properties per step on `:root`: `--vlab-type-<step>-size`, `-line-height`, `-weight`, `-tracking` and `-family`, such as `--vlab-type-title-size`. A step with no line height has no `-line-height`. `-family` is `var(--vlab-font-sans)` or `var(--vlab-font-mono)`.
- Tailwind v4: `@import "@variablelab/brand/theme.css"` adds each step as a font size with its line height, tracking and weight (`text-title`, `text-meta`). The family goes beside it: `text-meta font-mono`.
- Anything else, such as a server-rendered image: read `type` in `@variablelab/brand/tokens.json`.
- Anything else, such as a server-rendered image: read `type` in `@variablelab/brand/tokens.json`. There a step's `family` is the name of a font token, `sans` or `mono`, not a stack: the stack is that token's `value` under `font`.

## Text flow

Expand Down
Loading