From 0ee2a9d57802d69f72030357fe58066ba59631f7 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Wed, 7 Dec 2022 09:24:23 +1300 Subject: [PATCH] Move where the synced block custom colors are set to prevent duplicate output (#46297) --- packages/base-styles/_colors.scss | 5 ----- packages/base-styles/_default-custom-properties.scss | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/base-styles/_colors.scss b/packages/base-styles/_colors.scss index 5847a66f8b243..2ce58b64e43b8 100644 --- a/packages/base-styles/_colors.scss +++ b/packages/base-styles/_colors.scss @@ -26,8 +26,3 @@ $light-gray-placeholder: rgba($white, 0.65); $alert-yellow: #f0b849; $alert-red: #cc1818; $alert-green: #4ab866; - -:root { - --wp-block-synced-color: #7a00df; - --wp-block-synced-color--rgb: #{hex-to-rgb(#7a00df)}; -} diff --git a/packages/base-styles/_default-custom-properties.scss b/packages/base-styles/_default-custom-properties.scss index 9f2979ea039bb..52dfeb3899d77 100644 --- a/packages/base-styles/_default-custom-properties.scss +++ b/packages/base-styles/_default-custom-properties.scss @@ -4,4 +4,6 @@ // It also provides default CSS variables for npm package consumers. :root { @include admin-scheme(#007cba); + --wp-block-synced-color: #7a00df; + --wp-block-synced-color--rgb: #{hex-to-rgb(#7a00df)}; }