Commit 2e64ee9f0d for wordpress.org

commit 2e64ee9f0d6ada214986e9efc314fff8a8fa451d
Author: desrosj <desrosj@git.wordpress.org>
Date:   Thu Jan 16 21:05:33 2025 +0000

    Administration: Modernize admin color scheme SASS files.

    This updates the admin color scheme `.sass` files to address some deprecated notices caused by upstream changes.

    - `string` and `colors` are no longer globally available functions.
    - `@import` is deprecated in favor of `@use`.

    There are still a few notices that are output, however this will require an update to the `grunt-sass` package to resolve.

    Props MattyRob.
    Fixes #62323.
    Built from https://develop.svn.wordpress.org/trunk@59656


    git-svn-id: http://core.svn.wordpress.org/trunk@58999 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-admin/css/colors/_admin.scss b/wp-admin/css/colors/_admin.scss
index 5431da789d..49126269fb 100644
--- a/wp-admin/css/colors/_admin.scss
+++ b/wp-admin/css/colors/_admin.scss
@@ -1,29 +1,31 @@
-
-@import 'variables';
-@import 'mixins';
+@use 'sass:color';
+@use 'sass:string';
+@forward 'variables' show $scheme-name, $base-color, $body-background, $button-color, $custom-welcome-panel, $dashboard-accent-1, $dashboard-accent-2, $dashboard-icon-background, $form-checked, $highlight-color, $icon-color, $link, $link-focus, $low-contrast-theme, $menu-bubble-text, $menu-collapse-focus-icon, $menu-collapse-text, $menu-highlight-background, $menu-highlight-icon, $menu-highlight-text, $menu-submenu-text, $menu-submenu-focus-text, $menu-submenu-background, $notification-color, $text-color;
+@use 'variables';
+@use 'mixins';

 /**
  * This function name uses British English to maintain backward compatibility, as developers
  * may use the function in their own admin CSS files. See #56811.
  */
 @function url-friendly-colour( $color ) {
-	@return '%23' + str-slice( '#{ $color }', 2, -1 );
+	@return '%23' + string.slice( '#{ $color }', 2, -1 );
 }

 body {
-	background: $body-background;
+	background: variables.$body-background;
 }


 /* Links */

 a {
-	color: $link;
+	color: variables.$link;

 	&:hover,
 	&:active,
 	&:focus {
-		color: $link-focus;
+		color: variables.$link-focus;
 	}
 }

@@ -36,12 +38,12 @@ span.wp-media-buttons-icon:before {
 }

 .wp-core-ui .button-link {
-	color: $link;
+	color: variables.$link;

 	&:hover,
 	&:active,
 	&:focus {
-		color: $link-focus;
+		color: variables.$link-focus;
 	}
 }

@@ -66,16 +68,16 @@ span.wp-media-buttons-icon:before {
 /* Forms */

 input[type=checkbox]:checked::before {
-	content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($form-checked)}%27%2F%3E%3C%2Fsvg%3E");
+	content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E");
 }

 input[type=radio]:checked::before {
-	background: $form-checked;
+	background: variables.$form-checked;
 }

 .wp-core-ui input[type="reset"]:hover,
 .wp-core-ui input[type="reset"]:active {
-	color: $link-focus;
+	color: variables.$link-focus;
 }

 input[type="text"]:focus,
@@ -97,8 +99,8 @@ input[type="checkbox"]:focus,
 input[type="radio"]:focus,
 select:focus,
 textarea:focus {
-	border-color: $highlight-color;
-	box-shadow: 0 0 0 1px $highlight-color;
+	border-color: variables.$highlight-color;
+	box-shadow: 0 0 0 1px variables.$highlight-color;
 }


@@ -135,35 +137,35 @@ textarea:focus {
 	.button.active,
 	.button.active:focus,
 	.button.active:hover {
-		border-color: $button-color;
+		border-color: variables.$button-color;
 		color: color.adjust(#32373c, $lightness: -5%);
-		box-shadow: inset 0 2px 5px -3px $button-color;
+		box-shadow: inset 0 2px 5px -3px variables.$button-color;
 	}

 	.button.active:focus {
 		box-shadow: 0 0 0 1px #32373c;
 	}

-	@if ( $low-contrast-theme != "true" ) {
+	@if ( variables.$low-contrast-theme != "true" ) {
 		.button,
 		.button-secondary {
-			color: $highlight-color;
-			border-color: $highlight-color;
+			color: variables.$highlight-color;
+			border-color: variables.$highlight-color;
 		}

 		.button.hover,
 		.button:hover,
 		.button-secondary:hover{
-			border-color: color.adjust($highlight-color, $lightness: -10%);
-			color: color.adjust($highlight-color, $lightness: -10%);
+			border-color: color.adjust(variables.$highlight-color, $lightness: -10%);
+			color: color.adjust(variables.$highlight-color, $lightness: -10%);
 		}

 		.button.focus,
 		.button:focus,
 		.button-secondary:focus {
-			border-color: color.adjust($highlight-color, $lightness: 10%);
-			color: color.adjust($highlight-color, $lightness: -20%);
-			box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%);
+			border-color: color.adjust(variables.$highlight-color, $lightness: 10%);
+			color: color.adjust(variables.$highlight-color, $lightness: -20%);
+			box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%);
 		}

 		.button-primary {
@@ -174,74 +176,74 @@ textarea:focus {
 	}

 	.button-primary {
-		@include button( $button-color );
+		@include mixins.button( variables.$button-color );
 	}

 	.button-group > .button.active {
-		border-color: $button-color;
+		border-color: variables.$button-color;
 	}

 	.wp-ui-primary {
-		color: $text-color;
-		background-color: $base-color;
+		color: variables.$text-color;
+		background-color: variables.$base-color;
 	}
 	.wp-ui-text-primary {
-		color: $base-color;
+		color: variables.$base-color;
 	}

 	.wp-ui-highlight {
-		color: $menu-highlight-text;
-		background-color: $menu-highlight-background;
+		color: variables.$menu-highlight-text;
+		background-color: variables.$menu-highlight-background;
 	}
 	.wp-ui-text-highlight {
-		color: $menu-highlight-background;
+		color: variables.$menu-highlight-background;
 	}

 	.wp-ui-notification {
-		color: $menu-bubble-text;
-		background-color: $menu-bubble-background;
+		color: variables.$menu-bubble-text;
+		background-color: variables.$menu-bubble-background;
 	}
 	.wp-ui-text-notification {
-		color: $menu-bubble-background;
+		color: variables.$menu-bubble-background;
 	}

 	.wp-ui-text-icon {
-		color: $menu-icon;
+		color: variables.$menu-icon;
 	}
 }


 /* List tables */
-@if $low-contrast-theme == "true" {
+@if variables.$low-contrast-theme == "true" {
 	.wrap .page-title-action:hover {
-		color: $menu-text;
-		background-color: $menu-background;
+		color: variables.$menu-text;
+		background-color: variables.$menu-background;
 	}
 } @else {
 	.wrap .page-title-action,
 	.wrap .page-title-action:active {
-		border: 1px solid $highlight-color;
-		color: $highlight-color;
+		border: 1px solid variables.$highlight-color;
+		color: variables.$highlight-color;
 	}

 	.wrap .page-title-action:hover {
-		color: color.adjust($highlight-color, $lightness: -10%);
-		border-color: color.adjust($highlight-color, $lightness: -10%);
+		color: color.adjust(variables.$highlight-color, $lightness: -10%);
+		border-color: color.adjust(variables.$highlight-color, $lightness: -10%);
 	}

 	.wrap .page-title-action:focus {
-		border-color: color.adjust($highlight-color, $lightness: 10%);
-		color: color.adjust($highlight-color, $lightness: -20%);
-		box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%);
+		border-color: color.adjust(variables.$highlight-color, $lightness: 10%);
+		color: color.adjust(variables.$highlight-color, $lightness: -20%);
+		box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%);
 	}
 }

 .view-switch a.current:before {
-	color: $menu-background;
+	color: variables.$menu-background;
 }

 .view-switch a:hover:before {
-	color: $menu-bubble-background;
+	color: variables.$menu-bubble-background;
 }


@@ -250,28 +252,28 @@ textarea:focus {
 #adminmenuback,
 #adminmenuwrap,
 #adminmenu {
-	background: $menu-background;
+	background: variables.$menu-background;
 }

 #adminmenu a {
-	color: $menu-text;
+	color: variables.$menu-text;
 }

 #adminmenu div.wp-menu-image:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 #adminmenu a:hover,
 #adminmenu li.menu-top:hover,
 #adminmenu li.opensub > a.menu-top,
 #adminmenu li > a.menu-top:focus {
-	color: $menu-highlight-text;
-	background-color: $menu-highlight-background;
+	color: variables.$menu-highlight-text;
+	background-color: variables.$menu-highlight-background;
 }

 #adminmenu li.menu-top:hover div.wp-menu-image:before,
 #adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
-	color: $menu-highlight-icon;
+	color: variables.$menu-highlight-icon;
 }


@@ -280,8 +282,8 @@ textarea:focus {
 .about-wrap .nav-tab-active,
 .nav-tab-active,
 .nav-tab-active:hover {
-	background-color: $body-background;
-	border-bottom-color: $body-background;
+	background-color: variables.$body-background;
+	border-bottom-color: variables.$body-background;
 }


@@ -291,26 +293,26 @@ textarea:focus {
 #adminmenu .wp-has-current-submenu .wp-submenu,
 #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
-	background: $menu-submenu-background;
+	background: variables.$menu-submenu-background;
 }

 #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,
 #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after {
-	border-right-color: $menu-submenu-background;
+	border-right-color: variables.$menu-submenu-background;
 }

 #adminmenu .wp-submenu .wp-submenu-head {
-	color: $menu-submenu-text;
+	color: variables.$menu-submenu-text;
 }

 #adminmenu .wp-submenu a,
 #adminmenu .wp-has-current-submenu .wp-submenu a,
 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
-	color: $menu-submenu-text;
+	color: variables.$menu-submenu-text;

 	&:focus, &:hover {
-		color: $menu-submenu-focus-text;
+		color: variables.$menu-submenu-focus-text;
 	}
 }

@@ -320,24 +322,24 @@ textarea:focus {
 #adminmenu .wp-submenu li.current a,
 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
 #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
-	color: $menu-submenu-current-text;
+	color: variables.$menu-submenu-current-text;

 	&:hover, &:focus {
-		color: $menu-submenu-focus-text;
+		color: variables.$menu-submenu-focus-text;
 	}
 }

 ul#adminmenu a.wp-has-current-submenu:after,
 ul#adminmenu > li.current > a.current:after {
-    border-right-color: $body-background;
+    border-right-color: variables.$body-background;
 }

 #adminmenu li.current a.menu-top,
 #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
 #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
 .folded #adminmenu li.current.menu-top {
-	color: $menu-current-text;
-	background: $menu-current-background;
+	color: variables.$menu-current-text;
+	background: variables.$menu-current-background;
 }

 #adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
@@ -348,7 +350,7 @@ ul#adminmenu > li.current > a.current:after {
 #adminmenu li:hover div.wp-menu-image:before,
 #adminmenu li a:focus div.wp-menu-image:before,
 #adminmenu li.opensub div.wp-menu-image:before {
-	color: $menu-current-icon;
+	color: variables.$menu-current-icon;
 }


@@ -357,49 +359,49 @@ ul#adminmenu > li.current > a.current:after {
 #adminmenu .menu-counter,
 #adminmenu .awaiting-mod,
 #adminmenu .update-plugins {
-	color: $menu-bubble-text;
-	background: $menu-bubble-background;
+	color: variables.$menu-bubble-text;
+	background: variables.$menu-bubble-background;
 }

 #adminmenu li.current a .awaiting-mod,
 #adminmenu li a.wp-has-current-submenu .update-plugins,
 #adminmenu li:hover a .awaiting-mod,
 #adminmenu li.menu-top:hover > a .update-plugins {
-	color: $menu-bubble-current-text;
-	background: $menu-bubble-current-background;
+	color: variables.$menu-bubble-current-text;
+	background: variables.$menu-bubble-current-background;
 }


 /* Admin Menu: collapse button */

 #collapse-button {
-    color: $menu-collapse-text;
+    color: variables.$menu-collapse-text;
 }

 #collapse-button:hover,
 #collapse-button:focus {
-    color: $menu-submenu-focus-text;
+    color: variables.$menu-submenu-focus-text;
 }

 /* Admin Bar */

 #wpadminbar {
-	color: $menu-text;
-	background: $menu-background;
+	color: variables.$menu-text;
+	background: variables.$menu-background;
 }

 #wpadminbar .ab-item,
 #wpadminbar a.ab-item,
 #wpadminbar > #wp-toolbar span.ab-label,
 #wpadminbar > #wp-toolbar span.noticon {
-	color: $menu-text;
+	color: variables.$menu-text;
 }

 #wpadminbar .ab-icon,
 #wpadminbar .ab-icon:before,
 #wpadminbar .ab-item:before,
 #wpadminbar .ab-item:after {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
@@ -407,45 +409,45 @@ ul#adminmenu > li.current > a.current:after {
 #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
 #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
 #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
-	color: $menu-submenu-focus-text;
-	background: $menu-submenu-background;
+	color: variables.$menu-submenu-focus-text;
+	background: variables.$menu-submenu-background;
 }

 #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
 #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
 #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
-	color: $menu-submenu-focus-text;
+	color: variables.$menu-submenu-focus-text;
 }

 #wpadminbar:not(.mobile) li:hover .ab-icon:before,
 #wpadminbar:not(.mobile) li:hover .ab-item:before,
 #wpadminbar:not(.mobile) li:hover .ab-item:after,
 #wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
-	color: $menu-submenu-focus-text;
+	color: variables.$menu-submenu-focus-text;
 }


 /* Admin Bar: submenu */

 #wpadminbar .menupop .ab-sub-wrapper {
-	background: $menu-submenu-background;
+	background: variables.$menu-submenu-background;
 }

 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
-	background: $menu-submenu-background-alt;
+	background: variables.$menu-submenu-background-alt;
 }

 #wpadminbar .ab-submenu .ab-item,
 #wpadminbar .quicklinks .menupop ul li a,
 #wpadminbar .quicklinks .menupop.hover ul li a,
 #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
-	color: $menu-submenu-text;
+	color: variables.$menu-submenu-text;
 }

 #wpadminbar .quicklinks li .blavatar,
 #wpadminbar .menupop .menupop > .ab-item:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 #wpadminbar .quicklinks .menupop ul li a:hover,
@@ -466,7 +468,7 @@ ul#adminmenu > li.current > a.current:after {
 #wpadminbar li.hover .ab-item:before,
 #wpadminbar li:hover #adminbarsearch:before,
 #wpadminbar li #adminbarsearch.adminbar-focused:before {
-	color: $menu-submenu-focus-text;
+	color: variables.$menu-submenu-focus-text;
 }

 #wpadminbar .quicklinks li a:hover .blavatar,
@@ -475,82 +477,82 @@ ul#adminmenu > li.current > a.current:after {
 #wpadminbar .menupop .menupop > .ab-item:hover:before,
 #wpadminbar.mobile .quicklinks .ab-icon:before,
 #wpadminbar.mobile .quicklinks .ab-item:before {
-	color: $menu-submenu-focus-text;
+	color: variables.$menu-submenu-focus-text;
 }

 #wpadminbar.mobile .quicklinks .hover .ab-icon:before,
 #wpadminbar.mobile .quicklinks .hover .ab-item:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }


 /* Admin Bar: search */

 #wpadminbar #adminbarsearch:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
-	color: $menu-text;
-	background: $adminbar-input-background;
+	color: variables.$menu-text;
+	background: variables.$adminbar-input-background;
 }

 /* Admin Bar: recovery mode */

 #wpadminbar #wp-admin-bar-recovery-mode {
-	color: $adminbar-recovery-exit-text;
-	background-color: $adminbar-recovery-exit-background;
+	color: variables.$adminbar-recovery-exit-text;
+	background-color: variables.$adminbar-recovery-exit-background;
 }

 #wpadminbar #wp-admin-bar-recovery-mode .ab-item,
 #wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
-	color: $adminbar-recovery-exit-text;
+	color: variables.$adminbar-recovery-exit-text;
 }

 #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
 #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
-	color: $adminbar-recovery-exit-text;
-	background-color: $adminbar-recovery-exit-background-alt;
+	color: variables.$adminbar-recovery-exit-text;
+	background-color: variables.$adminbar-recovery-exit-background-alt;
 }

 /* Admin Bar: my account */

 #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
-	border-color: $adminbar-avatar-frame;
-	background-color: $adminbar-avatar-frame;
+	border-color: variables.$adminbar-avatar-frame;
+	background-color: variables.$adminbar-avatar-frame;
 }

 #wpadminbar #wp-admin-bar-user-info .display-name {
-	color: $menu-text;
+	color: variables.$menu-text;
 }

 #wpadminbar #wp-admin-bar-user-info a:hover .display-name {
-	color: $menu-submenu-focus-text;
+	color: variables.$menu-submenu-focus-text;
 }

 #wpadminbar #wp-admin-bar-user-info .username {
-	color: $menu-submenu-text;
+	color: variables.$menu-submenu-text;
 }


 /* Pointers */

 .wp-pointer .wp-pointer-content h3 {
-	background-color: $highlight-color;
-	border-color: color.adjust($highlight-color, $lightness: -5%);
+	background-color: variables.$highlight-color;
+	border-color: color.adjust(variables.$highlight-color, $lightness: -5%);
 }

 .wp-pointer .wp-pointer-content h3:before {
-	color: $highlight-color;
+	color: variables.$highlight-color;
 }

 .wp-pointer.wp-pointer-top .wp-pointer-arrow,
 .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
-	border-bottom-color: $highlight-color;
+	border-bottom-color: variables.$highlight-color;
 }


@@ -558,22 +560,22 @@ ul#adminmenu > li.current > a.current:after {

 .media-item .bar,
 .media-progress-bar div {
-	background-color: $highlight-color;
+	background-color: variables.$highlight-color;
 }

 .details.attachment {
 	box-shadow:
 		inset 0 0 0 3px #fff,
-		inset 0 0 0 7px $highlight-color;
+		inset 0 0 0 7px variables.$highlight-color;
 }

 .attachment.details .check {
-	background-color: $highlight-color;
-	box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color;
+	background-color: variables.$highlight-color;
+	box-shadow: 0 0 0 1px #fff, 0 0 0 2px variables.$highlight-color;
 }

 .media-selection .attachment.selection.details .thumbnail {
-	box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
+	box-shadow: 0 0 0 1px #fff, 0 0 0 3px variables.$highlight-color;
 }


@@ -582,49 +584,49 @@ ul#adminmenu > li.current > a.current:after {
 .theme-browser .theme.active .theme-name,
 .theme-browser .theme.add-new-theme a:hover:after,
 .theme-browser .theme.add-new-theme a:focus:after {
-	background: $highlight-color;
+	background: variables.$highlight-color;
 }

 .theme-browser .theme.add-new-theme a:hover span:after,
 .theme-browser .theme.add-new-theme a:focus span:after {
-	color: $highlight-color;
+	color: variables.$highlight-color;
 }

 .theme-section.current,
 .theme-filter.current {
-	border-bottom-color: $menu-background;
+	border-bottom-color: variables.$menu-background;
 }

 body.more-filters-opened .more-filters {
-	color: $menu-text;
-	background-color: $menu-background;
+	color: variables.$menu-text;
+	background-color: variables.$menu-background;
 }

 body.more-filters-opened .more-filters:before {
-	color: $menu-text;
+	color: variables.$menu-text;
 }

 body.more-filters-opened .more-filters:hover,
 body.more-filters-opened .more-filters:focus {
-	background-color: $menu-highlight-background;
-	color: $menu-highlight-text;
+	background-color: variables.$menu-highlight-background;
+	color: variables.$menu-highlight-text;
 }

 body.more-filters-opened .more-filters:hover:before,
 body.more-filters-opened .more-filters:focus:before {
-	color: $menu-highlight-text;
+	color: variables.$menu-highlight-text;
 }

 /* Widgets */

 .widgets-chooser li.widgets-chooser-selected {
-	background-color: $menu-highlight-background;
-	color: $menu-highlight-text;
+	background-color: variables.$menu-highlight-background;
+	color: variables.$menu-highlight-text;
 }

 .widgets-chooser li.widgets-chooser-selected:before,
 .widgets-chooser li.widgets-chooser-selected:focus:before {
-	color: $menu-highlight-text;
+	color: variables.$menu-highlight-text;
 }


@@ -632,29 +634,29 @@ body.more-filters-opened .more-filters:focus:before {

 .nav-menus-php .item-edit:focus:before {
 	box-shadow:
-		0 0 0 1px color.adjust($button-color, $lightness: 10%),
-		0 0 2px 1px $button-color;
+		0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
+		0 0 2px 1px variables.$button-color;
 }


 /* Responsive Component */

 div#wp-responsive-toggle a:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 .wp-responsive-open div#wp-responsive-toggle a {
 	// ToDo: make inset border
 	border-color: transparent;
-	background: $menu-highlight-background;
+	background: variables.$menu-highlight-background;
 }

 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
-	background: $menu-submenu-background;
+	background: variables.$menu-submenu-background;
 }

 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
-	color: $menu-icon;
+	color: variables.$menu-icon;
 }

 /* TinyMCE */
@@ -664,7 +666,7 @@ div#wp-responsive-toggle a:before {
 .mce-container.mce-menu .mce-menu-item:focus,
 .mce-container.mce-menu .mce-menu-item-normal.mce-active,
 .mce-container.mce-menu .mce-menu-item-preview.mce-active {
-	background: $highlight-color;
+	background: variables.$highlight-color;
 }

 /* Customizer */
@@ -673,24 +675,24 @@ div#wp-responsive-toggle a:before {
 	#customize-controls .control-section .accordion-section-title:hover,
 	#customize-controls .control-section.open .accordion-section-title,
 	#customize-controls .control-section .accordion-section-title:focus {
-		color: $link;
-		border-left-color: $button-color;
+		color: variables.$link;
+		border-left-color: variables.$button-color;
 	}

 	.customize-controls-close:focus,
 	.customize-controls-close:hover,
 	.customize-controls-preview-toggle:focus,
 	.customize-controls-preview-toggle:hover {
-		color: $link;
-		border-top-color: $button-color;
+		color: variables.$link;
+		border-top-color: variables.$button-color;
 	}

 	.customize-panel-back:hover,
 	.customize-panel-back:focus,
 	.customize-section-back:hover,
 	.customize-section-back:focus {
-		color: $link;
-		border-left-color: $button-color;
+		color: variables.$link;
+		border-left-color: variables.$button-color;
 	}

 	.customize-screen-options-toggle:hover,
@@ -700,7 +702,7 @@ div#wp-responsive-toggle a:before {
 	#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
 	#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
 	#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
-		color: $link;
+		color: variables.$link;
 	}

 	.customize-screen-options-toggle:focus:before,
@@ -711,28 +713,28 @@ div#wp-responsive-toggle a:before {
 	#customize-save-button-wrapper .save:focus,
 	#publish-settings:focus {
 		box-shadow:
-			0 0 0 1px color.adjust($button-color, $lightness: 10%),
-			0 0 2px 1px $button-color;
+			0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
+			0 0 2px 1px variables.$button-color;
 	}

 	#customize-controls .customize-info.open .customize-help-toggle,
 	#customize-controls .customize-info .customize-help-toggle:focus,
 	#customize-controls .customize-info .customize-help-toggle:hover {
-		color: $link;
+		color: variables.$link;
 	}

 	.control-panel-themes .customize-themes-section-title:focus,
 	.control-panel-themes .customize-themes-section-title:hover {
-		border-left-color: $button-color;
-		color: $link;
+		border-left-color: variables.$button-color;
+		color: variables.$link;
 	}

 	.control-panel-themes .theme-section .customize-themes-section-title.selected:after {
-		background: $button-color;
+		background: variables.$button-color;
 	}

 	.control-panel-themes .customize-themes-section-title.selected {
-		color: $link;
+		color: variables.$link;
 	}

 	#customize-theme-controls .control-section:hover > .accordion-section-title:after,
@@ -743,37 +745,37 @@ div#wp-responsive-toggle a:before {
 	#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,
 	#customize-outer-theme-controls .control-section.open .accordion-section-title:after,
 	#customize-outer-theme-controls .control-section .accordion-section-title:focus:after {
-		color: $link;
+		color: variables.$link;
 	}

 	.customize-control .attachment-media-view .button-add-media:focus {
 		background-color: #fbfbfc;
-		border-color: $button-color;
+		border-color: variables.$button-color;
 		border-style: solid;
-		box-shadow: 0 0 0 1px $button-color;
+		box-shadow: 0 0 0 1px variables.$button-color;
 		outline: 2px solid transparent;
 	}

 	.wp-full-overlay-footer .devices button:focus,
 	.wp-full-overlay-footer .devices button.active:hover {
-		border-bottom-color: $button-color;
+		border-bottom-color: variables.$button-color;
 	}

 	.wp-full-overlay-footer .devices button:hover:before,
 	.wp-full-overlay-footer .devices button:focus:before {
-		color: $button-color;
+		color: variables.$button-color;
 	}

 	.wp-full-overlay .collapse-sidebar:hover,
 	.wp-full-overlay .collapse-sidebar:focus {
-		color: $button-color;
+		color: variables.$button-color;
 	}

 	.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow,
 	.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow {
 		box-shadow:
-			0 0 0 1px color.adjust($button-color, $lightness: 10%),
-			0 0 2px 1px $button-color;
+			0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
+			0 0 2px 1px variables.$button-color;
 	}

 	&.wp-customizer .theme-overlay .theme-header .close:focus,
@@ -782,7 +784,7 @@ div#wp-responsive-toggle a:before {
 	&.wp-customizer .theme-overlay .theme-header .right:hover,
 	&.wp-customizer .theme-overlay .theme-header .left:focus,
 	&.wp-customizer .theme-overlay .theme-header .left:hover {
-		border-bottom-color: $button-color;
-		color: $link;
+		border-bottom-color: variables.$button-color;
+		color: variables.$link;
 	}
 }
diff --git a/wp-admin/css/colors/_mixins.scss b/wp-admin/css/colors/_mixins.scss
index a84d7d58ab..d33cf3bb2d 100644
--- a/wp-admin/css/colors/_mixins.scss
+++ b/wp-admin/css/colors/_mixins.scss
@@ -1,3 +1,5 @@
+@use 'sass:color';
+
 /*
  * Button mixin- creates a button effect with correct
  * highlights/shadows, based on a base color.
diff --git a/wp-admin/css/colors/_variables.scss b/wp-admin/css/colors/_variables.scss
index b16601657b..8a073f830e 100644
--- a/wp-admin/css/colors/_variables.scss
+++ b/wp-admin/css/colors/_variables.scss
@@ -1,3 +1,5 @@
+@use "sass:color";
+
 // assign default value to all undefined variables

 $scheme-name: "default" !default;
@@ -37,7 +39,7 @@ $menu-current-text: $menu-highlight-text !default;
 $menu-current-icon: $menu-highlight-icon !default;
 $menu-current-background: $menu-highlight-background !default;

-$menu-submenu-text: mix( $base-color, $text-color, 30% ) !default;
+$menu-submenu-text: color.mix( $base-color, $text-color, 30% ) !default;
 $menu-submenu-background: color.adjust($base-color, $lightness: -7%) !default;
 $menu-submenu-background-alt: color.adjust(color.adjust($menu-background, $lightness: 7%), $saturation: -7%) !default;

@@ -59,9 +61,9 @@ $adminbar-input-background: color.adjust($menu-background, $lightness: 7%) !defa

 $adminbar-recovery-exit-text: $menu-bubble-text !default;
 $adminbar-recovery-exit-background: $menu-bubble-background !default;
-$adminbar-recovery-exit-background-alt: mix(black, $adminbar-recovery-exit-background, 10%) !default;
+$adminbar-recovery-exit-background-alt: color.mix(black, $adminbar-recovery-exit-background, 10%) !default;

-$menu-customizer-text: mix( $base-color, $text-color, 40% ) !default;
+$menu-customizer-text: color.mix( $base-color, $text-color, 40% ) !default;

 // Dashboard Colors

diff --git a/wp-admin/css/colors/blue/colors.scss b/wp-admin/css/colors/blue/colors.scss
index 805338d0f0..1fca84c12b 100644
--- a/wp-admin/css/colors/blue/colors.scss
+++ b/wp-admin/css/colors/blue/colors.scss
@@ -1,16 +1,16 @@
-@use "sass:color";
-
-$scheme-name: "blue";
-$base-color: #52accc;
-$icon-color: #e5f8ff;
 $highlight-color: #096484;
-$notification-color: #e1a948;
-$button-color: #e1a948;

-$menu-submenu-text: #e2ecf1;
-$menu-submenu-focus-text: #fff;
-$menu-submenu-background: #4796b3;
+@use "../_admin.scss" with (
+	$scheme-name: "blue",
+	$base-color: #52accc,
+	$icon-color: #e5f8ff,
+	$highlight-color: $highlight-color,
+	$notification-color: #e1a948,
+	$button-color: #e1a948,

-$dashboard-icon-background: $highlight-color;
+	$menu-submenu-text: #e2ecf1,
+	$menu-submenu-focus-text: #fff,
+	$menu-submenu-background: #4796b3,

-@import "../_admin.scss";
+	$dashboard-icon-background: $highlight-color
+);
diff --git a/wp-admin/css/colors/coffee/colors.scss b/wp-admin/css/colors/coffee/colors.scss
index ff6fb162bd..80f846ae67 100644
--- a/wp-admin/css/colors/coffee/colors.scss
+++ b/wp-admin/css/colors/coffee/colors.scss
@@ -1,11 +1,11 @@
-@use "sass:color";
-
-$scheme-name: "coffee";
 $base-color: #59524c;
-$highlight-color: #c7a589;
-$notification-color: #9ea476;
-$low-contrast-theme: "true";

-$form-checked: $base-color;
+@use "../_admin.scss" with (
+	$scheme-name: "coffee",
+	$base-color: $base-color,
+	$highlight-color: #c7a589,
+	$notification-color: #9ea476,
+	$form-checked: $base-color,

-@import "../_admin.scss";
+	$low-contrast-theme: "true"
+);
diff --git a/wp-admin/css/colors/ectoplasm/colors.scss b/wp-admin/css/colors/ectoplasm/colors.scss
index 9c54d7bfd0..a38736a9a2 100644
--- a/wp-admin/css/colors/ectoplasm/colors.scss
+++ b/wp-admin/css/colors/ectoplasm/colors.scss
@@ -1,11 +1,11 @@
-@use "sass:color";
-
-$scheme-name: "ectoplasm";
 $base-color: #523f6d;
-$icon-color: #ece6f6;
-$highlight-color: #a3b745;
-$notification-color: #d46f15;

-$form-checked: $base-color;
+@use "../_admin.scss" with (
+	$scheme-name: "ectoplasm",
+	$base-color: $base-color,
+	$icon-color: #ece6f6,
+	$highlight-color: #a3b745,
+	$notification-color: #d46f15,

-@import "../_admin.scss";
+	$form-checked: $base-color,
+);
diff --git a/wp-admin/css/colors/light/colors.scss b/wp-admin/css/colors/light/colors.scss
index 3dc2e67b04..e9fde92e32 100644
--- a/wp-admin/css/colors/light/colors.scss
+++ b/wp-admin/css/colors/light/colors.scss
@@ -1,33 +1,36 @@
 @use "sass:color";

-$scheme-name: "light";
-$base-color: #e5e5e5;
-$icon-color: #999;
-$text-color: #333;
 $highlight-color: #04a4cc;
-$notification-color: #d64e07;
+$text-color: #333;
+$menu-avatar-frame: #aaa;

-$body-background: #f5f5f5;
+@use "../_admin.scss" with (
+	$scheme-name: "light",
+	$base-color: #e5e5e5,
+	$icon-color: #999,
+	$text-color: $text-color,
+	$highlight-color: $highlight-color,
+	$notification-color: #d64e07,

-$menu-highlight-text: #fff;
-$menu-highlight-icon: #ccc;
-$menu-highlight-background: #888;
+	$body-background: #f5f5f5,

-$menu-bubble-text: #fff;
-$menu-avatar-frame: #aaa;
-$menu-submenu-background: #fff;
+	$menu-highlight-text: #fff,
+	$menu-highlight-icon: #ccc,
+	$menu-highlight-background: #888,

-$menu-collapse-text: #777;
-$menu-collapse-focus-icon: #555;
+	$menu-bubble-text: #fff,
+	$menu-submenu-background: #fff,

-$dashboard-accent-1: $highlight-color;
-$dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%);
-$dashboard-icon-background: $text-color;
+	$menu-collapse-text: #777,
+	$menu-collapse-focus-icon: #555,

-@import "../_admin.scss";
+	$dashboard-accent-1: $highlight-color,
+	$dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%),
+	$dashboard-icon-background: $text-color
+);

 /* Override the theme filter highlight color for this scheme */
 .theme-section.current,
 .theme-filter.current {
-	border-bottom-color: $highlight-color;
+	border-bottom-color: admin.$highlight-color;
 }
diff --git a/wp-admin/css/colors/midnight/colors.scss b/wp-admin/css/colors/midnight/colors.scss
index 529598ac50..21e9f23640 100644
--- a/wp-admin/css/colors/midnight/colors.scss
+++ b/wp-admin/css/colors/midnight/colors.scss
@@ -1,10 +1,14 @@
 @use "sass:color";

-$scheme-name: "midnight";
 $base-color: #363b3f;
 $highlight-color: #e14d43;
 $notification-color: #69a8bb;

-$dashboard-accent-2: mix($base-color, $notification-color, 90%);
+@use "../_admin.scss" with (
+	$scheme-name: "midnight",
+	$base-color: $base-color,
+	$highlight-color: $highlight-color,
+	$notification-color: $notification-color,

-@import "../_admin.scss";
+	$dashboard-accent-2: color.mix($base-color, $notification-color, 90%),
+);
diff --git a/wp-admin/css/colors/modern/colors.scss b/wp-admin/css/colors/modern/colors.scss
index a66855729f..45c750c0f5 100644
--- a/wp-admin/css/colors/modern/colors.scss
+++ b/wp-admin/css/colors/modern/colors.scss
@@ -1,14 +1,16 @@
 @use "sass:color";

-$scheme-name: "modern";
-$base-color: #1e1e1e;
 $highlight-color: #3858e9;
-$menu-submenu-focus-text: #7b90ff;
-$notification-color: $highlight-color;

-$link: $highlight-color;
-$link-focus: color.adjust($highlight-color, $lightness: -10%);
+@use "../_admin.scss" with (
+	$scheme-name: "modern",
+	$base-color: #1e1e1e,
+	$highlight-color: #3858e9,
+	$menu-submenu-focus-text: #7b90ff,
+	$notification-color: $highlight-color,

-$custom-welcome-panel: "false";
+	$link: $highlight-color,
+	$link-focus: color.adjust($highlight-color, $lightness: -10%),

-@import "../_admin.scss";
+	$custom-welcome-panel: "false"
+);
diff --git a/wp-admin/css/colors/ocean/colors.scss b/wp-admin/css/colors/ocean/colors.scss
index e9bd47689c..d0ad861c94 100644
--- a/wp-admin/css/colors/ocean/colors.scss
+++ b/wp-admin/css/colors/ocean/colors.scss
@@ -1,12 +1,12 @@
-@use "sass:color";
-
-$scheme-name: "ocean";
 $base-color: #738e96;
-$icon-color: #f2fcff;
-$highlight-color: #9ebaa0;
-$notification-color: #aa9d88;
-$low-contrast-theme: "true";

-$form-checked: $base-color;
+@use "../_admin.scss" with (
+	$scheme-name: "ocean",
+	$base-color: $base-color,
+	$icon-color: #f2fcff,
+	$highlight-color: #9ebaa0,
+	$notification-color: #aa9d88,
+	$form-checked: $base-color,

-@import "../_admin.scss";
+	$low-contrast-theme: "true"
+);
diff --git a/wp-admin/css/colors/sunrise/colors.scss b/wp-admin/css/colors/sunrise/colors.scss
index 4094eb26be..146fd11960 100644
--- a/wp-admin/css/colors/sunrise/colors.scss
+++ b/wp-admin/css/colors/sunrise/colors.scss
@@ -1,9 +1,11 @@
 @use "sass:color";

-$scheme-name: "sunrise";
-$base-color: #cf4944;
 $highlight-color: #dd823b;
-$notification-color: #ccaf0b;
-$menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%);

-@import "../_admin.scss";
+@use "../_admin.scss" with (
+  $scheme-name: "sunrise",
+  $base-color: #cf4944,
+  $highlight-color: $highlight-color,
+  $notification-color: #ccaf0b,
+  $menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%)
+);
diff --git a/wp-includes/version.php b/wp-includes/version.php
index aded671dad..e93fb688ce 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.8-alpha-59635';
+$wp_version = '6.8-alpha-59656';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.