#220
Brand
Six swatches for the brand color tokens, each showing its name and CSS variable.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Brand" pattern (@codeatlasdev/ui demo #220, foundation/colors) in my app.
Call get_demo({ ids: ["#220"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Picking a brand color token for a fill, a text color or an accent.
Keep these library parts, with the props and tokens the demo uses:
Behaviour to keep:
- Renders `<Swatches {tokens} />` with 6 tokens
- Tokens in order: `--ca-brand-main`, `--ca-brand-light`, `--ca-brand-dark`
- Then `--ca-brand-contrast`, `--ca-brand-fill`, `--ca-brand-text`
- No bordered prop is passed
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} />` with 6 tokens
- Tokens in order: `--ca-brand-main`, `--ca-brand-light`, `--ca-brand-dark`
- Then `--ca-brand-contrast`, `--ca-brand-fill`, `--ca-brand-text`
- No bordered prop is passed
Related
Loading source.