UI: Cleanup scss color variables (#31386)

* update greys to use hds tokens

* update blue vars

* remove unused color vars

* replace remaining colors, add hex codes in commnets

* update kv rgp color

* remove color_variables file and use hds tokens directly
This commit is contained in:
claire bontempo 2025-07-29 13:13:08 -07:00 committed by GitHub
parent 4036485739
commit f18a0643d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
60 changed files with 354 additions and 612 deletions

View File

@ -1,13 +1,11 @@
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
*/ */
.autocomplete-input { .autocomplete-input {
background: color_variables.$white !important; background: hsl(0, 0%, 100%) !important;
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
box-sizing: border-box; box-sizing: border-box;
border-radius: 3px; border-radius: 3px;
width: 99%; width: 99%;
@ -19,7 +17,7 @@
.autocomplete-input-option { .autocomplete-input-option {
padding: 12px; padding: 12px;
&:hover { &:hover {
background-color: color_variables.$grey-lightest; background-color: var(--token-color-palette-neutral-50);
cursor: pointer; cursor: pointer;
} }
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../core/box.scss'; @use '../core/box.scss';
@use '../core/columns.scss'; @use '../core/columns.scss';
@ -18,7 +17,7 @@ label.box-label {
@extend .box; @extend .box;
@extend .is-centered; @extend .is-centered;
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
border-radius: 3px; border-radius: 3px;
box-shadow: box-shadow_variables.$box-link-shadow; box-shadow: box-shadow_variables.$box-link-shadow;
text-decoration: none; text-decoration: none;
@ -37,12 +36,12 @@ label.box-label {
box-shadow: box-shadow_variables.$box-link-hover-shadow, box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-link-hover-shadow, box-shadow_variables.$box-shadow-middle;
.icon { .icon {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
} }
} }
.icon { .icon {
color: color_variables.$grey-light; color: var(--token-color-palette-neutral-300);
} }
input[type='radio'] { input[type='radio'] {
@ -50,7 +49,7 @@ label.box-label {
} }
input[type='radio'] + label { input[type='radio'] + label {
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
display: block; display: block;
@ -60,16 +59,16 @@ label.box-label {
} }
input[type='radio']:checked + label { input[type='radio']:checked + label {
background: color_variables.$blue; background: var(--token-color-palette-blue-200);
border: 1px solid color_variables.$blue; border: 1px solid var(--token-color-palette-blue-200);
box-shadow: inset 0 0 0 0.15rem color_variables.$white; box-shadow: inset 0 0 0 0.15rem hsl(0, 0%, 100%);
} }
} }
.box-label-header { .box-label-header {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
.is-selected & { .is-selected & {
color: color_variables.$grey-darkest; color: var(--token-color-palette-neutral-600);
} }
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -41,7 +40,7 @@ $dark-gray: #535f73;
.border-col { .border-col {
grid-area: border-col; grid-area: border-col;
background-color: color_variables.$ui-gray-200; background-color: var(--token-color-palette-neutral-200);
} }
.calendar-widget-container { .calendar-widget-container {

View File

@ -1,6 +1,5 @@
@use 'sass:color'; @use 'sass:color';
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -31,24 +30,7 @@
grid-column-start: 1; grid-column-start: 1;
grid-column-end: span col4-end; grid-column-end: span col4-end;
grid-row-start: 1; grid-row-start: 1;
box-shadow: inset 0 -1px 0 color_variables.$ui-gray-200; box-shadow: inset 0 -1px 0 var(--token-color-palette-neutral-200);
}
.has-header-link {
display: grid;
grid-template-columns: 4fr 1fr;
.header-right {
text-align: right;
> button {
&:hover,
&:focus {
background-color: transparent;
background-color: color.adjust(color_variables.$ui-gray-050, $lightness: -5%);
border-color: color.adjust(color_variables.$ui-gray-300, $lightness: -5%);
}
}
}
} }
.chart-container-wide { .chart-container-wide {
@ -67,40 +49,6 @@
} }
} }
.chart-container-left {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 2;
grid-row-end: 5;
padding-bottom: size_variables.$spacing-36;
margin-bottom: size_variables.$spacing-12;
box-shadow: inset 0 -1px 0 color_variables.$ui-gray-200;
> h2 {
padding-left: 18px;
}
> p {
padding-left: 18px;
}
}
.chart-container-right {
grid-column-start: 4;
grid-column-end: 8;
grid-row-start: 2;
grid-row-end: 5;
padding-bottom: size_variables.$spacing-36;
margin-bottom: size_variables.$spacing-12;
box-shadow: inset 0 -1px 0 color_variables.$ui-gray-200;
> h2 {
padding-left: 18px;
}
> p {
padding-left: 18px;
}
}
.chart-empty-state { .chart-empty-state {
place-self: center stretch; place-self: center stretch;
grid-row-end: span 2; grid-row-end: span 2;
@ -159,14 +107,14 @@ h2.chart-title {
} }
p.chart-description { p.chart-description {
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
font-size: 14px; font-size: 14px;
line-height: 18px; line-height: 18px;
margin-bottom: size_variables.$spacing-8; margin-bottom: size_variables.$spacing-8;
} }
p.chart-subtext { p.chart-subtext {
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
line-height: 16px; line-height: 16px;
margin-top: size_variables.$spacing-8; margin-top: size_variables.$spacing-8;

View File

@ -1,6 +1,5 @@
@use 'sass:color'; @use 'sass:color';
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -29,7 +28,7 @@ $console-close-height: 35px;
} }
.console-ui-panel-content { .console-ui-panel-content {
color: color_variables.$white; color: hsl(0, 0%, 100%);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: size_variables.$size-7; font-size: size_variables.$size-7;
@ -58,11 +57,11 @@ $console-close-height: 35px;
display: flex; display: flex;
input { input {
background-color: rgba(color_variables.$black, 0.5); background-color: rgba(hsl(0, 0%, 4%), 0.5);
border: 1px solid var(--token-color-palette-neutral-500); border: 1px solid var(--token-color-palette-neutral-500);
border-radius: var(--token-side-nav-body-list-item-border-radius); border-radius: var(--token-side-nav-body-list-item-border-radius);
caret-color: color_variables.$white; caret-color: hsl(0, 0%, 100%);
color: color_variables.$white; color: hsl(0, 0%, 100%);
flex: 1 1 auto; flex: 1 1 auto;
font-family: font_variables.$family-monospace; font-family: font_variables.$family-monospace;
font-size: size_variables.$size-6; font-size: size_variables.$size-6;
@ -102,13 +101,9 @@ $console-close-height: 35px;
} }
&.console-ui-alert--error { &.console-ui-alert--error {
// HDS tokens are not light enough on the dark background to pass a11y tests.
// hex value for --token-color-foreground-critical
color: color.adjust(#e52228, $lightness: 20%); color: color.adjust(#e52228, $lightness: 20%);
} }
&.console-ui-alert--success { &.console-ui-alert--success {
// HDS tokens are not light enough on the dark background to pass a11y tests.
// hex value for --token-color-foreground-success
color: color.adjust(#008a22, $lightness: 20%); color: color.adjust(#008a22, $lightness: 20%);
} }
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../core/box.scss'; @use '../core/box.scss';
@ -13,10 +12,10 @@
@extend .box; @extend .box;
box-shadow: box-shadow:
box-shadow_variables.$box-shadow-middle, box-shadow_variables.$box-shadow-middle,
0 0 1px color_variables.$grey-dark; 0 0 1px var(--token-color-palette-neutral-500);
} }
.control-group-success.is-editor { .control-group-success.is-editor {
background: color_variables.$grey-lightest; background: var(--token-color-palette-neutral-50);
} }
.control-group a { .control-group a {
@ -25,8 +24,8 @@
.control-group-header { .control-group-header {
box-shadow: 0 0 1px currentColor; box-shadow: 0 0 1px currentColor;
padding: size_variables.$spacing-10 size_variables.$spacing-14; padding: size_variables.$spacing-10 size_variables.$spacing-14;
background: color_variables.$grey-lightest; background: var(--token-color-palette-neutral-50);
color: color_variables.$grey-dark; color: var(--token-color-palette-neutral-500);
position: relative; position: relative;
strong { strong {
color: currentColor; color: currentColor;
@ -34,8 +33,8 @@
} }
.control-group-header.is-success { .control-group-header.is-success {
color: color_variables.$green-dark; color: var(--token-color-palette-green-300);
background: color_variables.$green-lightest; background: var(--token-color-palette-green-50);
} }
.control-group .authorizations { .control-group .authorizations {

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
/** /**
@ -7,7 +6,7 @@
*/ */
.doc-link { .doc-link {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
&:hover { &:hover {
text-decoration: underline !important; text-decoration: underline !important;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -14,7 +13,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: size_variables.$spacing-48 size_variables.$spacing-12; padding: size_variables.$spacing-48 size_variables.$spacing-12;
box-shadow: 0 -2px 0 -1px color_variables.$ui-gray-300; box-shadow: 0 -2px 0 -1px var(--token-color-palette-neutral-300);
} }
.empty-state-transparent { .empty-state-transparent {
@ -32,7 +31,7 @@
} }
.empty-state-title { .empty-state-title {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-4; font-size: size_variables.$size-4;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
line-height: 1.2; line-height: 1.2;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -11,11 +10,11 @@
border-radius: 3rem; border-radius: 3rem;
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
color_variables.$blue, var(--token-color-palette-blue-200),
hsl(271, 100%, 71%) hsl(271, 100%, 71%)
); // only use case for purple in the app. define here instead of utils/color_var ); // only use case for purple in the app. define here instead of utils/color_var
animation: env-banner-color-rotate 8s infinite linear alternate; animation: env-banner-color-rotate 8s infinite linear alternate;
color: color_variables.$white; color: hsl(0, 0%, 100%);
.hs-icon { .hs-icon {
margin: 0; margin: 0;

View File

@ -1,5 +1,3 @@
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
@ -7,7 +5,7 @@
.form-section { .form-section {
padding: 1.75rem 0; padding: 1.75rem 0;
box-shadow: 0 -1px 0 0 rgba(color_variables.$black, 0.1); box-shadow: 0 -1px 0 0 rgba(hsl(0, 0%, 4%), 0.1);
} }
.field:first-child .form-section, .field:first-child .form-section,
@ -21,6 +19,6 @@
background-color: black; background-color: black;
pre { pre {
color: color_variables.$ui-gray-010; color: var(--token-color-palette-neutral-50);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -20,7 +19,7 @@
} }
.icon-blue { .icon-blue {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
.hds-icon { .hds-icon {

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -9,7 +8,7 @@
*/ */
.info-table-row { .info-table-row {
box-shadow: 0 1px 0 color_variables.$grey-light; box-shadow: 0 1px 0 var(--token-color-palette-neutral-300);
margin: 0; margin: 0;
&.has-no-shadow { &.has-no-shadow {
@ -22,8 +21,8 @@
&.thead { &.thead {
box-shadow: box-shadow:
0 1px 0 color_variables.$grey-light, 0 1px 0 var(--token-color-palette-neutral-300),
0 -1px 0 color_variables.$grey-light; 0 -1px 0 var(--token-color-palette-neutral-300);
margin: 0; margin: 0;
padding: 0 size_variables.$spacing-14 0 0; padding: 0 size_variables.$spacing-14 0 0;
@ -59,11 +58,11 @@
} }
.icon-true { .icon-true {
color: color_variables.$green-500; color: var(--token-color-palette-green-200);
} }
.icon-false { .icon-false {
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
a { a {
@ -96,7 +95,7 @@
.info-table-row-header { .info-table-row-header {
margin: 0; margin: 0;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
@include mixins.until(size_variables.$mobile) { @include mixins.until(size_variables.$mobile) {

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../core/box.scss'; @use '../core/box.scss';
@ -27,7 +26,7 @@
margin-left: auto; margin-left: auto;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
} }
.center-display { .center-display {
@ -58,8 +57,8 @@ a.list-item-row,
padding-right: size_variables.$spacing-10; padding-right: size_variables.$spacing-10;
position: relative; position: relative;
box-shadow: box-shadow:
0 2px 0 -1px color_variables.$grey-light, 0 2px 0 -1px var(--token-color-palette-neutral-300),
0 -2px 0 -1px color_variables.$grey-light, 0 -2px 0 -1px var(--token-color-palette-neutral-300),
box-shadow_variables.$box-link-hover-shadow, box-shadow_variables.$box-link-hover-shadow,
box-shadow_variables.$box-shadow-middle; box-shadow_variables.$box-shadow-middle;
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -56,7 +55,7 @@ pre.masked-font {
.button.masked-input-toggle { .button.masked-input-toggle {
min-width: size_variables.$spacing-36; min-width: size_variables.$spacing-36;
border-left: 0; border-left: 0;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
box-shadow: 0 3px 1px 0px rgba(10, 10, 10, 0.12); box-shadow: 0 3px 1px 0px rgba(10, 10, 10, 0.12);
} }
@ -72,7 +71,7 @@ pre.masked-font {
min-width: size_variables.$spacing-24; min-width: size_variables.$spacing-24;
border: 0; border: 0;
box-shadow: none; box-shadow: none;
color: color_variables.$grey-light; color: var(--token-color-palette-neutral-300);
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
@ -81,7 +80,7 @@ pre.masked-font {
&:focus, &:focus,
&:hover, &:hover,
&:focus:not(:active) { &:focus:not(:active) {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
border: 0; border: 0;
box-shadow: none; box-shadow: none;
} }
@ -93,5 +92,5 @@ pre.masked-font {
} }
.masked-input .input:focus + .masked-input-toggle { .masked-input .input:focus + .masked-input-toggle {
background: rgba(color_variables.$white, 0.95); background: rgba(hsl(0, 0%, 100%), 0.95);
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -8,12 +7,12 @@
*/ */
.namespace-reminder { .namespace-reminder {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
margin: 0 0 size_variables.$spacing-14 0; margin: 0 0 size_variables.$spacing-14 0;
} }
.console-reminder p.namespace-reminder { .console-reminder p.namespace-reminder {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-family: font_variables.$family-monospace; font-family: font_variables.$family-monospace;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
margin: size_variables.$spacing-4 0 0; margin: size_variables.$spacing-4 0 0;

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -58,7 +57,7 @@
// so they match other dropdown elements until we replace popup-menu with Hds::Dropdown // so they match other dropdown elements until we replace popup-menu with Hds::Dropdown
.hds-confirm-action-critical { .hds-confirm-action-critical {
&:hover { &:hover {
background-color: color_variables.$ui-gray-050; background-color: var(--token-color-palette-neutral-50);
} }
div, div,
span { span {
@ -72,26 +71,26 @@
.ember-power-select-option, .ember-power-select-option,
.ember-power-select-option[aria-current='true'], .ember-power-select-option[aria-current='true'],
a { a {
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
color: color_variables.$grey-darkest; color: var(--token-color-palette-neutral-600);
&:hover { &:hover {
background-color: color_variables.$ui-gray-050; background-color: var(--token-color-palette-neutral-50);
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
} }
&.active, &.active,
&.is-active { &.is-active {
background-color: transparent; background-color: transparent;
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
&.is-destroy { &.is-destroy {
color: color_variables.$red; color: var(--token-color-palette-red-200);
&:hover { &:hover {
background-color: color_variables.$red; background-color: var(--token-color-palette-red-200);
color: color_variables.$white; color: hsl(0, 0%, 100%);
} }
} }
@ -110,7 +109,7 @@
} }
.menu-label { .menu-label {
color: color_variables.$grey-dark; color: var(--token-color-palette-neutral-500);
font-size: size_variables.$size-9; font-size: size_variables.$size-9;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
letter-spacing: 0; letter-spacing: 0;
@ -124,7 +123,7 @@
} }
hr { hr {
background-color: color_variables.$ui-gray-200; background-color: var(--token-color-palette-neutral-200);
margin: 0; margin: 0;
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -10,11 +9,11 @@
transform: rotate(-90deg) translateX(-20%); transform: rotate(-90deg) translateX(-20%);
} }
.radial-progress circle { .radial-progress circle {
stroke: rgba(color_variables.$grey-light, 0.5); stroke: rgba(var(--token-color-palette-neutral-300), 0.5);
transition: stroke-dashoffset size_variables.$speed ease-in; transition: stroke-dashoffset size_variables.$speed ease-in;
will-change: stroke-dashoffset; will-change: stroke-dashoffset;
stroke-linecap: round; stroke-linecap: round;
} }
.radial-progress circle.progress-fill { .radial-progress circle.progress-fill {
stroke: color_variables.$green; stroke: var(--token-color-palette-green-200);
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -29,7 +28,7 @@
} }
input[type='radio'] + span.dot { input[type='radio'] + span.dot {
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
display: block; display: block;
@ -40,14 +39,14 @@
} }
input[type='radio']:checked + span.dot { input[type='radio']:checked + span.dot {
background: color_variables.$blue; background: var(--token-color-palette-blue-200);
border: 1px solid color_variables.$blue; border: 1px solid var(--token-color-palette-blue-200);
box-shadow: inset 0 0 0 0.15rem color_variables.$white; box-shadow: inset 0 0 0 0.15rem hsl(0, 0%, 100%);
} }
input[type='radio']:focus + span.dot { input[type='radio']:focus + span.dot {
box-shadow: box-shadow:
0 0 10px 1px rgba(color_variables.$blue, 0.4), 0 0 10px 1px rgba(#1060ff, 0.4),
inset 0 0 0 0.15rem color_variables.$white; inset 0 0 0 0.15rem hsl(0, 0%, 100%);
} }
&.is-disabled { &.is-disabled {
@ -77,7 +76,7 @@
padding: size_variables.$spacing-16; padding: size_variables.$spacing-16;
} }
.radio-card-icon { .radio-card-icon {
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
.radio-card-message { .radio-card-message {
margin: size_variables.$spacing-4; margin: size_variables.$spacing-4;
@ -97,20 +96,20 @@
.radio-card-radio-row { .radio-card-radio-row {
display: flex; display: flex;
justify-content: center; justify-content: center;
background: color_variables.$ui-gray-050; background: var(--token-color-palette-neutral-50);
padding: size_variables.$spacing-8; padding: size_variables.$spacing-8;
} }
.is-selected { .is-selected {
&.radio-card { &.radio-card {
border-color: color_variables.$blue-500; border-color: var(--token-color-palette-blue-200);
background: color_variables.$ui-gray-010; background: var(--token-color-palette-neutral-50);
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
} }
.radio-card-icon { .radio-card-icon {
color: color_variables.$black; color: hsl(0, 0%, 4%);
} }
.radio-card-radio-row { .radio-card-radio-row {
background: color_variables.$blue-050; background: var(--token-color-palette-blue-50);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -14,7 +13,7 @@
padding-bottom: size_variables.$spacing-12; padding-bottom: size_variables.$spacing-12;
} }
.raft-join-unseal { .raft-join-unseal {
color: color_variables.$orange; color: var(--token-color-palette-amber-200);
font-size: size_variables.$size-6; font-size: size_variables.$size-6;
display: inline-block; display: inline-block;
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -20,10 +19,10 @@
.regex-group { .regex-group {
font-family: font_variables.$family-monospace; font-family: font_variables.$family-monospace;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
color: color_variables.$ui-gray-600; color: var(--token-color-palette-neutral-500);
} }
.regex-group-position { .regex-group-position {
background-color: color_variables.$ui-gray-200; background-color: var(--token-color-palette-neutral-200);
border-radius: 3px; border-radius: 3px;
padding-top: 5px; padding-top: 5px;
padding-bottom: 4px; padding-bottom: 4px;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -15,11 +14,11 @@
line-height: normal; line-height: normal;
&:hover { &:hover {
box-shadow: 0 0 0 1px rgba(color_variables.$grey-dark, 0.3); box-shadow: 0 0 0 1px rgba(var(--token-color-palette-neutral-500), 0.3);
} }
.toolbar-link { .toolbar-link {
color: color_variables.$blue-500; color: var(--token-color-palette-blue-200);
} }
} }
@ -130,7 +129,7 @@
} }
.summary-state { .summary-state {
padding-bottom: size_variables.$spacing-36; padding-bottom: size_variables.$spacing-36;
border-bottom: 1px solid rgba(color_variables.$grey-dark, 0.3); border-bottom: 1px solid rgba(var(--token-color-palette-neutral-500), 0.3);
} }
// prevent double lines at the bottom of the dashboard // prevent double lines at the bottom of the dashboard

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -48,7 +47,7 @@
z-index: -1; z-index: -1;
&::after { &::after {
background: color_variables.$white; background: hsl(0, 0%, 100%);
bottom: size_variables.$spacing-4; bottom: size_variables.$spacing-4;
content: ''; content: '';
left: size_variables.$spacing-4 + size_variables.$spacing-24; left: size_variables.$spacing-4 + size_variables.$spacing-24;
@ -67,7 +66,7 @@
} }
div > .ember-power-select-options { div > .ember-power-select-options {
background: color_variables.$white; background: hsl(0, 0%, 100%);
border: box-shadow_variables.$base-border; border: box-shadow_variables.$base-border;
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
margin: -4px size_variables.$spacing-8 0; margin: -4px size_variables.$spacing-8 0;
@ -81,12 +80,12 @@ div > .ember-power-select-options {
} }
.ember-power-select-option[aria-current='true'] { .ember-power-select-option[aria-current='true'] {
background-color: color_variables.$ui-gray-050; background-color: var(--token-color-palette-neutral-50);
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
} }
.ember-power-select-option--no-matches-message { .ember-power-select-option--no-matches-message {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
text-transform: uppercase; text-transform: uppercase;
@ -94,7 +93,7 @@ div > .ember-power-select-options {
&:hover, &:hover,
&:focus { &:focus {
background: transparent; background: transparent;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
} }
} }
} }
@ -111,12 +110,12 @@ div > .ember-power-select-options {
} }
.control .button { .control .button {
color: color_variables.$grey-light; color: var(--token-color-palette-neutral-300);
min-width: auto; min-width: auto;
&:hover, &:hover,
&:focus { &:focus {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -13,7 +12,7 @@
margin-right: size_variables.$spacing-12; margin-right: size_variables.$spacing-12;
} }
.progress { .progress {
box-shadow: 0 0 0 4px color_variables.$ui-gray-050; box-shadow: 0 0 0 4px var(--token-color-palette-neutral-50);
margin-top: size_variables.$spacing-8; margin-top: size_variables.$spacing-8;
min-width: 90px; min-width: 90px;
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -12,7 +11,7 @@
.popup-menu-content { .popup-menu-content {
.menu-label { .menu-label {
color: color_variables.$black; color: hsl(0, 0%, 4%);
font-size: 14px; font-size: 14px;
font-weight: font_variables.$font-weight-bold; font-weight: font_variables.$font-weight-bold;
text-transform: unset; text-transform: unset;
@ -25,6 +24,6 @@
.confirm-action-message p { .confirm-action-message p {
padding-top: size_variables.$spacing-4; padding-top: size_variables.$spacing-4;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
color: color_variables.$black; color: hsl(0, 0%, 4%);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -16,7 +15,7 @@
} }
svg { svg {
fill: color_variables.$white; fill: hsl(0, 0%, 100%);
height: 24px; height: 24px;
width: 72px; width: 72px;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -24,7 +23,7 @@
.stat-text { .stat-text {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
line-height: inherit; line-height: inherit;
} }
.stat-value { .stat-value {
@ -43,7 +42,7 @@
.stat-text { .stat-text {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
line-height: inherit; line-height: inherit;
} }
.stat-value { .stat-value {
@ -62,7 +61,7 @@
.stat-text { .stat-text {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
line-height: inherit; line-height: inherit;
} }
.stat-value { .stat-value {
@ -81,7 +80,7 @@
.stat-text { .stat-text {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
line-height: inherit; line-height: inherit;
} }
.stat-value { .stat-value {
@ -95,19 +94,19 @@
.stat-label { .stat-label {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
line-height: inherit; line-height: inherit;
} }
.stat-text { .stat-text {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
line-height: inherit; line-height: inherit;
} }
.stat-value { .stat-value {
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-normal; font-weight: font_variables.$font-weight-normal;
color: color_variables.$ui-gray-800; color: var(--token-color-palette-neutral-600);
line-height: inherit; line-height: inherit;
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -15,7 +14,7 @@
.tabs { .tabs {
align-items: stretch; align-items: stretch;
box-shadow: inset 0 -1px 0 color_variables.$grey-light; box-shadow: inset 0 -1px 0 var(--token-color-palette-neutral-300);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
overflow: hidden; overflow: hidden;
@ -34,22 +33,22 @@
box-shadow: none; box-shadow: none;
} }
&.active { &.active {
border-color: color_variables.$blue; border-color: var(--token-color-palette-blue-200);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }
li { li {
// solves for tools -> sub-tabs like "Unwrap data" -> "Data" // solves for tools -> sub-tabs like "Unwrap data" -> "Data"
&.is-active { &.is-active {
border-bottom: 2px solid color_variables.$blue; border-bottom: 2px solid var(--token-color-palette-blue-200);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
// solves for tabs on auth mounts & secrets engines // solves for tabs on auth mounts & secrets engines
> a { > a {
&.active { &.active {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
background-color: transparent; background-color: transparent;
border-bottom: 2px solid color_variables.$blue; border-bottom: 2px solid var(--token-color-palette-blue-200);
} }
} }
} }
@ -61,8 +60,8 @@
} }
&.active a, &.active a,
&.is-active a { &.is-active a {
border-color: color_variables.$blue; border-color: var(--token-color-palette-blue-200);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }
// important for auth tabs in active state, otherwise the border-bottom will not show. // important for auth tabs in active state, otherwise the border-bottom will not show.
@ -72,7 +71,7 @@
justify-content: center; justify-content: center;
vertical-align: top; vertical-align: top;
border-bottom: 2px solid transparent; border-bottom: 2px solid transparent;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
padding: size_variables.$spacing-14 size_variables.$spacing-12 size_variables.$spacing-12; padding: size_variables.$spacing-14 size_variables.$spacing-12 size_variables.$spacing-12;
text-decoration: none; text-decoration: none;
@ -82,12 +81,12 @@
&:hover, &:hover,
&:active { &:active {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
} }
&:hover { &:hover {
background-color: color_variables.$ui-gray-050; background-color: var(--token-color-palette-neutral-50);
color: color_variables.$grey-darkest; color: var(--token-color-palette-neutral-600);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -16,9 +15,9 @@
.box { .box {
position: relative; position: relative;
color: color_variables.$white; color: hsl(0, 0%, 100%);
max-width: 200px; max-width: 200px;
background: color_variables.$black; background: hsl(0, 0%, 4%);
padding: 0.5rem; padding: 0.5rem;
line-height: 1.4; line-height: 1.4;
border-radius: size_variables.$radius-large; border-radius: size_variables.$radius-large;
@ -28,7 +27,7 @@
max-width: fit-content; max-width: fit-content;
} }
@include mixins.css-top-arrow(8px, color_variables.$black, 1px, color_variables.$black, 20px); @include mixins.css-top-arrow(8px, hsl(0, 0%, 4%), 1px, hsl(0, 0%, 4%), 20px);
&.ember-basic-dropdown-content--below.ember-basic-dropdown--transitioning-in { &.ember-basic-dropdown-content--below.ember-basic-dropdown--transitioning-in {
animation: drop-fade-above 0.15s; animation: drop-fade-above 0.15s;
} }
@ -60,25 +59,19 @@
} }
.ember-basic-dropdown-content--below.ember-basic-dropdown-content--left.tool-tip { .ember-basic-dropdown-content--below.ember-basic-dropdown-content--left.tool-tip {
@include mixins.css-top-arrow(8px, color_variables.$black, 1px, color_variables.$black, calc(100% - 20px)); @include mixins.css-top-arrow(8px, hsl(0, 0%, 4%), 1px, hsl(0, 0%, 4%), calc(100% - 20px));
} }
.ember-basic-dropdown-content--below.ember-basic-dropdown-content--right.tool-tip { .ember-basic-dropdown-content--below.ember-basic-dropdown-content--right.tool-tip {
@include mixins.css-top-arrow(8px, color_variables.$black, 1px, color_variables.$black, calc(100% - 20px)); @include mixins.css-top-arrow(8px, hsl(0, 0%, 4%), 1px, hsl(0, 0%, 4%), calc(100% - 20px));
} }
.ember-basic-dropdown-content--above.tool-tip { .ember-basic-dropdown-content--above.tool-tip {
@include mixins.css-bottom-arrow(8px, color_variables.$black, 1px, color_variables.$black); @include mixins.css-bottom-arrow(8px, hsl(0, 0%, 4%), 1px, hsl(0, 0%, 4%));
& { & {
margin-top: -8px; margin-top: -8px;
} }
} }
.ember-basic-dropdown-content--above.ember-basic-dropdown-content--right.tool-tip { .ember-basic-dropdown-content--above.ember-basic-dropdown-content--right.tool-tip {
@include mixins.css-bottom-arrow( @include mixins.css-bottom-arrow(8px, hsl(0, 0%, 4%), 1px, hsl(0, 0%, 4%), calc(100% - 20px));
8px,
color_variables.$black,
1px,
color_variables.$black,
calc(100% - 20px)
);
} }
.b-checkbox .tool-tip-trigger { .b-checkbox .tool-tip-trigger {

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../core/buttons.scss'; @use '../core/buttons.scss';
@ -14,17 +13,17 @@
} }
.toolbar { .toolbar {
background-color: color_variables.$ui-gray-010; background-color: var(--token-color-palette-neutral-50);
border: 1px solid color_variables.$ui-gray-100; border: 1px solid var(--token-color-palette-neutral-100);
border-bottom-color: color_variables.$ui-gray-300; border-bottom-color: var(--token-color-palette-neutral-300);
border-top-color: color_variables.$ui-gray-300; border-top-color: var(--token-color-palette-neutral-300);
position: relative; position: relative;
&::after { &::after {
background: linear-gradient( background: linear-gradient(
to right, to right,
color_variables.$ui-gray-010, var(--token-color-palette-neutral-50),
rgba(color_variables.$ui-gray-010, 0) rgba(var(--token-color-palette-neutral-50), 0)
); );
bottom: 0; bottom: 0;
content: ''; content: '';
@ -43,7 +42,7 @@
.toolbar-label { .toolbar-label {
padding: size_variables.$spacing-8; padding: size_variables.$spacing-8;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
} }
.toolbar-scroller { .toolbar-scroller {
@ -63,7 +62,7 @@
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: color_variables.$ui-gray-300; background: var(--token-color-palette-neutral-300);
border-radius: size_variables.$spacing-4; border-radius: size_variables.$spacing-4;
} }
} }
@ -99,13 +98,13 @@
@extend .is-ghost; @extend .is-ghost;
@extend .has-icon-right; @extend .has-icon-right;
border: 0; border: 0;
color: color_variables.$black; color: hsl(0, 0%, 4%);
transition: background-color size_variables.$speed; transition: background-color size_variables.$speed;
&:hover:not(.disabled) { &:hover:not(.disabled) {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
border: 0; border: 0;
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
&:active { &:active {
@ -130,12 +129,12 @@
} }
} }
a.disabled.toolbar-link { a.disabled.toolbar-link {
color: color_variables.$black; color: hsl(0, 0%, 4%);
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
cursor: not-allowed; cursor: not-allowed;
&:hover { &:hover {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -8,10 +7,10 @@
*/ */
.copy-text { .copy-text {
background: color_variables.$ui-gray-010; background: var(--token-color-palette-neutral-50);
& > code { & > code {
color: color_variables.$ui-gray-800; color: var(--token-color-palette-neutral-600);
padding: 14px; padding: 14px;
} }
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -19,7 +18,7 @@
.transit-card { .transit-card {
border-radius: size_variables.$radius; border-radius: size_variables.$radius;
box-shadow: 0 0 0 1px rgba(color_variables.$grey-light, 0.4); box-shadow: 0 0 0 1px rgba(var(--token-color-palette-neutral-300), 0.4);
display: grid; display: grid;
grid-template-columns: 0.45fr 2fr; grid-template-columns: 0.45fr 2fr;
padding: size_variables.$spacing-16; padding: size_variables.$spacing-16;
@ -32,20 +31,20 @@
.transit-action-description { .transit-action-description {
font-family: font_variables.$family-sans; font-family: font_variables.$family-sans;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
} }
.title { .title {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-7; font-size: size_variables.$size-7;
margin-bottom: size_variables.$spacing-4; margin-bottom: size_variables.$spacing-4;
} }
&:hover { &:hover {
box-shadow: box-shadow:
0 0 0 1px color_variables.$blue-500, 0 0 0 1px var(--token-color-palette-blue-200),
box-shadow_variables.$box-shadow-middle; box-shadow_variables.$box-shadow-middle;
background: color_variables.$blue-010; background: var(--token-color-palette-blue-50);
.title { .title {
color: initial; color: initial;

View File

@ -1,5 +1,3 @@
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
@ -16,7 +14,7 @@
input.has-error, input.has-error,
input.has-error:focus, input.has-error:focus,
input.has-error:hover { input.has-error:hover {
border-color: color_variables.$red-dark; border-color: var(--token-color-palette-red-300);
} }
.ttl-value-error { .ttl-value-error {

View File

@ -4,7 +4,6 @@
*/ */
// Variables // Variables
@use 'utils/color_variables'; // colors need to come first.
@use 'utils/box-shadow_variables'; @use 'utils/box-shadow_variables';
@use 'utils/font_variables'; @use 'utils/font_variables';
@use 'utils/size_variables'; @use 'utils/size_variables';

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -8,10 +7,10 @@
*/ */
.box { .box {
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
border-radius: 0; border-radius: 0;
box-shadow: 0 0 0 1px rgba(color_variables.$grey-dark, 0.3); box-shadow: 0 0 0 1px rgba(var(--token-color-palette-neutral-500), 0.3);
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
display: block; display: block;
padding: size_variables.$spacing-18; padding: size_variables.$spacing-18;
@ -33,11 +32,11 @@
} }
&.no-top-shadow { &.no-top-shadow {
box-shadow: inset 0 -1px 0 0 rgba(color_variables.$black, 0.1); box-shadow: inset 0 -1px 0 0 rgba(hsl(0, 0%, 4%), 0.1);
} }
&.has-container { &.has-container {
box-shadow: 0 4px 4px rgba(color_variables.$black, 0.25); box-shadow: 0 4px 4px rgba(hsl(0, 0%, 4%), 0.25);
border: box-shadow_variables.$base-border; border: box-shadow_variables.$base-border;
padding: size_variables.$spacing-24; padding: size_variables.$spacing-24;
} }

View File

@ -1,6 +1,5 @@
@use 'sass:color'; @use 'sass:color';
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -11,12 +10,12 @@
.button { .button {
align-items: center; align-items: center;
background-color: color_variables.$grey-lightest; background-color: var(--token-color-palette-neutral-50);
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
border-radius: size_variables.$radius; border-radius: size_variables.$radius;
box-shadow: box-shadow_variables.$box-shadow-low; box-shadow: box-shadow_variables.$box-shadow-low;
cursor: pointer; cursor: pointer;
color: color_variables.$ui-gray-800; color: var(--token-color-palette-neutral-600);
display: inline-block; display: inline-block;
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
@ -47,9 +46,9 @@
&:active, &:active,
&.is-active, &.is-active,
&:focus { &:focus {
border-color: color.adjust(color_variables.$grey-light, $lightness: -10%); border-color: color.adjust(#c2c5cb, $lightness: -10%);
box-shadow: box-shadow_variables.$button-box-shadow-standard; box-shadow: box-shadow_variables.$button-box-shadow-standard;
color: color.adjust(color_variables.$grey-dark, $lightness: -10%); color: color.adjust(#656a76, $lightness: -10%);
} }
&:focus:not(:active) { &:focus:not(:active) {
@ -57,8 +56,8 @@
} }
&:disabled { &:disabled {
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
border-color: color_variables.$ui-gray-050; border-color: var(--token-color-palette-neutral-50);
box-shadow: none; box-shadow: none;
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5; opacity: 0.5;
@ -72,33 +71,33 @@
} }
&.is-danger { &.is-danger {
background-color: color_variables.$red-500; background-color: var(--token-color-palette-red-200);
border-color: color.adjust(color_variables.$red-500, $lightness: -2%); border-color: color.adjust(#e52228, $lightness: -2%);
color: color_variables.$white; color: hsl(0, 0%, 100%);
text-shadow: 0 1px 1px rgba(color_variables.$black, 0.25); text-shadow: 0 1px 1px rgba(hsl(0, 0%, 4%), 0.25);
&:hover:not([disabled]) { &:hover:not([disabled]) {
background-color: color.adjust(color_variables.$red-500, $lightness: -5%); background-color: color.adjust(#e52228, $lightness: -5%);
border-color: color.adjust(color_variables.$red-500, $lightness: -5%); border-color: color.adjust(#e52228, $lightness: -5%);
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
} }
&:active, &:active,
&.is-active { &.is-active {
background-color: color.adjust(color_variables.$red-500, $lightness: -10%); background-color: color.adjust(#e52228, $lightness: -10%);
border-color: color.adjust(color_variables.$red-500, $lightness: -10%); border-color: color.adjust(#e52228, $lightness: -10%);
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
} }
&:focus { &:focus {
border-color: color.adjust(color_variables.$red-500, $lightness: -10%); border-color: color.adjust(#e52228, $lightness: -10%);
box-shadow: box-shadow_variables.$button-box-shadow-standard; box-shadow: box-shadow_variables.$button-box-shadow-standard;
} }
} }
&.is-danger-outlined { &.is-danger-outlined {
border: 1px solid color_variables.$red-500; border: 1px solid var(--token-color-palette-red-200);
color: color_variables.$red-500; color: var(--token-color-palette-red-200);
} }
&.is-flat { &.is-flat {
@ -111,12 +110,12 @@
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
box-shadow: none; box-shadow: none;
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
text-decoration: none; text-decoration: none;
&:hover { &:hover {
color: color_variables.$blue-500; color: var(--token-color-palette-blue-500);
background-color: color_variables.$grey-lightest; background-color: var(--token-color-palette-neutral-50);
} }
} }
@ -129,7 +128,7 @@
pointer-events: none; pointer-events: none;
&::after { &::after {
animation: spinAround 500ms infinite linear; animation: spinAround 500ms infinite linear;
border: 2px solid color_variables.$ui-gray-300; border: 2px solid var(--token-color-palette-neutral-300);
border-radius: 290486px; border-radius: 290486px;
border-right-color: transparent; border-right-color: transparent;
border-top-color: transparent; border-top-color: transparent;
@ -146,7 +145,7 @@
&.is-link { &.is-link {
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
text-decoration: none; text-decoration: none;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
box-shadow: none; box-shadow: none;
@ -154,75 +153,75 @@
} }
&.is-primary { &.is-primary {
background-color: color_variables.$blue; background-color: var(--token-color-palette-blue-200);
border-color: color.adjust(color_variables.$blue, $lightness: -2%); border-color: color.adjust(#1060ff, $lightness: -2%);
color: color_variables.$white; color: hsl(0, 0%, 100%);
font-weight: font_variables.$font-weight-bold; font-weight: font_variables.$font-weight-bold;
text-shadow: 0 1px 1px rgba(color_variables.$black, 0.25); text-shadow: 0 1px 1px rgba(hsl(0, 0%, 4%), 0.25);
&:disabled { &:disabled {
background-color: color_variables.$ui-gray-700; background-color: var(--token-color-palette-neutral-500);
border-color: transparent; border-color: transparent;
box-shadow: none; box-shadow: none;
} }
&:hover:not([disabled]) { &:hover:not([disabled]) {
background-color: color.adjust(color_variables.$blue, $lightness: -5%); background-color: color.adjust(#1060ff, $lightness: -5%);
border-color: color.adjust(color_variables.$blue, $lightness: -5%); border-color: color.adjust(#1060ff, $lightness: -5%);
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
} }
&:active, &:active,
&.is-active { &.is-active {
background-color: color.adjust(color_variables.$blue, $lightness: -10%); background-color: color.adjust(#1060ff, $lightness: -10%);
border-color: color.adjust(color_variables.$blue, $lightness: -10%); border-color: color.adjust(#1060ff, $lightness: -10%);
box-shadow: box-shadow_variables.$box-shadow-middle; box-shadow: box-shadow_variables.$box-shadow-middle;
} }
&:focus { &:focus {
border-color: color.adjust(color_variables.$blue, $lightness: -10%); border-color: color.adjust(#1060ff, $lightness: -10%);
box-shadow: box-shadow_variables.$button-box-shadow-standard; box-shadow: box-shadow_variables.$button-box-shadow-standard;
} }
&.is-loading::after { &.is-loading::after {
border-color: transparent transparent color_variables.$white color_variables.$white; border-color: transparent transparent hsl(0, 0%, 100%) hsl(0, 0%, 100%);
} }
&.is-underlined { &.is-underlined {
&:active, &:active,
&.is-active { &.is-active {
background-color: transparent; background-color: transparent;
border-bottom: 2px solid color.adjust(color_variables.$blue, $lightness: -10%); border-bottom: 2px solid color.adjust(#1060ff, $lightness: -10%);
border-radius: unset; border-radius: unset;
color: color.adjust(color_variables.$blue, $lightness: -10%); color: color.adjust(#1060ff, $lightness: -10%);
} }
} }
// is-primary.is-outlined the only is-outlined buttons are primary. // is-primary.is-outlined the only is-outlined buttons are primary.
&.is-outlined { &.is-outlined {
background-color: transparent; background-color: transparent;
border-color: color_variables.$blue; border-color: var(--token-color-palette-blue-200);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
&:hover, &:hover,
&:focus { &:focus {
background-color: transparent; background-color: transparent;
border-color: color.adjust(color_variables.$blue, $lightness: -10%); border-color: color.adjust(#1060ff, $lightness: -10%);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
&:active, &:active,
&.is-active { &.is-active {
background-color: transparent; background-color: transparent;
border-color: color.adjust(color_variables.$blue, $lightness: -10%); border-color: color.adjust(#1060ff, $lightness: -10%);
color: color.adjust(color_variables.$blue, $lightness: -10%); color: color.adjust(#1060ff, $lightness: -10%);
} }
} }
&.is-outlined [disabled] { &.is-outlined [disabled] {
background-color: transparent; background-color: transparent;
border-color: color_variables.$ui-gray-700; border-color: var(--token-color-palette-neutral-500);
box-shadow: none; box-shadow: none;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
} }
} }
@ -237,7 +236,7 @@
// End of button types // End of button types
&.tool-tip-trigger { &.tool-tip-trigger {
color: color_variables.$grey-dark; color: var(--token-color-palette-neutral-500);
min-width: auto; min-width: auto;
padding: 0; padding: 0;
} }
@ -291,8 +290,8 @@
} }
a.button.disabled { a.button.disabled {
color: color_variables.$white; color: hsl(0, 0%, 100%);
background-color: color_variables.$grey-dark; background-color: var(--token-color-palette-neutral-500);
opacity: 0.5; opacity: 0.5;
border-color: transparent; border-color: transparent;
box-shadow: none; box-shadow: none;
@ -315,7 +314,7 @@ a.button.disabled {
cursor: pointer; cursor: pointer;
&:disabled { &:disabled {
color: color_variables.$grey-light; color: var(--token-color-palette-neutral-300);
cursor: not-allowed; cursor: not-allowed;
} }
} }
@ -327,15 +326,15 @@ a.button.disabled {
box-shadow: box-shadow_variables.$box-shadow-low; // TODO delete box-shadow: box-shadow_variables.$box-shadow-low; // TODO delete
&.white-icon svg { &.white-icon svg {
color: color_variables.$white; color: hsl(0, 0%, 100%);
} }
&.icon-grey-300 svg { &.icon-grey-300 svg {
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
&.icon-grey-500 svg { &.icon-grey-500 svg {
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
} }
&.transparent { &.transparent {
@ -343,25 +342,25 @@ a.button.disabled {
box-shadow: none; box-shadow: none;
border: 1px solid transparent; border: 1px solid transparent;
&:hover { &:hover {
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
border-color: var(--token-color-border-strong); border-color: var(--token-color-border-strong);
} }
} }
&.primary { &.primary {
background-color: color_variables.$blue; background-color: var(--token-color-palette-blue-200);
border-color: color.adjust(color_variables.$blue, $lightness: -2%); border-color: color.adjust(#1060ff, $lightness: -2%);
color: color_variables.$white; color: hsl(0, 0%, 100%);
font-weight: font_variables.$font-weight-bold; font-weight: font_variables.$font-weight-bold;
text-shadow: 0 1px 1px rgba(color_variables.$black, 0.25); text-shadow: 0 1px 1px rgba(hsl(0, 0%, 4%), 0.25);
svg { svg {
color: color_variables.$white; color: hsl(0, 0%, 100%);
} }
} }
&.secondary { &.secondary {
background-color: color_variables.$grey-lightest; background-color: var(--token-color-palette-neutral-50);
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
} }
&.in-dropdown { &.in-dropdown {
@ -380,13 +379,13 @@ a.button.disabled {
display: inline-flex; // temporarily fixes existing button alignment until we adopt Hds::ButtonSet display: inline-flex; // temporarily fixes existing button alignment until we adopt Hds::ButtonSet
// for toolbar-button must pass arg @color="secondary" // for toolbar-button must pass arg @color="secondary"
&.toolbar-button { &.toolbar-button {
color: color_variables.$black; color: hsl(0, 0%, 4%);
background: none; background: none;
border: none; border: none;
box-shadow: none; box-shadow: none;
&:hover:not(.disabled) { &:hover:not(.disabled) {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -19,12 +18,12 @@
fill: var(--token-color-palette-blue-500); fill: var(--token-color-palette-blue-500);
} }
.lineal-axis { .lineal-axis {
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
text { text {
font-size: 0.75rem; font-size: 0.75rem;
} }
line { line {
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
} }
.lineal-tooltip-position { .lineal-tooltip-position {
@ -56,6 +55,6 @@
fill: var(--token-color-palette-blue-200); fill: var(--token-color-palette-blue-200);
} }
.custom-bar-new_clients { .custom-bar-new_clients {
fill: var(--token-color-palette-blue-500); fill: var(--token-color-palette-blue-200);
color: var(--token-color-palette-blue-500); color: var(--token-color-palette-blue-200);
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -32,7 +31,7 @@
background-color: var(--token-color-palette-blue-200); background-color: var(--token-color-palette-blue-200);
} }
&.dot-new_clients { &.dot-new_clients {
background-color: var(--token-color-palette-blue-500); background-color: var(--token-color-palette-blue-200);
} }
} }
@ -42,7 +41,7 @@
} }
.chart-tooltip { .chart-tooltip {
background-color: color_variables.$black; background-color: hsl(0, 0%, 4%);
color: white; color: white;
font-size: size_variables.$size-9; font-size: size_variables.$size-9;
padding: 6px; padding: 6px;
@ -64,7 +63,7 @@
height: 0; height: 0;
border-left: 5px solid transparent; border-left: 5px solid transparent;
border-right: 5px solid transparent; border-right: 5px solid transparent;
border-top: 9px solid color_variables.$black; border-top: 9px solid hsl(0, 0%, 4%);
position: absolute; position: absolute;
opacity: 0.8; opacity: 0.8;
bottom: -9px; bottom: -9px;
@ -73,14 +72,14 @@
.has-grid { .has-grid {
g > text { g > text {
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-9; font-size: size_variables.$size-9;
} }
g > line { g > line {
// TODO: mix-blend doesn't work in firefox browser? // TODO: mix-blend doesn't work in firefox browser?
mix-blend-mode: darken; mix-blend-mode: darken;
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
} }
@ -90,29 +89,3 @@
font-size: size_variables.$size-9; font-size: size_variables.$size-9;
} }
} }
// RESPONSIVE STYLING //
@media only screen and (max-width: 950px) {
.chart-container-left {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 2;
grid-row-end: 3;
margin-left: size_variables.$spacing-48;
margin-right: size_variables.$spacing-48;
}
.chart-container-right {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 3;
grid-row-end: 4;
margin-left: size_variables.$spacing-48;
margin-right: size_variables.$spacing-48;
}
.timestamp {
grid-column-start: 1;
grid-row-start: 4;
}
}

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -32,7 +31,7 @@
.radio[disabled], .radio[disabled],
.checkbox input[disabled], .checkbox input[disabled],
.radio input[disabled] { .radio input[disabled] {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
cursor: not-allowed; cursor: not-allowed;
} }
@ -43,7 +42,7 @@
// one-off checkbox class // one-off checkbox class
.checkbox-help-text { .checkbox-help-text {
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
font-size: size_variables.$size-7; font-size: size_variables.$size-7;
padding-left: 28px; padding-left: 28px;
} }
@ -55,9 +54,9 @@
} }
.b-checkbox label::before { .b-checkbox label::before {
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
border-radius: 3px; border-radius: 3px;
border: 1px solid color_variables.$ui-gray-300; border: 1px solid var(--token-color-palette-neutral-300);
content: ''; content: '';
height: 17px; height: 17px;
left: 0; left: 0;
@ -68,7 +67,7 @@
} }
.b-checkbox input[type='checkbox']:checked + label::before { .b-checkbox input[type='checkbox']:checked + label::before {
border-color: color_variables.$blue; border-color: var(--token-color-palette-blue-200);
} }
.b-checkbox input[type='checkbox']:checked + label::after, .b-checkbox input[type='checkbox']:checked + label::after,
@ -86,7 +85,7 @@
} }
.b-checkbox label::after { .b-checkbox label::after {
color: color_variables.$ui-gray-800; color: var(--token-color-palette-neutral-600);
font-size: 12px; font-size: 12px;
height: 16px; height: 16px;
left: 3px; left: 3px;
@ -111,7 +110,7 @@
.b-checkbox input[type='checkbox']:disabled + label::before, .b-checkbox input[type='checkbox']:disabled + label::before,
.b-checkbox input[type='radio']:disabled + label::before { .b-checkbox input[type='radio']:disabled + label::before {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
cursor: not-allowed; cursor: not-allowed;
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -41,7 +40,7 @@ body,
pre:not(.hds-code-block__code), pre:not(.hds-code-block__code),
strong, strong,
table th { table th {
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
} }
h1, h1,
@ -84,7 +83,7 @@ object {
} }
html { html {
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
font-size: size_variables.$base-font-size; // 16px font-size: size_variables.$base-font-size; // 16px
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -132,7 +131,7 @@ body {
} }
a { a {
color: color_variables.$blue-500; color: var(--token-color-palette-blue-200);
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
@ -144,19 +143,19 @@ a {
} }
a:hover { a:hover {
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
} }
code { code {
background-color: transparent; background-color: transparent;
color: color_variables.$ui-gray-700; color: var(--token-color-palette-neutral-500);
font-size: 1em; font-size: 1em;
font-weight: 400; font-weight: 400;
padding: 0; padding: 0;
} }
hr { hr {
background-color: color_variables.$ui-gray-300; background-color: var(--token-color-palette-neutral-300);
border: none; border: none;
display: block; display: block;
height: 1px; height: 1px;
@ -194,7 +193,7 @@ label {
// <Hds::Dropdown> // <Hds::Dropdown>
.hds-dropdown-list-item { .hds-dropdown-list-item {
> button:disabled { > button:disabled {
color: color_variables.$black; color: hsl(0, 0%, 4%);
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; cursor: not-allowed;
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -11,7 +10,7 @@
.field { .field {
// cannot use :read-only selector because tag used for other purposes // cannot use :read-only selector because tag used for other purposes
&.is-readOnly { &.is-readOnly {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
cursor: not-allowed; cursor: not-allowed;
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../core/buttons.scss'; @use '../core/buttons.scss';
@use '../core/inputs.scss'; @use '../core/inputs.scss';
@ -49,7 +48,7 @@
.file-delete-button { .file-delete-button {
@extend .button; @extend .button;
@extend .is-transparent; @extend .is-transparent;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
position: absolute; position: absolute;
right: size_variables.$spacing-8; right: size_variables.$spacing-8;
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -15,8 +14,8 @@
align-items: center; align-items: center;
border-radius: size_variables.$radius; border-radius: size_variables.$radius;
border: box-shadow_variables.$base-border; border: box-shadow_variables.$base-border;
box-shadow: 0 4px 1px rgba(color_variables.$black, 0.06) inset; box-shadow: 0 4px 1px rgba(hsl(0, 0%, 4%), 0.06) inset;
color: color_variables.$grey-dark; color: var(--token-color-palette-neutral-500);
display: inline-flex; display: inline-flex;
font-size: size_variables.$size-6; font-size: size_variables.$size-6;
height: size_variables.$size-2; height: size_variables.$size-2;
@ -33,13 +32,13 @@
&.is-active, &.is-active,
&:focus-visible { &:focus-visible {
outline: none; outline: none;
background-color: color_variables.$white; background-color: hsl(0, 0%, 100%);
border-color: color_variables.$blue-500 !important; border-color: var(--token-color-palette-blue-200) !important;
box-shadow: 0 0 0 0.125em rgba(21, 99, 255, 0.25); box-shadow: 0 0 0 0.125em rgba(21, 99, 255, 0.25);
} }
&:hover { &:hover {
border-color: color_variables.$ui-gray-300; border-color: var(--token-color-palette-neutral-300);
} }
@include mixins.until(size_variables.$desktop) { @include mixins.until(size_variables.$desktop) {
@ -53,13 +52,13 @@
.input[disabled], .input[disabled],
.textarea[disabled] { .textarea[disabled] {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
cursor: not-allowed; cursor: not-allowed;
&:hover { &:hover {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
} }
} }

View File

@ -1,5 +1,3 @@
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
@ -21,7 +19,7 @@
} }
.jsondiffpatch-property-name { .jsondiffpatch-property-name {
color: color_variables.$ui-gray-300; color: var(--token-color-palette-neutral-300);
} }
.jsondiffpatch-added > .jsondiffpatch-property-name { .jsondiffpatch-added > .jsondiffpatch-property-name {

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -10,7 +9,7 @@
// This file defines the style for .is-label // This file defines the style for .is-label
.is-label { .is-label {
color: color_variables.$grey-darkest; color: var(--token-color-palette-neutral-600);
font-size: 14px; font-size: 14px;
font-weight: font_variables.$font-weight-bold; font-weight: font_variables.$font-weight-bold;
display: flex; display: flex;
@ -29,6 +28,6 @@
} }
&::before { &::before {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
/** /**
@ -9,7 +8,7 @@
.link { .link {
background: transparent; background: transparent;
border: 0; border: 0;
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
cursor: pointer; cursor: pointer;
display: inline; display: inline;
font: inherit; font: inherit;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -14,7 +13,7 @@
align-items: center; align-items: center;
&:before { &:before {
font-size: size_variables.$size-5; font-size: size_variables.$size-5;
color: color_variables.$blue-500; color: var(--token-color-palette-blue-200);
content: '|'; content: '|';
position: relative; position: relative;
} }
@ -22,7 +21,7 @@
.list-header { .list-header {
margin: size_variables.$spacing-10 size_variables.$spacing-10 0; margin: size_variables.$spacing-10 size_variables.$spacing-10 0;
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
font-weight: font_variables.$font-weight-semibold; font-weight: font_variables.$font-weight-semibold;
text-transform: uppercase; text-transform: uppercase;

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -33,6 +32,6 @@
&:hover, &:hover,
&.is-active { &.is-active {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -13,8 +12,8 @@
} }
.message { .message {
background: color_variables.$blue-010; background: var(--token-color-palette-blue-50);
border: 1px solid color_variables.$blue-100; border: 1px solid var(--token-color-palette-blue-100);
margin-bottom: size_variables.$spacing-12; margin-bottom: size_variables.$spacing-12;
padding: size_variables.$spacing-12 size_variables.$spacing-16 size_variables.$spacing-16 padding: size_variables.$spacing-12 size_variables.$spacing-16 size_variables.$spacing-16
size_variables.$spacing-12; size_variables.$spacing-12;
@ -25,12 +24,12 @@
} }
.message-icon { .message-icon {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
margin-right: size_variables.$spacing-8; margin-right: size_variables.$spacing-8;
} }
.message-title { .message-title {
color: color_variables.$blue-500; color: var(--token-color-palette-blue-200);
font-size: 16px; font-size: 16px;
font-weight: font_variables.$font-weight-bold; font-weight: font_variables.$font-weight-bold;
line-height: 1.25; line-height: 1.25;
@ -44,70 +43,70 @@
// message types, see message-types.js // message types, see message-types.js
&.is-danger { &.is-danger {
background: color_variables.$red-010; background: var(--token-color-surface-critical);
border: 1px solid color_variables.$red-050; border: 1px solid var(--token-color-palette-red-50);
.message-body { .message-body {
color: color_variables.$red-700; color: var(--token-color-palette-red-300);
} }
.message-icon { .message-icon {
color: color_variables.$red-500; color: var(--token-color-palette-red-200);
} }
.message-title { .message-title {
color: color_variables.$red-700; color: var(--token-color-palette-red-300);
} }
} }
&.is-highlight { &.is-highlight {
background: color_variables.$yellow-010; background: var(--token-color-surface-warning);
border: 1px solid color_variables.$yellow-100; border: 1px solid var(--token-color-palette-amber-100);
.message-body { .message-body {
color: color_variables.$ui-gray-900; color: var(--token-color-palette-neutral-600);
} }
.message-icon { .message-icon {
color: color_variables.$yellow-500; color: var(--token-color-palette-amber-200);
} }
.message-title { .message-title {
color: color_variables.$orange-700; color: var(--token-color-palette-amber-300);
} }
} }
&.is-info { &.is-info {
background-color: color_variables.$blue-010; background-color: var(--token-color-palette-blue-50);
.message-body { .message-body {
color: color_variables.$blue-700; color: var(--token-color-palette-blue-300);
} }
.message-header { .message-header {
background-color: color_variables.$blue-500; background-color: var(--token-color-palette-blue-200);
color: color_variables.$white; color: hsl(0, 0%, 100%);
} }
.message-title { .message-title {
color: color_variables.$blue-700; color: var(--token-color-palette-blue-300);
} }
} }
&.is-success { &.is-success {
background: color_variables.$green-010; background: var(--token-color-surface-success);
border: 1px solid color_variables.$green-100; border: 1px solid var(--token-color-palette-green-100);
.message-body { .message-body {
color: color_variables.$green-900; color: var(--token-color-palette-green-500);
} }
.message-icon { .message-icon {
color: color_variables.$green-500; color: var(--token-color-palette-green-200);
} }
.message-title { .message-title {
color: color_variables.$green-700; color: var(--token-color-palette-green-300);
} }
} }
} }

View File

@ -1,5 +1,4 @@
@use '../utils/box-shadow_variables'; @use '../utils/box-shadow_variables';
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -9,7 +8,7 @@
.progress { .progress {
appearance: none; appearance: none;
background: color_variables.$ui-gray-050; background: var(--token-color-palette-neutral-50);
border: none; border: none;
box-shadow: inset box-shadow_variables.$box-link-shadow; box-shadow: inset box-shadow_variables.$box-link-shadow;
border-radius: size_variables.$radius; border-radius: size_variables.$radius;
@ -74,17 +73,17 @@
} }
.progress.is-success::-webkit-progress-value { .progress.is-success::-webkit-progress-value {
background-color: color_variables.$green-500; background-color: var(--token-color-palette-green-200);
} }
.progress.is-success::-moz-progress-bar { .progress.is-success::-moz-progress-bar {
background-color: color_variables.$green-500; background-color: var(--token-color-palette-green-200);
} }
.progress.is-success::-ms-fill { .progress.is-success::-ms-fill {
background-color: color_variables.$green-500; background-color: var(--token-color-palette-green-200);
} }
.progress.is-success:indeterminate { .progress.is-success:indeterminate {
background-image: linear-gradient(to right, color_variables.$green-500 30%, #ededed 30%); background-image: linear-gradient(to right, var(--token-color-palette-green-200) 30%, #ededed 30%);
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/mixins'; @use '../utils/mixins';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -12,11 +11,11 @@ select {
} }
.select select { .select select {
background-color: color_variables.$ui-gray-050; background-color: var(--token-color-palette-neutral-50);
box-shadow: 0 3px 1px rgba(color_variables.$black, 0.12); box-shadow: 0 3px 1px rgba(hsl(0, 0%, 4%), 0.12);
border: 1px solid color_variables.$grey-light; border: 1px solid var(--token-color-palette-neutral-300);
border-radius: size_variables.$radius; border-radius: size_variables.$radius;
color: color_variables.$grey-dark; color: var(--token-color-palette-neutral-500);
cursor: pointer; cursor: pointer;
display: block; display: block;
font-size: 1em; font-size: 1em;
@ -41,7 +40,7 @@ select {
&:focus, &:focus,
&:focus-visible, &:focus-visible,
&.is-active { &.is-active {
border-color: color_variables.$blue-500; border-color: var(--token-color-palette-blue-200);
box-shadow: 0 0 0 0.125em rgba(21, 99, 255, 0.25); box-shadow: 0 0 0 0.125em rgba(21, 99, 255, 0.25);
} }
} }
@ -51,13 +50,13 @@ select {
} }
.select select[disabled] { .select select[disabled] {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
cursor: not-allowed; cursor: not-allowed;
user-select: none; user-select: none;
&:hover { &:hover {
border-color: color_variables.$grey-light; border-color: var(--token-color-palette-neutral-300);
} }
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/font_variables'; @use '../utils/font_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
@ -23,7 +22,7 @@
word-break: break-word; word-break: break-word;
> a { > a {
color: color_variables.$black; color: hsl(0, 0%, 4%);
text-decoration: none; text-decoration: none;
} }
@ -64,5 +63,5 @@
.is-subtitle-gray { .is-subtitle-gray {
text-transform: uppercase; text-transform: uppercase;
font-size: size_variables.$size-7; font-size: size_variables.$size-7;
color: color_variables.$ui-gray-500; color: var(--token-color-palette-neutral-400);
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -46,7 +45,7 @@
height: 1.5rem; height: 1.5rem;
border: 0.1rem solid transparent; border: 0.1rem solid transparent;
border-radius: 0.75rem; border-radius: 0.75rem;
background: color_variables.$ui-gray-300; background: var(--token-color-palette-neutral-300);
content: ''; content: '';
} }
.toggle[type='checkbox'] + label::after { .toggle[type='checkbox'] + label::after {
@ -58,12 +57,12 @@
height: 1rem; height: 1rem;
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
border-radius: 50%; border-radius: 50%;
background: color_variables.$white; background: hsl(0, 0%, 100%);
transition: all 0.25s size_variables.$easing; transition: all 0.25s size_variables.$easing;
content: ''; content: '';
} }
.toggle[type='checkbox']:checked + label::before { .toggle[type='checkbox']:checked + label::before {
background: color_variables.$ui-gray-700; background: var(--token-color-palette-neutral-500);
} }
.toggle[type='checkbox']:checked + label::after { .toggle[type='checkbox']:checked + label::after {
left: 1.625rem; left: 1.625rem;
@ -99,10 +98,10 @@
will-change: left; will-change: left;
} }
.toggle[type='checkbox']:focus + label { .toggle[type='checkbox']:focus + label {
box-shadow: 0 0 1px color_variables.$blue; box-shadow: 0 0 1px var(--token-color-palette-blue-200);
} }
.toggle[type='checkbox'].is-success:checked + label::before { .toggle[type='checkbox'].is-success:checked + label::before {
background: color_variables.$blue; background: var(--token-color-palette-blue-200);
} }
.toggle-label { .toggle-label {

View File

@ -1,4 +1,3 @@
@use 'utils/color_variables';
@use 'utils/size_variables'; @use 'utils/size_variables';
/** /**
@ -30,7 +29,7 @@
h1, h1,
h2, h2,
h3 { h3 {
border-bottom: 1px solid color_variables.$grey-light; border-bottom: 1px solid var(--token-color-palette-neutral-300);
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
} }
@ -61,13 +60,13 @@
pre, pre,
code { code {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
} }
blockquote { blockquote {
margin-left: 1rem; margin-left: 1rem;
padding: 0.5rem; padding: 0.5rem;
background: color_variables.$ui-gray-010; background: var(--token-color-palette-neutral-50);
border-radius: 6px; border-radius: 6px;
} }
@ -102,12 +101,12 @@
} }
} }
tr { tr {
border-bottom: 1px solid color_variables.$grey-light; border-bottom: 1px solid var(--token-color-palette-neutral-300);
} }
} }
.docfy-demo { .docfy-demo {
border: 1px solid color_variables.$grey-lightest; border: 1px solid var(--token-color-palette-neutral-50);
border-radius: 6px; border-radius: 6px;
padding: 1rem; padding: 1rem;
overflow: scroll; overflow: scroll;

View File

@ -1,5 +1,3 @@
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
@ -9,27 +7,27 @@
// background colors // background colors
.background-neutral-50 { .background-neutral-50 {
background: color_variables.$neutral-50; background: var(--token-color-palette-neutral-50);
} }
.has-background-white-bis { .has-background-white-bis {
background: color_variables.$ui-gray-050; background: var(--token-color-palette-neutral-50);
} }
.has-background-gray-100 { .has-background-gray-100 {
background-color: color_variables.$ui-gray-100; background-color: var(--token-color-palette-neutral-100);
} }
.has-background-gray-200 { .has-background-gray-200 {
background-color: color_variables.$ui-gray-200; background-color: var(--token-color-palette-neutral-200);
} }
.has-background-gray-300 { .has-background-gray-300 {
background-color: color_variables.$ui-gray-300; background-color: var(--token-color-palette-neutral-300);
} }
.has-background-gray-900 { .has-background-gray-900 {
background-color: color_variables.$ui-gray-900; background-color: var(--token-color-palette-neutral-600);
} }
.background-color-black { .background-color-black {
@ -39,12 +37,12 @@
// borders // borders
.has-border-top-light { .has-border-top-light {
border-radius: 0; border-radius: 0;
border-top: 1px solid color_variables.$grey-light; border-top: 1px solid var(--token-color-palette-neutral-300);
} }
.has-border-bottom-light { .has-border-bottom-light {
border-radius: 0; border-radius: 0;
border-bottom: 1px solid color_variables.$grey-light; border-bottom: 1px solid var(--token-color-palette-neutral-300);
} }
.has-error-border, .has-error-border,
@ -52,25 +50,25 @@ select.has-error-border,
.ttl-picker-form-field-error input, .ttl-picker-form-field-error input,
.string-list-form-field-error .field:first-of-type textarea, .string-list-form-field-error .field:first-of-type textarea,
.hds-form-checkbox.has-error-border { .hds-form-checkbox.has-error-border {
border: 1px solid color_variables.$red-500; border: 1px solid var(--token-color-palette-red-200);
} }
.error-border-child-inputs input, .error-border-child-inputs input,
.error-border-child-inputs textarea { .error-border-child-inputs textarea {
border: 1px solid color_variables.$red-500; border: 1px solid var(--token-color-palette-red-200);
} }
// specifically for the SearchSelect dropdown. // specifically for the SearchSelect dropdown.
.dropdown-has-error-border > div.ember-basic-dropdown-trigger { .dropdown-has-error-border > div.ember-basic-dropdown-trigger {
border: 1px solid color_variables.$red-500; border: 1px solid var(--token-color-palette-red-200);
} }
// text color // text color
.text-grey-lightest { .text-grey-lightest {
color: color_variables.$grey-lightest; color: var(--token-color-palette-neutral-50);
} }
.has-text-grey-light { .has-text-neutral-300 {
color: var(--token-color-foreground-faint) !important; color: var(--token-color-foreground-faint) !important;
} }
@ -78,38 +76,38 @@ select.has-error-border,
color: var(--token-color-foreground-faint) !important; color: var(--token-color-foreground-faint) !important;
} }
.has-text-grey-dark { .has-text-neutral-500 {
color: color_variables.$ui-gray-700 !important; color: var(--token-color-palette-neutral-500) !important;
} }
.has-text-white { .has-text-white {
color: color_variables.$white !important; color: hsl(0, 0%, 100%) !important;
} }
.has-text-black { .has-text-black {
color: color_variables.$black !important; color: hsl(0, 0%, 4%) !important;
} }
.has-text-info { .has-text-info {
color: color_variables.$blue-500 !important; color: var(--token-color-palette-blue-200) !important;
} }
// same without the !important // same without the !important
.has-text-primary { .has-text-primary {
color: color_variables.$blue-500; color: var(--token-color-palette-blue-200);
} }
.has-text-success { .has-text-success {
color: var(--token-color-foreground-success) !important; color: var(--token-color-palette-green-200) !important;
} }
.has-text-highlight { .has-text-highlight {
color: color_variables.$yellow-500; color: var(--token-color-palette-amber-200);
} }
.has-text-danger { .has-text-danger {
color: color_variables.$red-500 !important; color: var(--token-color-palette-red-200) !important;
} }
.has-text-primary { .has-text-primary {
color: color_variables.$blue; color: var(--token-color-palette-blue-200);
} }

View File

@ -1,4 +1,3 @@
@use '../utils/color_variables';
@use '../utils/size_variables'; @use '../utils/size_variables';
/** /**
@ -11,8 +10,8 @@
// box-shadow helpers // box-shadow helpers
.has-only-top-shadow { .has-only-top-shadow {
box-shadow: box-shadow:
0 -1px 0 -1px color_variables.$grey-light, 0 -1px 0 -1px var(--token-color-palette-neutral-300),
0 -2px 0 -1px color_variables.$grey-light; 0 -2px 0 -1px var(--token-color-palette-neutral-300);
} }
.is-shadowless { .is-shadowless {
@ -21,18 +20,18 @@
.is-sideless { .is-sideless {
box-shadow: box-shadow:
0 2px 0 -1px color_variables.$grey-light, 0 2px 0 -1px var(--token-color-palette-neutral-300),
0 -2px 0 -1px color_variables.$grey-light; 0 -2px 0 -1px var(--token-color-palette-neutral-300);
} }
// this helper needs to go after is-sideless as they are often used together and is-bottomless needs to override is-sideless (no this is not ideal). // this helper needs to go after is-sideless as they are often used together and is-bottomless needs to override is-sideless (no this is not ideal).
.is-bottomless { .is-bottomless {
box-shadow: 0 -1px 0 0 color_variables.$grey-light; box-shadow: 0 -1px 0 0 var(--token-color-palette-neutral-300);
} }
// border helpers // border helpers
.has-default-border { .has-default-border {
border: 1px solid color_variables.$grey !important; border: 1px solid var(--token-color-palette-neutral-400) !important;
} }
.is-borderless { .is-borderless {
@ -70,13 +69,13 @@
// large grouped css blocks // large grouped css blocks
.is-hint { .is-hint {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
padding: size_variables.$spacing-12 0; padding: size_variables.$spacing-12 0;
} }
.is-optional { .is-optional {
color: color_variables.$grey; color: var(--token-color-palette-neutral-400);
font-size: size_variables.$size-8; font-size: size_variables.$size-8;
text-transform: lowercase; text-transform: lowercase;
} }

View File

@ -1,5 +1,3 @@
@use 'color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1 * SPDX-License-Identifier: BUSL-1.1
@ -8,27 +6,27 @@
// TODO: lots of inconsistent variation on box-shadow usage. Fix. // TODO: lots of inconsistent variation on box-shadow usage. Fix.
// box // box
$box-shadow: 0 0 0 1px rgba(color_variables.$black, 0.1); $box-shadow: 0 0 0 1px rgba(hsl(0, 0%, 4%), 0.1);
$box-shadow-low: $box-shadow-low:
0 5px 1px -2px rgba(color_variables.$black, 0.12), 0 5px 1px -2px rgba(hsl(0, 0%, 4%), 0.12),
0 3px 2px -1px rgba(color_variables.$black, 0); 0 3px 2px -1px rgba(hsl(0, 0%, 4%), 0);
$box-shadow-middle: $box-shadow-middle:
0 8px 4px -4px rgba(color_variables.$black, 0.1), 0 8px 4px -4px rgba(hsl(0, 0%, 4%), 0.1),
0 6px 8px -2px rgba(color_variables.$black, 0.05); 0 6px 8px -2px rgba(hsl(0, 0%, 4%), 0.05);
$box-shadow-high: $box-shadow-high:
0 12px 5px -7px rgba(color_variables.$black, 0.08), 0 12px 5px -7px rgba(hsl(0, 0%, 4%), 0.08),
0 11px 10px -3px rgba(color_variables.$black, 0.1); 0 11px 10px -3px rgba(hsl(0, 0%, 4%), 0.1);
$box-shadow-highest: $box-shadow-highest:
0 16px 6px -10px rgba(color_variables.$black, 0.06), 0 16px 6px -10px rgba(hsl(0, 0%, 4%), 0.06),
0 16px 16px -4px rgba(color_variables.$black, 0.2); 0 16px 16px -4px rgba(hsl(0, 0%, 4%), 0.2);
// box-link // box-link
$box-link-shadow: 0 0 0 1px color_variables.$ui-gray-200; $box-link-shadow: 0 0 0 1px var(--token-color-palette-neutral-200);
$box-link-hover-shadow: 0 0 0 1px color_variables.$ui-gray-300; $box-link-hover-shadow: 0 0 0 1px var(--token-color-palette-neutral-300);
// border // border
$base-border: 1px solid color_variables.$ui-gray-300; $base-border: 1px solid var(--token-color-palette-neutral-300);
$light-border: 1px solid color_variables.$ui-gray-200; $light-border: 1px solid var(--token-color-palette-neutral-200);
// button specific // button specific
$button-box-shadow-standard: 0 3px 1px 0 rgba(color_variables.$black, 0.12); $button-box-shadow-standard: 0 3px 1px 0 rgba(hsl(0, 0%, 4%), 0.12);

View File

@ -1,108 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
// HDS TOKENS
// Grey
$neutral-50: var(--token-color-palette-neutral-50);
/*
DEPRECATED
below variables are deprecated, use HDS tokens instead
*/
// UI Gray
$ui-gray-010: #fbfbfc;
$ui-gray-050: #f7f8fa;
$ui-gray-100: #ebeef2;
$ui-gray-200: #dce0e6;
$ui-gray-300: #bac1cc;
$ui-gray-400: #8e96a3;
$ui-gray-500: #6f7682;
$ui-gray-600: #626873;
$ui-gray-700: #525761;
$ui-gray-800: #373a42;
$ui-gray-900: #1f2124;
$grey-lightest: $ui-gray-050;
$grey-light: $ui-gray-300;
$grey: $ui-gray-500;
$grey-dark: $ui-gray-700;
$grey-darkest: $ui-gray-900;
// Black
$black: hsl(0, 0%, 4%); // in hex: #0a0a0a
// White
$white: hsl(0, 0%, 100%);
// Blue
$blue-010: #fbfcff;
$blue-050: #f0f5ff;
$blue-100: #bfd4ff;
$blue-300: #5b92ff;
$blue-500: #1563ff;
$blue-700: #0e40a3;
$blue-900: #061b46;
$blue-lightest: $blue-050;
$blue-light: $blue-300;
$blue: $blue-500;
$blue-dark: $blue-700;
$blue-darkest: $blue-900;
// Red
$red-010: #fdfafb;
$red-050: #f9ecee;
$red-100: #efc7cc;
$red-300: #db7d88;
$red-500: #c73445;
$red-700: #7f222c;
$red-900: #370f13;
$red-lightest: $red-050;
$red-light: $red-300;
$red: $red-500;
$red-dark: $red-700;
$red-darkest: $red-900;
// Green
$green-010: #fafdfa;
$green-050: #ecf7ed;
$green-100: #c6e9c9;
$green-300: #7acc81;
$green-500: #2eb039;
$green-700: #1e7125;
$green-900: #0d3010;
$green-lightest: $green-050;
$green-light: $green-300;
$green: $green-500;
$green-dark: $green-700;
$green-darkest: $green-900;
// Orange
$orange-010: #fffcfa;
$orange-050: #fef4ec;
$orange-100: #fde0c8;
$orange-300: #fbb77f;
$orange-500: #fa8f37;
$orange-700: #a05c23;
$orange-900: #45270f;
$orange-lightest: $orange-050;
$orange-light: $orange-300;
$orange: $orange-500;
$orange-dark: $orange-700;
$orange-darkest: $orange-900;
// Yellow
$yellow-010: #fffdf6;
$yellow-050: #fffbed;
$yellow-100: #fdeeba;
$yellow-300: #fbd95e;
$yellow-500: #fac402;
$yellow-700: #a07d02;
$yellow-900: #453601;
$yellow-lightest: $yellow-050;
$yellow-light: $yellow-300;
$yellow: $yellow-500;
$yellow-dark: $yellow-700;
$yellow-darkest: $yellow-900;

View File

@ -1,5 +1,4 @@
@use '../utils/size_variables'; @use '../utils/size_variables';
@use '../utils/color_variables';
/** /**
* Copyright (c) HashiCorp, Inc. * Copyright (c) HashiCorp, Inc.
@ -13,15 +12,15 @@
padding: 0; padding: 0;
.info a { .info a {
color: color_variables.$blue-700; color: var(--token-color-palette-blue-300);
} }
.title { .title {
small { small {
background-color: color_variables.$ui-gray-800; background-color: var(--token-color-palette-neutral-600);
} }
.version-stamp { .version-stamp {
background-color: color_variables.$green-700; background-color: var(--token-color-palette-green-300);
} }
} }
@ -29,26 +28,26 @@
opacity: 1; opacity: 1;
.opblock-summary-method { .opblock-summary-method {
background-color: color_variables.$ui-gray-700; background-color: var(--token-color-palette-neutral-500);
} }
} }
.opblock-get { .opblock-get {
.opblock-summary-method { .opblock-summary-method {
background-color: color_variables.$blue-500; background-color: var(--token-color-palette-blue-200);
} }
} }
.opblock-post, .opblock-post,
.opblock-patch { .opblock-patch {
.opblock-summary-method { .opblock-summary-method {
background-color: color_variables.$green-700; background-color: var(--token-color-palette-green-300);
} }
} }
.opblock-delete { .opblock-delete {
.opblock-summary-method { .opblock-summary-method {
background-color: color_variables.$red-500; background-color: var(--token-color-palette-red-200);
} }
} }

View File

@ -53,7 +53,7 @@
{{/if}} {{/if}}
</div> </div>
{{#if (includes index this.indicesWithComma)}} {{#if (includes index this.indicesWithComma)}}
<Hds::Icon @name="alert-triangle" @color="var(--token-color-foreground-warning)" @size="24" @isInline={{true}} /> <Hds::Icon @name="alert-triangle" @color="warning" @size="24" @isInline={{true}} />
{{/if}} {{/if}}
</div> </div>
{{/each}} {{/each}}

View File

@ -64,7 +64,7 @@ module('Integration | Component | kv | Page::Secret::Metadata::Version-History',
if (data.destroyed) { if (data.destroyed) {
assert assert
.dom(`${PAGE.versions.icon(version)} [data-test-icon="x-square-fill"]`) .dom(`${PAGE.versions.icon(version)} [data-test-icon="x-square-fill"]`)
.hasStyle({ color: 'rgb(199, 52, 69)' }); .hasStyle({ color: 'rgb(229, 34, 40)' });
} }
if (data.isSecretDeleted) { if (data.isSecretDeleted) {
assert assert