#230
Font families
The three font family tokens, sans, display and mono, each with a sample sentence.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Font families" pattern (@codeatlasdev/ui demo #230, foundation/typography) in my app.
Call get_demo({ ids: ["#230"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Choosing a font family: sans for UI text, display for headings, mono for code.
Keep these library parts, with the props and tokens the demo uses:
Behaviour to keep:
- `--ca-font-sans` with The quick brown fox jumps over the lazy dog
- `--ca-font-display` with Headings use the display family
- `--ca-font-mono` with `const answer = 42;`
- Samples use `class="sample sample--sans"`, `class="sample sample--display"` and `class="sample sample--mono"`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
How it is built
- `--ca-font-sans` with The quick brown fox jumps over the lazy dog
- `--ca-font-display` with Headings use the display family
- `--ca-font-mono` with `const answer = 42;`
- Samples use `class="sample sample--sans"`, `class="sample sample--display"` and `class="sample sample--mono"`
Related
Loading source.