#221
Outline
Three swatches for the outline tokens, drawn with a border so they stay visible on the page.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Outline" pattern (@codeatlasdev/ui demo #221, foundation/colors) in my app.
Call get_demo({ ids: ["#221"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Choosing a divider or border strength from the subtle, default and strong outline tokens.
Keep these library parts, with the props and tokens the demo uses:
Behaviour to keep:
- Renders `<Swatches {tokens} bordered={true} />` with 3 tokens
- Tokens in order: `--ca-outline-subtle`, `--ca-outline-default`, `--ca-outline-strong`
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 3 tokens
- Tokens in order: `--ca-outline-subtle`, `--ca-outline-default`, `--ca-outline-strong`
Related
Loading source.