> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/feedback?path=/docs7/components/color&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Color

> Show click-to-copy color swatches

Add one `<Color.Item>` for each swatch.

## Usage

```mdx
<Color>
  <Color.Item name="Primary" value="#10B981" />
  <Color.Item
    name="Surface"
    value={{ light: "#FFFFFF", dark: "#18181B" }}
  />
</Color>
```

Use `variant="table"` with `<Color.Row title="...">` to group a larger palette.

## Example

<Color>
  <Color.Item name="Primary" value="#10B981" />
  <Color.Item
    name="Surface"
    value={{ light: "#FFFFFF", dark: "#18181B" }}
  />
</Color>
