Repository navigation
AI: Make Design System color role consistency explicit - #86724
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for this documentation-only update to the Design System’s color-role guidance.
No open issues 🎉
What changed in this PR
This documentation-only follow-up to #86681 makes color-role consistency explicit in the Design System contribution and review skills.
Changes:
- Require reading “Keep color roles aligned” before choosing or reviewing color tokens.
- Clarify that disabled brand-toned Button text retains brand tokens, even when neutral tokens have identical values.
- Add a dedicated review check for color-role changes while preserving documented component-specific exceptions.
| File | Description |
|---|---|
.agents/skills/design-system-contribution/SKILL.md |
Adds color-role guidance and a disabled Button token example. |
.agents/skills/design-system-code-review/SKILL.md |
Adds a dedicated check for color-role consistency across interaction states. |
Review effort: Balanced
Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Follow-up to #86681.
What?
Make color-role consistency across interaction states explicit in the Design System contribution and review skills.
Why?
Agents should preserve a control's semantic tone when choosing its disabled color, even when a token with a different tone currently resolves to the same value.
How?
Require reading the existing "Keep color roles aligned" guidance, add the disabled brand-toned Button example, and give reviewers a dedicated check for unexplained changes to target, tone, or emphasis. Preserve documented component-specific exceptions.
Testing Instructions
.agents/skills/design-system-contribution/SKILL.mdand.agents/skills/design-system-code-review/SKILL.md.Testing Instructions for Keyboard
Not applicable. This change updates agent instructions only.
Use of AI Tools
Drafted and validated with Codex.