- Context Components
- Colors
Context Components
Colors
Document a palette with named, copyable color swatches.
Use Color.Item to show a color name and value. Clicking a swatch copies its value.
These examples describe content; they do not change your site’s branding.
Set site colors in layout.json.
Compact palette
<Color>
<Color.Item name="Ocean" value="#2563EB" />
<Color.Item name="Forest" value="#15803D" />
<Color.Item name="Signal" value="#DC2626" />
</Color>
Grouped palette
Neutrals
<Color variant="table">
<Color.Row title="Neutrals">
<Color.Item name="Paper" value="#F9FAFB" />
<Color.Item name="Ink" value="#18181B" />
</Color.Row>
</Color>
| Component | Property | Purpose |
|---|---|---|
Color | variant | compact by default; table stacks named rows. |
Color.Item | name | Visible color label. |
Color.Item | value | CSS color value displayed and copied, such as a hex code. |
Color.Row | title | Heading for a group of swatches. |
