Displays a grid of color swatches with labels and hex values for design system palettes.
| Surface | Note |
|---|---|
| CSS grid collapses; falls back to inline color names. |
| Field | Type | |
|---|---|---|
| colors | array of {name, hex}. Color entries to display. | required |
{
"type": "color_swatch_grid",
"colors": [
"#3b82f6",
"#10b981",
"#f59e0b",
"#ef4444"
]
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:color_swatch_grid",
"displayName": "Color Swatch Grid",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/color_swatch_grid",
"capabilities": [
"web",
"meet-stage",
"apps-script-web"
],
"description": "Displays a grid of color swatches with labels and hex values for design system palettes.",
"representativeQueries": [
"show a grid of named color swatches with hex values",
"displays a grid of color swatches with labels and hex values for design system palettes.",
"render a color swatch grid"
]
}
The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.
git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →