theme-color-fields
CommunityAdd theme-aware colour controls to Payload UI
Authorvitakili
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Theme color controls for Payload components are often boilerplate-heavy; this skill provides ready-to-use helpers to toggle between theme tokens and custom colors and to render values as CSS-ready strings.
Core Features & Use Cases
- createColorGroup renders a radio between theme color and custom color, plus a live token select and color picker, storing values like { source: 'theme' | 'custom', themeToken?: string, customColor?: string }.
- createColorField provides a single, always-custom color field with a visual picker.
- resolveColorValue front-end utility converts the stored value into a CSS color, e.g., token-based values become var(--token) and custom colors pass through unchanged.
- Import path: import from @kilivi-dev/payloadcms-theme-management/fields/colorFieldHelpers
Quick Start
Configure a color field in a collection by importing the helpers and render the value with resolveColorValue to apply to a CSS property.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: theme-color-fields Download link: https://github.com/vitakili/payload-plugins/archive/main.zip#theme-color-fields Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.