Skip to content

AI: Make Design System color role consistency explicit - #86724

Merged
ciampo merged 1 commit into
trunkfrom
codex/ds-skills-color-role-consistency
Nov 12, 2026
Merged

ciampo merged 1 commit into
trunkfrom
codex/ds-skills-color-role-consistency

Conversation

@ciampo

@ciampo ciampo commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

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

  1. Read the new instructions in .agents/skills/design-system-contribution/SKILL.md and .agents/skills/design-system-code-review/SKILL.md.
  2. Compare them with Keep color roles aligned.
  3. Confirm that both skills direct agents to keep the brand tone for disabled secondary, tertiary, and link Button text, even when the neutral token has the same value.

Testing Instructions for Keyboard

Not applicable. This change updates agent instructions only.

Use of AI Tools

Drafted and validated with Codex.

@ciampo ciampo added the [Type] Developer Documentation Documentation for developers label Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

@ciampo ciampo self-assigned this Nov 12, 2026
@ciampo
ciampo requested a balanced review from Copilot November 12, 2026 09:11
@ciampo
ciampo marked this pull request as ready for review November 12, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@Mamaduka Mamaduka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ciampo!

@ciampo
ciampo enabled auto-merge (squash) November 12, 2026 09:21
@ciampo
ciampo merged commit 895d314 into trunk Nov 12, 2026
90 checks passed
@ciampo
ciampo deleted the codex/ds-skills-color-role-consistency branch November 12, 2026 09:27
@github-actions github-actions Bot added this to the Gutenberg 24.5 milestone Nov 12, 2026
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants