diff --git a/packages/components/src/components/overflow-menu/_overflow-menu.scss b/packages/components/src/components/overflow-menu/_overflow-menu.scss index a192cdcbd849..c1e5abcd0d04 100644 --- a/packages/components/src/components/overflow-menu/_overflow-menu.scss +++ b/packages/components/src/components/overflow-menu/_overflow-menu.scss @@ -42,7 +42,7 @@ } &:hover { - background-color: $hover-ui; + background-color: $background-hover; } } @@ -72,7 +72,7 @@ .#{$prefix}--overflow-menu__trigger { @include box-shadow; - background-color: $field-01; + background-color: $layer; transition: none; } @@ -85,7 +85,7 @@ .#{$prefix}--overflow-menu__icon { width: rem(16px); height: rem(16px); - fill: $icon-01; + fill: $icon-primary; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -108,12 +108,12 @@ align-items: flex-start; width: rem(160px); list-style: none; - background-color: $field-01; + background-color: $layer; &::after { position: absolute; display: block; - background-color: $field-01; + background-color: $layer; transition: background-color $duration--fast-02 motion(entrance, productive); content: ''; @@ -121,7 +121,7 @@ } .#{$prefix}--overflow-menu.#{$prefix}--overflow-menu--open:hover { - background-color: $field-01; + background-color: $layer; } .#{$prefix}--overflow-menu-options--light { @@ -233,7 +233,7 @@ } .#{$prefix}--overflow-menu--divider { - border-top: 1px solid $ui-03; + border-top: 1px solid $border-subtle; } .#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider { @@ -282,11 +282,11 @@ } .#{$prefix}--overflow-menu-options__btn svg { - fill: $icon-02; + fill: $icon-secondary; } .#{$prefix}--overflow-menu-options__btn:hover svg { - fill: $icon-01; + fill: $icon-primary; } .#{$prefix}--overflow-menu-options__option-content { @@ -296,15 +296,15 @@ } .#{$prefix}--overflow-menu-options__option:hover { - background-color: $hover-ui; + background-color: $layer-hover; } .#{$prefix}--overflow-menu-options__option--danger .#{$prefix}--overflow-menu-options__btn:hover, .#{$prefix}--overflow-menu-options__option--danger .#{$prefix}--overflow-menu-options__btn:focus { - color: $text-04; - background-color: $danger-01; + color: $text-on-color; + background-color: $button-danger-primary; svg { fill: currentColor; @@ -312,13 +312,13 @@ } .#{$prefix}--overflow-menu-options__option--disabled:hover { - background-color: $ui-01; + background-color: $layer; cursor: not-allowed; } .#{$prefix}--overflow-menu-options__option--disabled .#{$prefix}--overflow-menu-options__btn { - color: $disabled-02; + color: $text-disabled; pointer-events: none; &:hover, @@ -326,14 +326,14 @@ &:focus { @include focus-outline('reset'); - background-color: $ui-01; + background-color: $layer; } } .#{$prefix}--overflow-menu-options__option--disabled .#{$prefix}--overflow-menu-options__btn svg { - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--overflow-menu--flip { diff --git a/packages/components/src/components/pagination-nav/_pagination-nav.scss b/packages/components/src/components/pagination-nav/_pagination-nav.scss index 346ce87d886c..f009425a34b1 100644 --- a/packages/components/src/components/pagination-nav/_pagination-nav.scss +++ b/packages/components/src/components/pagination-nav/_pagination-nav.scss @@ -29,7 +29,7 @@ display: block; width: 0; height: $carbon--spacing-02; - background-color: $interactive-01; + background-color: $background-brand; opacity: 0; transition: width $duration--fast-02 motion(standard, productive); content: ''; @@ -59,9 +59,9 @@ /// @param {Number} $select-icon-top-position [$carbon--spacing-05] /// @param {Number} $select-icon-left-position [$carbon--spacing-05] @mixin pagination-nav( - $text-color: $text-02, - $text-color-active: $text-02, - $background-color-hover: $hover-ui, + $text-color: $text-secondary, + $text-color-active: $text-secondary, + $background-color-hover: $background-hover, $background-color-active: initial, $font-weight: 400, $item-padding: 0, diff --git a/packages/components/src/components/pagination/_pagination.scss b/packages/components/src/components/pagination/_pagination.scss index 3d2d7e9fb666..147caff1eba8 100644 --- a/packages/components/src/components/pagination/_pagination.scss +++ b/packages/components/src/components/pagination/_pagination.scss @@ -36,8 +36,8 @@ $css--helpers: true; width: calc(100% - 1px); min-height: rem(48px); overflow-x: auto; - background-color: $ui-01; - border-top: 1px solid $ui-03; + background-color: $layer; + border-top: 1px solid $border-subtle; @include carbon--breakpoint('md') { overflow: initial; @@ -84,7 +84,7 @@ $css--helpers: true; } .#{$prefix}--pagination .#{$prefix}--select-input:hover { - background: $hover-ui; + background: $background-hover; } .#{$prefix}--pagination .#{$prefix}--select__arrow { @@ -95,13 +95,13 @@ $css--helpers: true; .#{$prefix}--pagination .#{$prefix}--select__item-count .#{$prefix}--select-input { - border-right: $spacing-4xs solid $ui-03; + border-right: $spacing-4xs solid $border-subtle; } .#{$prefix}--pagination .#{$prefix}--select__page-number .#{$prefix}--select-input { - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; } .#{$prefix}--pagination__left, @@ -146,7 +146,7 @@ $css--helpers: true; span.#{$prefix}--pagination__text { margin-left: $carbon--spacing-05; - color: $text-02; + color: $text-secondary; } .#{$prefix}--pagination__button, @@ -162,11 +162,11 @@ $css--helpers: true; background: none; border: none; - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; cursor: pointer; transition: outline $duration--fast-02 motion(standard, productive), background-color $duration--fast-02 motion(standard, productive); - fill: $ui-05; + fill: $icon-primary; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -185,23 +185,23 @@ $css--helpers: true; .#{$prefix}--pagination__button:hover, .#{$prefix}--btn--ghost:hover.#{$prefix}--pagination__button { - background: $hover-ui; + background: $layer-hover; } .#{$prefix}--pagination__button--no-index, .#{$prefix}--btn--ghost.#{$prefix}--pagination__button--no-index { cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--pagination__button:disabled:hover, .#{$prefix}--pagination__button--no-index:hover, .#{$prefix}--btn--ghost:disabled:hover.#{$prefix}--pagination__button, .#{$prefix}--btn--ghost:hover.#{$prefix}--pagination__button--no-index { - background: $ui-01; - border-color: $ui-03; + background: $layer; + border-color: $border-subtle; cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } // Skeleton state diff --git a/packages/components/src/components/pagination/_unstable_pagination.scss b/packages/components/src/components/pagination/_unstable_pagination.scss index c803b3eb27cb..ec058bc2dddf 100644 --- a/packages/components/src/components/pagination/_unstable_pagination.scss +++ b/packages/components/src/components/pagination/_unstable_pagination.scss @@ -29,8 +29,8 @@ $css--helpers: true; width: 100%; height: rem(48px); - background-color: $ui-01; - border-top: 1px solid $ui-03; + background-color: $layer; + border-top: 1px solid $border-subtle; border-bottom: 1px solid transparent; } @@ -40,7 +40,7 @@ $css--helpers: true; } margin: 0 $carbon--spacing-05; - color: $text-02; + color: $text-secondary; } .#{$prefix}--unstable-pagination__left, @@ -79,7 +79,7 @@ $css--helpers: true; height: 100%; margin: 0; padding: 0 rem(14px); - color: $ui-05; + color: $icon-primary; background: none; border: none; @@ -87,7 +87,7 @@ $css--helpers: true; cursor: pointer; transition: outline $duration--fast-02 motion(standard, productive), background-color $duration--fast-02 motion(standard, productive); - fill: $ui-05; + fill: $icon-primary; } // Unset height/width set by icon-only button: @@ -101,25 +101,25 @@ $css--helpers: true; } .#{$prefix}--unstable-pagination__button:hover { - color: $ui-05; - background: $hover-ui; + color: $icon-primary; + background: $layer-hover; } .#{$prefix}--unstable-pagination__button--no-index { cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--unstable-pagination__button.#{$prefix}--btn:disabled { background: transparent; - border-color: $ui-03; + border-color: $border-subtle; } .#{$prefix}--unstable-pagination__button:disabled:hover, .#{$prefix}--unstable-pagination__button--no-index:hover { background: transparent; cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--unstable-pagination__page-selector, @@ -155,7 +155,7 @@ $css--helpers: true; .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select-input:hover, .#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input:hover { - background: $hover-ui; + background: $background-hover; } .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select__arrow, @@ -169,11 +169,11 @@ $css--helpers: true; } .#{$prefix}--unstable-pagination__page-selector { - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; } .#{$prefix}--unstable-pagination__page-sizer { - border-right: 1px solid $ui-03; + border-right: 1px solid $border-subtle; } } diff --git a/packages/components/src/components/popover/_popover.scss b/packages/components/src/components/popover/_popover.scss index e92a3403e468..8a0faeb009cd 100644 --- a/packages/components/src/components/popover/_popover.scss +++ b/packages/components/src/components/popover/_popover.scss @@ -13,7 +13,7 @@ /// @access private /// @group popover @mixin popover { - $popover-text-color: $text-01; + $popover-text-color: $text-primary; $popover-caret-offset: 1rem; $popover-box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.2); $popover-offset: 8px; @@ -39,17 +39,17 @@ width: max-content; max-width: rem(368px); color: $popover-text-color; - background-color: $ui-01; + background-color: $layer; border-radius: 2px; } .#{$prefix}--popover--light .#{$prefix}--popover-contents { - background-color: $ui-background; + background-color: $background; } .#{$prefix}--popover--high-contrast .#{$prefix}--popover-contents { - color: $inverse-01; - background-color: $inverse-02; + color: $text-inverse; + background-color: $background-inverse; } .#{$prefix}--popover--caret .#{$prefix}--popover-contents::before, diff --git a/packages/components/src/components/progress-indicator/_progress-indicator.scss b/packages/components/src/components/progress-indicator/_progress-indicator.scss index a5b931477387..a9750d7f598c 100644 --- a/packages/components/src/components/progress-indicator/_progress-indicator.scss +++ b/packages/components/src/components/progress-indicator/_progress-indicator.scss @@ -62,7 +62,7 @@ height: $carbon--spacing-05; margin: rem(10px) $carbon--spacing-03 0 0; border-radius: 50%; - fill: $interactive-04; + fill: $interactive; } .#{$prefix}--progress-label { @@ -71,7 +71,7 @@ max-width: rem(88px); margin: $carbon--spacing-03 0 0 0; overflow: hidden; - color: $text-01; + color: $text-primary; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; @@ -85,15 +85,15 @@ } .#{$prefix}--progress-label:hover { - color: $link-01; - box-shadow: 0 rem(1px) $link-01; + color: $link-primary; + box-shadow: 0 rem(1px) $link-primary; cursor: pointer; } .#{$prefix}--progress-label:focus { - color: $link-01; + color: $link-primary; outline: none; - box-shadow: 0 rem(3px) 0 0 $link-01; + box-shadow: 0 rem(3px) 0 0 $link-primary; } .#{$prefix}--progress--space-equal .#{$prefix}--progress-label { @@ -102,8 +102,8 @@ } .#{$prefix}--progress-label:active { - color: $interactive-01; - box-shadow: 0 rem(3px) 0 0 $interactive-01; + color: $background-brand; + box-shadow: 0 rem(3px) 0 0 $background-brand; } //OVERFLOW STYLING @@ -134,7 +134,7 @@ margin-top: rem(40px); margin-left: rem(22px); padding: $carbon--spacing-03 $carbon--spacing-05; - color: $inverse-01; + color: $text-inverse; visibility: hidden; } @@ -144,7 +144,7 @@ width: rem(150px); height: auto; - color: $inverse-01; + color: $text-inverse; } //OPTIONAL HELPER TEXT STYLING @@ -155,32 +155,32 @@ left: 0; margin-top: rem(28px); margin-left: $carbon--spacing-06; - color: $text-02; + color: $text-secondary; text-align: start; } //CURRENT STYLING .#{$prefix}--progress-step--current { .#{$prefix}--progress-line { - background-color: $interactive-04; + background-color: $interactive; } } //INCOMPLETE STYLING .#{$prefix}--progress-step--incomplete { svg { - fill: $ui-05; + fill: $icon-primary; } .#{$prefix}--progress-line { - background-color: $ui-03; + background-color: $border-subtle; } } //COMPLETED STYLING .#{$prefix}--progress-step--complete { .#{$prefix}--progress-line { - background-color: $interactive-04; + background-color: $interactive; } } @@ -200,15 +200,15 @@ .#{$prefix}--progress-step-button--unclickable .#{$prefix}--progress-label:hover { - color: $text-01; + color: $text-primary; box-shadow: none; cursor: default; } .#{$prefix}--progress-step-button--unclickable .#{$prefix}--tooltip__label:hover { - color: $link-01; - box-shadow: 0 rem(1px) $link-01; + color: $link-primary; + box-shadow: 0 rem(1px) $link-primary; cursor: pointer; } @@ -248,7 +248,7 @@ // ERROR STYLING .#{$prefix}--progress__warning > * { - fill: $support-01; + fill: $support-error; } // Skeleton State diff --git a/packages/components/src/components/radio-button/_radio-button.scss b/packages/components/src/components/radio-button/_radio-button.scss index e89f6cfae15c..799b7e822d1b 100644 --- a/packages/components/src/components/radio-button/_radio-button.scss +++ b/packages/components/src/components/radio-button/_radio-button.scss @@ -72,7 +72,7 @@ height: rem(18px); margin: rem(1px) $carbon--spacing-03 rem(2px) rem(2px); background-color: transparent; - border: $radio-border-width solid $icon-01; + border: $radio-border-width solid $icon-primary; border-radius: 50%; } @@ -82,14 +82,14 @@ display: flex; align-items: center; justify-content: center; - border-color: $icon-01; + border-color: $icon-primary; &::before { position: relative; display: inline-block; width: 100%; height: 100%; - background-color: $icon-01; + background-color: $icon-primary; border-radius: 50%; transform: scale(0.5); content: ''; diff --git a/packages/components/src/components/search/_search.scss b/packages/components/src/components/search/_search.scss index 16523e01bc20..15ddcd587a92 100644 --- a/packages/components/src/components/search/_search.scss +++ b/packages/components/src/components/search/_search.scss @@ -38,11 +38,11 @@ order: 1; width: 100%; padding: 0 $carbon--spacing-08; - color: $text-01; + color: $text-primary; text-overflow: ellipsis; - background-color: $field-01; + background-color: $field; border: none; - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; transition: background-color $duration--fast-02 motion(standard, productive), outline $duration--fast-02 motion(standard, productive); appearance: none; @@ -62,7 +62,7 @@ .#{$prefix}--search-input[disabled] { color: $disabled; - background-color: $disabled-01; + background-color: $field-disabled; border-bottom: 1px solid transparent; cursor: not-allowed; @@ -70,7 +70,6 @@ color: $disabled; } } - .#{$prefix}--search--light .#{$prefix}--search-input { background: $field-02; } @@ -121,7 +120,7 @@ height: rem(16px); transform: translateY(-50%); pointer-events: none; - fill: $icon-02; + fill: $icon-secondary; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -146,14 +145,14 @@ display: block; width: 2px; height: calc(100% - 2px); - background-color: $field-01; + background-color: $field; transition: background-color $duration--fast-02 motion(standard, productive); content: ''; } &:hover { - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; &::before { background-color: $hover-field; @@ -164,7 +163,7 @@ .#{$prefix}--search-button { flex-shrink: 0; margin-left: $carbon--spacing-01; - background-color: $field-01; + background-color: $field; svg { vertical-align: middle; @@ -199,7 +198,7 @@ background-color $duration--fast-02 motion(standard, productive), outline $duration--fast-02 motion(standard, productive), border $duration--fast-02 motion(standard, productive); - fill: $icon-01; + fill: $icon-primary; &:hover { background-color: $hover-field; @@ -212,7 +211,7 @@ &:active { @include focus-outline('outline'); - background-color: $selected-ui; + background-color: $background-selected; } } @@ -350,7 +349,7 @@ } .#{$prefix}--search--expandable .#{$prefix}--search-magnifier:hover { - background-color: $hover-ui; + background-color: $background-hover; } .#{$prefix}--search--expandable.#{$prefix}--search--expanded @@ -359,12 +358,12 @@ } .#{$prefix}--search--expandable .#{$prefix}--search-magnifier-icon { - fill: $icon-01; + fill: $icon-primary; } .#{$prefix}--search--expandable.#{$prefix}--search--expanded .#{$prefix}--search-magnifier-icon { - fill: $icon-02; + fill: $icon-secondary; } } diff --git a/packages/components/src/components/select/_select.scss b/packages/components/src/components/select/_select.scss index 33603fd24908..5a4daba9c885 100644 --- a/packages/components/src/components/select/_select.scss +++ b/packages/components/src/components/select/_select.scss @@ -45,10 +45,10 @@ width: 100%; height: rem(40px); padding: 0 $spacing-09 0 $spacing-05; - color: $text-01; - background-color: $field-01; + color: $text-primary; + background-color: $field; border: none; - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; border-radius: 0; cursor: pointer; // reset disabled