#224
Text
Four swatches for the text color tokens: primary, secondary, hint and disabled.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Text" pattern (@codeatlasdev/ui demo #224, foundation/colors) in my app.
Call get_demo({ ids: ["#224"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Choosing a text color by importance, from main content to hints and disabled labels.
Keep these library parts, with the props and tokens the demo uses:
Behaviour to keep:
- Renders `<Swatches {tokens} bordered={true} />` with 4 tokens
- Tokens in order: `--ca-text-primary`, `--ca-text-secondary`, `--ca-text-hint`, `--ca-text-disabled`
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
- Renders `<Swatches {tokens} bordered={true} />` with 4 tokens
- Tokens in order: `--ca-text-primary`, `--ca-text-secondary`, `--ca-text-hint`, `--ca-text-disabled`
Related
Loading source.