1. Context Components
  2. Colors

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>
ComponentPropertyPurpose
Colorvariantcompact by default; table stacks named rows.
Color.ItemnameVisible color label.
Color.ItemvalueCSS color value displayed and copied, such as a hex code.
Color.RowtitleHeading for a group of swatches.

​
Desktop example

Blue, green and red color swatches with names and hex values

Named swatches make a palette easy to inspect and copy.