From 9868bb22ec94d252a2db550b5d4e562560b0bde2 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Tue, 10 Mar 2026 10:11:50 +0100 Subject: [PATCH 1/5] Storybook: Add basic accent color guidance. --- storybook/stories/tokens/color.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/storybook/stories/tokens/color.mdx b/storybook/stories/tokens/color.mdx index bebcff9aad324b..b2c7ca46875c72 100644 --- a/storybook/stories/tokens/color.mdx +++ b/storybook/stories/tokens/color.mdx @@ -6,6 +6,24 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs/blocks'; This document outlines the default color set of the WordPress component system as it ships. The page is a work in progress. +## Accent + +By default, WordPress components style accent colors using the `--wp-admin-theme-color`, or `--wp-components-color-accent` variables in your own stylesheet. If you do not provide either of those variables, then the components default to Blueberry: + + + + + +In WordPress admin contexts, this variable is always pre-defined with the user color scheme. + +The design system doesn’t dictate what the accent color “should” be, it just provides a default in case a color isn’t set explicitly. So it’s up to the designer whether to honor the user’s color in a given context or instead use a chosen brand color. + ## Colors From 907d2af57078af6d0c66ff799374bb8aa44f1e52 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Tue, 10 Mar 2026 10:11:50 +0100 Subject: [PATCH 2/5] Address feedback. --- storybook/stories/tokens/color.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storybook/stories/tokens/color.mdx b/storybook/stories/tokens/color.mdx index b2c7ca46875c72..a1f7ae150af38b 100644 --- a/storybook/stories/tokens/color.mdx +++ b/storybook/stories/tokens/color.mdx @@ -8,7 +8,7 @@ This document outlines the default color set of the WordPress component system a ## Accent -By default, WordPress components style accent colors using the `--wp-admin-theme-color`, or `--wp-components-color-accent` variables in your own stylesheet. If you do not provide either of those variables, then the components default to Blueberry: +By default, WordPress components style accent colors using the `--wp-admin-theme-color` variable in your own stylesheet. If you do not provide either of those variables, then the components default to Blueberry: Date: Tue, 10 Mar 2026 13:20:28 +0100 Subject: [PATCH 3/5] Address feedback. --- storybook/stories/tokens/color.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storybook/stories/tokens/color.mdx b/storybook/stories/tokens/color.mdx index a1f7ae150af38b..5a21a40316f4e9 100644 --- a/storybook/stories/tokens/color.mdx +++ b/storybook/stories/tokens/color.mdx @@ -8,7 +8,7 @@ This document outlines the default color set of the WordPress component system a ## Accent -By default, WordPress components style accent colors using the `--wp-admin-theme-color` variable in your own stylesheet. If you do not provide either of those variables, then the components default to Blueberry: +WordPress components style accent colors using the `--wp-admin-theme-color` variable. If those variables are not found, then the components default to Blueberry: Date: Tue, 10 Mar 2026 15:33:56 +0100 Subject: [PATCH 4/5] Update storybook/stories/tokens/color.mdx Co-authored-by: Marco Ciampini --- storybook/stories/tokens/color.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storybook/stories/tokens/color.mdx b/storybook/stories/tokens/color.mdx index 5a21a40316f4e9..6d37fadba1fb33 100644 --- a/storybook/stories/tokens/color.mdx +++ b/storybook/stories/tokens/color.mdx @@ -8,7 +8,7 @@ This document outlines the default color set of the WordPress component system a ## Accent -WordPress components style accent colors using the `--wp-admin-theme-color` variable. If those variables are not found, then the components default to Blueberry: +WordPress components style accent colors using the `--wp-admin-theme-color` variable. If this variable are not found, then the components default to Blueberry: Date: Tue, 10 Mar 2026 15:48:18 +0100 Subject: [PATCH 5/5] Update storybook/stories/tokens/color.mdx --- storybook/stories/tokens/color.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storybook/stories/tokens/color.mdx b/storybook/stories/tokens/color.mdx index 6d37fadba1fb33..05f15830bb47e5 100644 --- a/storybook/stories/tokens/color.mdx +++ b/storybook/stories/tokens/color.mdx @@ -8,7 +8,7 @@ This document outlines the default color set of the WordPress component system a ## Accent -WordPress components style accent colors using the `--wp-admin-theme-color` variable. If this variable are not found, then the components default to Blueberry: +WordPress components style accent colors using the `--wp-admin-theme-color` variable. If this variable is not found, then the components default to Blueberry: