Icon Colors
Workspace cards and feature cards support a color field inside the icon object that applies a CSS color class to the icon. This controls the accent color shown behind or around the icon on cards.
Available colors
| Swatch | Value | CSS Class | Use case |
|---|---|---|---|
purple | .cp-card__icon--purple | Primary brand, general purpose | |
blue | .cp-card__icon--blue | APIs, services, networking | |
green | .cp-card__icon--green | Databases, data, success states | |
amber | .cp-card__icon--amber | Warnings, configuration, tooling | |
red | .cp-card__icon--red | Destructive actions, critical | |
slate | .cp-card__icon--slate | Neutral, infrastructure | |
cyan | .cp-card__icon--cyan | Testing, monitoring, observability | |
pink | .cp-card__icon--pink | Design, UI, creative tools |
Usage
Set color on a workspace item icon:
Or on a card config within a section entry:
Feature card colors
Feature cards on the home page use the same color values via the color field on a Feature icon:
The CSS class for feature cards follows the pattern .cp-card__icon--{color}.
Default behavior
When color is omitted (or when icon is a plain string like 'devicon:hono'), the icon renders with its native colors (for multi-color icon sets like devicon and skill-icons) or inherits currentColor (for monochrome sets like simple-icons and pixelarticons).