+
-
+
Along with a separator ^ again with padding
```
-
```css
.panel {
@extend %panel;
@@ -119,8 +88,8 @@ building block for other CSS instead.
## CSS Properties
-| Property | Type | Default | Description |
-| --- | --- | --- | --- |
-| `--tone-border` | `color` | --tone-gray-300 | Default color for all borders |
-| `--padding-x` | `length` | 14px | Default x padding to be used for padding values within the component |
-| `--padding-y` | `length` | 14px | Default y padding to be used for padding values within the component |
+| Property | Type | Default | Description |
+| --------------- | -------- | --------------------------------- | -------------------------------------------------------------------- |
+| `--tone-border` | `color` | --token-color-palette-neutral-300 | Default color for all borders |
+| `--padding-x` | `length` | 14px | Default x padding to be used for padding values within the component |
+| `--padding-y` | `length` | 14px | Default y padding to be used for padding values within the component |
diff --git a/ui/packages/consul-ui/app/components/panel/index.css.js b/ui/packages/consul-ui/app/components/panel/index.css.js
index 68179f056c..795a3f2511 100644
--- a/ui/packages/consul-ui/app/components/panel/index.css.js
+++ b/ui/packages/consul-ui/app/components/panel/index.css.js
@@ -11,21 +11,21 @@ export default (css) => css`
}
.panel {
- --tone-border: var(--tone-gray-300);
+ --tone-border: var(--token-color-palette-neutral-300);
border: var(--decor-border-100);
border-radius: var(--decor-radius-200);
- box-shadow: var(--decor-elevation-600);
+ box-shadow: var(--token-surface-high-box-shadow);
}
.panel-separator {
border: 0;
border-top: var(--decor-border-100);
}
.panel {
- color: rgb(var(--tone-gray-900));
- background-color: rgb(var(--tone-gray-000));
+ color: var(--token-color-foreground-strong);
+ background-color: var(--token-color-surface-primary);
}
.panel,
.panel-separator {
- border-color: rgb(var(--tone-border));
+ border-color: var(--tone-border);
}
`;
diff --git a/ui/packages/consul-ui/app/components/panel/skin.scss b/ui/packages/consul-ui/app/components/panel/skin.scss
index 30d859a97e..23f09151f7 100644
--- a/ui/packages/consul-ui/app/components/panel/skin.scss
+++ b/ui/packages/consul-ui/app/components/panel/skin.scss
@@ -1,17 +1,17 @@
%panel {
- --tone-border: var(--tone-gray-300);
+ --tone-border: var(--token-color-palette-neutral-300);
border: var(--decor-border-100);
border-radius: var(--decor-radius-200);
- box-shadow: var(--decor-elevation-600);
+ box-shadow: var(--token-surface-high-box-shadow);
}
%panel-separator {
border-top: var(--decor-border-100);
}
%panel {
- color: rgb(var(--tone-gray-900));
- background-color: rgb(var(--tone-gray-000));
+ color: var(--token-color-foreground-strong);
+ background-color: var(--token-color-surface-primary);
}
%panel,
%panel-separator {
- border-color: rgb(var(--tone-border));
+ border-color: var(--tone-border);
}
diff --git a/ui/packages/consul-ui/app/components/peerings/badge/index.scss b/ui/packages/consul-ui/app/components/peerings/badge/index.scss
index e61a222229..5a79ae19c9 100644
--- a/ui/packages/consul-ui/app/components/peerings/badge/index.scss
+++ b/ui/packages/consul-ui/app/components/peerings/badge/index.scss
@@ -7,32 +7,32 @@
gap: 4px;
&.active {
- background: rgb(var(--tone-green-050));
- color: rgb(var(--tone-green-600));
+ background: var(--token-color-surface-success);
+ color: var(--token-color-foreground-success);
}
&.pending {
- background: rgb(var(--tone-strawberry-050));
- color: rgb(var(--tone-strawberry-500));
+ background: var(--token-color-consul-surface);
+ color: var(--token-color-consul-brand);
}
&.establishing {
- background: rgb(var(--tone-blue-050));
- color: rgb(var(--tone-blue-500));
+ background: var(--token-color-surface-action);
+ color: var(--token-color-foreground-action);
}
&.failing {
- background: rgb(var(--tone-red-050));
- color: rgb(var(--tone-red-500));
+ background: var(--token-color-surface-critical);
+ color: var(--token-color-foreground-critical);
}
&.deleting {
- background: rgb(var(--tone-yellow-050));
- color: rgb(var(--tone-yellow-800));
+ background: var(--token-color-surface-warning);
+ color: var(--token-color-foreground-warning-on-surface);
}
&.terminated {
- background: rgb(var(--tone-gray-150));
- color: rgb(var(--tone-gray-800));
+ background: var(--token-color-surface-interactive-active);
+ color: var(--token-color-foreground-primary);
}
&.undefined {
- background: rgb(var(--tone-gray-150));
- color: rgb(var(--tone-gray-800));
+ background: var(--token-color-surface-interactive-active);
+ color: var(--token-color-foreground-primary);
}
.peerings-badge__text {
diff --git a/ui/packages/consul-ui/app/components/popover-select/index.scss b/ui/packages/consul-ui/app/components/popover-select/index.scss
index ac45555434..01f38ae5c6 100644
--- a/ui/packages/consul-ui/app/components/popover-select/index.scss
+++ b/ui/packages/consul-ui/app/components/popover-select/index.scss
@@ -28,23 +28,23 @@
/* even their own search bar sub menu components */
%popover-select .value-passing button::before {
@extend %with-check-circle-fill-mask, %as-pseudo;
- color: rgb(var(--tone-green-500));
+ color: var(--token-color-foreground-success);
}
%popover-select .value-warning button::before {
@extend %with-alert-triangle-mask, %as-pseudo;
- color: rgb(var(--tone-orange-500));
+ color: var(--token-color-foreground-warning);
}
%popover-select .value-critical button::before {
@extend %with-cancel-square-fill-mask, %as-pseudo;
- color: rgb(var(--tone-red-500));
+ color: var(--token-color-foreground-critical);
}
%popover-select .value-empty button::before {
@extend %with-minus-square-fill-mask, %as-pseudo;
- color: rgb(var(--tone-gray-400));
+ color: var(--token-color-foreground-disabled);
}
%popover-select .value-unknown button::before {
@extend %with-help-circle-outline-mask, %as-pseudo;
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
%popover-select.type-source li:not(.partition) button {
text-transform: capitalize;
@@ -54,7 +54,7 @@
}
%popover-select.type-source li.partition button::before {
@extend %with-user-team-mask, %as-pseudo;
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
%popover-select .jwt button::before {
@extend %with-logo-jwt-color-icon, %as-pseudo;
diff --git a/ui/packages/consul-ui/app/components/progress/skin.scss b/ui/packages/consul-ui/app/components/progress/skin.scss
index fb9f433d0b..07411cf0bb 100644
--- a/ui/packages/consul-ui/app/components/progress/skin.scss
+++ b/ui/packages/consul-ui/app/components/progress/skin.scss
@@ -5,7 +5,7 @@
justify-content: center;
--icon-size: icon-700; /* 24px */
--icon-name: var(--icon-loading);
- --icon-color: rgb(var(--tone-gray-500));
+ --icon-color: var(--token-color-foreground-faint);
}
%progress-indeterminate::before {
content: '';
diff --git a/ui/packages/consul-ui/app/components/radio-card/skin.scss b/ui/packages/consul-ui/app/components/radio-card/skin.scss
index 03320aa5e6..2350c740d3 100644
--- a/ui/packages/consul-ui/app/components/radio-card/skin.scss
+++ b/ui/packages/consul-ui/app/components/radio-card/skin.scss
@@ -1,25 +1,25 @@
%radio-card {
border: var(--decor-border-100);
border-radius: var(--decor-radius-100);
- border-color: rgb(var(--tone-gray-200));
- box-shadow: var(--decor-elevation-400);
- color: rgb(var(--tone-gray-500));
+ border-color: var(--token-color-surface-interactive-active);
+ box-shadow: var(--token-surface-mid-box-shadow);
+ color: var(--token-color-foreground-faint);
cursor: pointer;
}
%radio-card.checked {
- border-color: rgb(var(--tone-blue-500));
+ border-color: var(--token-color-foreground-action);
}
%radio-card > :first-child {
- background-color: rgb(var(--tone-gray-050));
+ background-color: var(--token-color-surface-strong);
}
%radio-card.checked > :first-child {
- background-color: rgb(var(--tone-blue-050));
+ background-color: var(--token-color-surface-action);
}
%radio-card header {
margin-bottom: 0.5em;
}
%radio-card header {
- color: rgb(var(--tone-gray-999));
+ color: var(--token-color-hashicorp-brand);
}
%radio-card-with-icon > :last-child {
padding-left: 47px;
diff --git a/ui/packages/consul-ui/app/components/search-bar/index.scss b/ui/packages/consul-ui/app/components/search-bar/index.scss
index 99ec3cff0f..e0f52145bb 100644
--- a/ui/packages/consul-ui/app/components/search-bar/index.scss
+++ b/ui/packages/consul-ui/app/components/search-bar/index.scss
@@ -2,7 +2,7 @@
&-status {
& {
border-bottom: var(--decor-border-100);
- border-bottom-color: rgb(var(--tone-gray-200));
+ border-bottom-color: var(--token-color-surface-interactive-active);
}
.remove-all button {
@extend %anchor;
@@ -11,15 +11,15 @@
& {
@extend %pill-200;
border: var(--decor-border-100);
- border-color: rgb(var(--tone-gray-200));
- color: rgb(var(--tone-gray-600));
+ border-color: var(--token-color-surface-interactive-active);
+ color: var(--token-color-foreground-faint);
}
button {
cursor: pointer;
}
button::before {
@extend %with-cancel-plain-mask, %as-pseudo;
- color: rgb(var(--tone-gray-600));
+ color: var(--token-color-foreground-faint);
margin-top: 1px;
margin-right: 0.2rem;
}
diff --git a/ui/packages/consul-ui/app/components/skip-links/skin.scss b/ui/packages/consul-ui/app/components/skip-links/skin.scss
index 808731d8d5..630bbde369 100644
--- a/ui/packages/consul-ui/app/components/skip-links/skin.scss
+++ b/ui/packages/consul-ui/app/components/skip-links/skin.scss
@@ -1,7 +1,7 @@
%skip-links {
- outline: 1px solid rgb(var(--tone-gray-000));
- color: rgb(var(--tone-gray-000));
- background-color: rgb(var(--tone-blue-500));
+ outline: 1px solid var(--token-color-surface-primary);
+ color: var(--token-color-surface-primary);
+ background-color: var(--token-color-foreground-action);
}
%skip-links button,
%skip-links a {
diff --git a/ui/packages/consul-ui/app/components/sliding-toggle/skin.scss b/ui/packages/consul-ui/app/components/sliding-toggle/skin.scss
index 6a3e38cf77..2d5327dc6a 100644
--- a/ui/packages/consul-ui/app/components/sliding-toggle/skin.scss
+++ b/ui/packages/consul-ui/app/components/sliding-toggle/skin.scss
@@ -15,16 +15,16 @@
@extend %sliding-toggle-negative;
}
%sliding-toggle label span {
- color: rgb(var(--tone-gray-900));
+ color: var(--token-color-foreground-strong);
}
%sliding-toggle label span::after {
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
}
%sliding-toggle label input:checked + span::before,
%sliding-toggle-negative label input + span::before {
- background-color: rgb(var(--tone-blue-500));
+ background-color: var(--token-color-foreground-action);
}
%sliding-toggle label span::before,
%sliding-toggle-negative label input:checked + span::before {
- background-color: rgb(var(--tone-gray-300));
+ background-color: var(--token-color-palette-neutral-300);
}
diff --git a/ui/packages/consul-ui/app/components/tab-nav/skin.scss b/ui/packages/consul-ui/app/components/tab-nav/skin.scss
index 19561a54a9..b0604b1111 100644
--- a/ui/packages/consul-ui/app/components/tab-nav/skin.scss
+++ b/ui/packages/consul-ui/app/components/tab-nav/skin.scss
@@ -18,22 +18,22 @@
}
%tab-nav {
/* %frame-transparent-something */
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
}
%tab-button {
@extend %with-transition-500;
transition-property: background-color, border-color;
- border-color: var(--transparent);
- color: rgb(var(--tone-gray-500));
+ border-color: transparent;
+ color: var(--token-color-foreground-faint);
}
%tab-button-intent,
%tab-button-active {
/* %frame-gray-something */
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
}
%tab-button-intent {
- border-color: rgb(var(--tone-gray-300));
+ border-color: var(--token-color-palette-neutral-300);
}
%tab-nav.animatable .selected a {
- border-color: var(--transparent) !important;
+ border-color: transparent !important;
}
diff --git a/ui/packages/consul-ui/app/components/table/index.scss b/ui/packages/consul-ui/app/components/table/index.scss
index 23a57f0a19..331cb9dcf9 100644
--- a/ui/packages/consul-ui/app/components/table/index.scss
+++ b/ui/packages/consul-ui/app/components/table/index.scss
@@ -21,7 +21,7 @@ table.consul-metadata-list tbody tr:hover {
%table th span::after {
@extend %with-info-circle-outline-mask, %as-pseudo;
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
margin-left: 4px;
}
%table tbody tr {
@@ -31,12 +31,12 @@ table.consul-metadata-list tbody tr:hover {
padding: 0;
}
%table tbody tr:hover {
- box-shadow: var(--decor-elevation-300);
+ box-shadow: var(--token-elevation-high-box-shadow);
}
%table td.folder::before {
@extend %with-folder-outline-mask, %as-pseudo;
- background-color: rgb(var(--tone-gray-300));
+ background-color: var(--token-color-palette-neutral-300);
margin-top: 1px;
margin-right: 5px;
}
diff --git a/ui/packages/consul-ui/app/components/table/layout.scss b/ui/packages/consul-ui/app/components/table/layout.scss
index 4858bce801..c19d48b3ce 100644
--- a/ui/packages/consul-ui/app/components/table/layout.scss
+++ b/ui/packages/consul-ui/app/components/table/layout.scss
@@ -59,5 +59,5 @@
font-weight: normal;
}
%table tbody td em {
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
diff --git a/ui/packages/consul-ui/app/components/table/skin.scss b/ui/packages/consul-ui/app/components/table/skin.scss
index 6e8ff93d7a..8cd8b5f4fa 100644
--- a/ui/packages/consul-ui/app/components/table/skin.scss
+++ b/ui/packages/consul-ui/app/components/table/skin.scss
@@ -3,15 +3,15 @@
border-bottom: var(--decor-border-100);
}
%table th {
- border-color: rgb(var(--tone-gray-300));
+ border-color: var(--token-color-palette-neutral-300);
}
%table td {
- border-color: rgb(var(--tone-gray-200));
- color: rgb(var(--tone-gray-500));
+ border-color: var(--token-color-surface-interactive-active);
+ color: var(--token-color-foreground-faint);
}
%table th,
%table td strong {
- color: rgb(var(--tone-gray-600));
+ color: var(--token-color-foreground-faint);
}
/* TODO: Add to native selector `tbody th` - will involve moving all
* current th's to `thead th` and changing the templates
@@ -19,7 +19,7 @@
*/
%table a,
%tbody-th {
- color: rgb(var(--tone-gray-900));
+ color: var(--token-color-foreground-strong);
}
%table td:first-child {
@extend %tbody-th;
diff --git a/ui/packages/consul-ui/app/components/tabular-details/skin.scss b/ui/packages/consul-ui/app/components/tabular-details/skin.scss
index 0bd53b99ad..0ff486379c 100644
--- a/ui/packages/consul-ui/app/components/tabular-details/skin.scss
+++ b/ui/packages/consul-ui/app/components/tabular-details/skin.scss
@@ -6,22 +6,22 @@
border: 0;
}
%tabular-detail {
- border: 1px solid rgb(var(--tone-gray-300));
+ border: 1px solid var(--token-color-palette-neutral-300);
border-radius: var(--decor-radius-100);
- box-shadow: var(--decor-elevation-600);
+ box-shadow: var(--token-surface-high-box-shadow);
margin-bottom: 20px;
}
%tabular-detail::before,
%tabular-detail > div,
%tabular-detail > label {
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
}
%tabular-detail > label::before {
transform: rotate(180deg);
}
// this is here as its a fake border
%tabular-detail::before {
- background: rgb(var(--tone-gray-200));
+ background: var(--token-color-surface-interactive-active);
content: '';
display: block;
height: 1px;
diff --git a/ui/packages/consul-ui/app/components/tabular-dl/skin.scss b/ui/packages/consul-ui/app/components/tabular-dl/skin.scss
index a48931cb3c..53e5c8cb6c 100644
--- a/ui/packages/consul-ui/app/components/tabular-dl/skin.scss
+++ b/ui/packages/consul-ui/app/components/tabular-dl/skin.scss
@@ -1,21 +1,21 @@
%tabular-dl {
> dt:last-of-type,
> dd:last-of-type {
- border-color: rgb(var(--tone-gray-300)) !important;
+ border-color: var(--token-color-palette-neutral-300) !important;
}
dt,
dd {
- border-color: rgb(var(--tone-gray-300)) !important;
- color: rgb(var(--tone-gray-999)) !important;
+ border-color: var(--token-color-palette-neutral-300) !important;
+ color: var(--token-color-hashicorp-brand) !important;
}
dt {
font-weight: var(--typo-weight-bold);
}
dd .copy-button button::before {
- background-color: rgb(var(--tone-gray-999));
+ background-color: var(--token-color-hashicorp-brand);
}
dt.type + dd span::before {
@extend %with-info-circle-outline-mask, %as-pseudo;
- background-color: rgb(var(--tone-gray-500));
+ background-color: var(--token-color-foreground-faint);
}
}
diff --git a/ui/packages/consul-ui/app/components/tag-list/index.scss b/ui/packages/consul-ui/app/components/tag-list/index.scss
index 6ded1d9a3b..dc5346f14a 100644
--- a/ui/packages/consul-ui/app/components/tag-list/index.scss
+++ b/ui/packages/consul-ui/app/components/tag-list/index.scss
@@ -8,7 +8,7 @@ td.tags {
%tag-list dt::before {
@extend %with-tag-mask, %as-pseudo;
color: inherit;
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
%tag-list dd {
@extend %csv-list;
diff --git a/ui/packages/consul-ui/app/components/tile/index.scss b/ui/packages/consul-ui/app/components/tile/index.scss
index 55ceb7b400..779349b031 100644
--- a/ui/packages/consul-ui/app/components/tile/index.scss
+++ b/ui/packages/consul-ui/app/components/tile/index.scss
@@ -1,4 +1,3 @@
-
%with-tile {
position: relative;
width: var(--tile-size, 3rem);
@@ -23,15 +22,15 @@
@extend %with-tile;
}
%with-leader-tile::before {
- background-image: linear-gradient(135deg,
- rgb(var(--strawberry-010)) 0%,
- rgb(var(--strawberry-200)) 100%
+ background-image: linear-gradient(
+ 135deg,
+ var(--token-color-consul-surface) 0%,
+ var(--token-color-consul-border) 100%
);
- border-color: rgb(var(--tone-gray-999) / 10%);
+ border-color: var(--token-color-border-faint);
}
%with-leader-tile::after {
--icon-name: icon-star-fill;
--icon-size: icon-700;
- color: rgb(var(--strawberry-500));
+ color: var(--token-color-consul-brand);
}
-
diff --git a/ui/packages/consul-ui/app/components/toggle-button/skin.scss b/ui/packages/consul-ui/app/components/toggle-button/skin.scss
index 7a05618ed3..eac488af2e 100644
--- a/ui/packages/consul-ui/app/components/toggle-button/skin.scss
+++ b/ui/packages/consul-ui/app/components/toggle-button/skin.scss
@@ -3,10 +3,10 @@
cursor: pointer;
}
%toggle-button-intent {
- background-color: rgb(var(--tone-gray-050));
+ background-color: var(--token-color-surface-strong);
}
%toggle-button-active {
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
}
%toggle-button:hover,
%toggle-button:focus {
diff --git a/ui/packages/consul-ui/app/components/tooltip-panel/skin.scss b/ui/packages/consul-ui/app/components/tooltip-panel/skin.scss
index 7e65c62926..31cb584a31 100644
--- a/ui/packages/consul-ui/app/components/tooltip-panel/skin.scss
+++ b/ui/packages/consul-ui/app/components/tooltip-panel/skin.scss
@@ -6,9 +6,9 @@
@extend %as-pseudo;
width: 12px;
height: 12px;
- background-color: rgb(var(--tone-gray-000));
- border-top: 1px solid rgb(var(--tone-gray-300));
- border-right: 1px solid rgb(var(--tone-gray-300));
+ background-color: var(--token-color-surface-primary);
+ border-top: 1px solid var(--token-color-palette-neutral-300);
+ border-right: 1px solid var(--token-color-palette-neutral-300);
transform: rotate(-45deg);
position: absolute;
left: 16px;
diff --git a/ui/packages/consul-ui/app/components/tooltip/index.scss b/ui/packages/consul-ui/app/components/tooltip/index.scss
index 333faed35f..034aa343bb 100644
--- a/ui/packages/consul-ui/app/components/tooltip/index.scss
+++ b/ui/packages/consul-ui/app/components/tooltip/index.scss
@@ -31,19 +31,19 @@
%tooltip-bubble {
& {
- background-color: rgb(var(--tone-gray-700));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-faint);
+ color: var(--token-color-surface-primary);
}
}
%tooltip-tail {
--size: 5px;
& {
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
}
&::before {
- border-color: var(--transparent);
+ border-color: transparent;
border-style: solid;
}
}
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/card/index.scss b/ui/packages/consul-ui/app/components/topology-metrics/card/index.scss
index 6148f41a75..5566f2b428 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/card/index.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/card/index.scss
@@ -5,14 +5,14 @@
#upstream-container .topology-metrics-card,
#downstream-container .topology-metrics-card {
display: block;
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
overflow: hidden;
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
border-radius: var(--decor-radius-100);
border: 1px solid;
/* TODO: If this color is combined with the above */
/* border property then the compressor removes the color */
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
p {
padding: 12px 12px 0 12px;
font-size: var(--typo-size-500);
@@ -28,7 +28,7 @@
margin-right: 8px;
}
dd {
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
}
span {
margin-right: 8px;
@@ -56,23 +56,23 @@
.partition dt::before,
.nspace dt::before,
.health dt::before {
- --icon-color: rgb(var(--tone-gray-500));
+ --icon-color: var(--token-color-foreground-faint);
}
.passing::before {
@extend %with-check-circle-fill-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-green-500));
+ --icon-color: var(--token-color-foreground-success);
}
.warning::before {
@extend %with-alert-triangle-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-orange-500));
+ --icon-color: var(--token-color-foreground-warning);
}
.critical::before {
@extend %with-cancel-square-fill-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-red-500));
+ --icon-color: var(--token-color-foreground-critical);
}
.empty::before {
@extend %with-minus-square-fill-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-gray-500));
+ --icon-color: var(--token-color-foreground-faint);
}
}
.details {
@@ -96,7 +96,7 @@
span::before {
margin-right: 0px;
@extend %with-union-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-gray-500));
+ --icon-color: var(--token-color-foreground-faint);
}
dl:first-child {
grid-area: partition;
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/popover/index.scss b/ui/packages/consul-ui/app/components/topology-metrics/popover/index.scss
index 230bfa1144..2468d4f4a6 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/popover/index.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/popover/index.scss
@@ -2,7 +2,7 @@
> button {
position: absolute;
transform: translate(-50%, -50%);
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
padding: 1px 1px;
&:hover {
cursor: pointer;
@@ -21,16 +21,16 @@
&.deny > button::before,
&.deny .tippy-arrow::after {
@extend %with-cancel-square-fill-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-red-500));
+ --icon-color: var(--token-color-foreground-critical);
}
&.l7 > button::before,
&.l7 .tippy-arrow::after {
@extend %with-layers-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-gray-300));
+ --icon-color: var(--token-color-palette-neutral-300);
}
&.not-defined > button::before,
&.not-defined .tippy-arrow::after {
@extend %with-alert-triangle-mask, %as-pseudo;
- --icon-color: rgb(var(--tone-yellow-500));
+ --icon-color: var(--token-color-vault-brand);
}
}
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/series/skin.scss b/ui/packages/consul-ui/app/components/topology-metrics/series/skin.scss
index abd3ed5f2e..9c111bccf3 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/series/skin.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/series/skin.scss
@@ -8,18 +8,18 @@
font-size: 0.875em;
line-height: 1.5em;
font-weight: normal;
- border: 1px solid rgb(var(--tone-gray-300));
+ border: 1px solid var(--token-color-palette-neutral-300);
background: #fff;
border-radius: 2px;
box-sizing: border-box;
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: var(--token-elevation-higher-box-shadow);
.sparkline-time {
padding: 8px 10px;
font-weight: bold;
font-size: 14px;
color: #000;
- border-bottom: 1px solid rgb(var(--tone-gray-200));
+ border-bottom: 1px solid var(--token-color-surface-interactive-active);
margin-bottom: 4px;
text-align: center;
}
@@ -31,7 +31,7 @@
}
.sparkline-tt-sum {
- border-top: 1px solid rgb(var(--tone-gray-200));
+ border-top: 1px solid var(--token-color-surface-interactive-active);
margin-top: 4px;
padding: 8px 10px 0 10px;
}
@@ -58,7 +58,7 @@
height: 12px;
left: 15px;
bottom: -7px;
- border: 1px solid rgb(var(--tone-gray-300));
+ border: 1px solid var(--token-color-palette-neutral-300);
border-top: 0;
border-left: 0;
background: #fff;
@@ -75,7 +75,7 @@
}
h3 {
- color: rgb(var(--tone-gray-900));
+ color: var(--token-color-foreground-strong);
font-size: 16px;
}
@@ -84,16 +84,16 @@
font-weight: 600;
}
dd {
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
}
}
.sparkline-key-link {
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
}
.sparkline-key-link:hover {
- color: rgb(var(--tone-blue-500));
+ color: var(--token-color-foreground-action);
}
#metrics-container:hover .sparkline-key-link::before {
@extend %with-info-circle-fill-mask, %as-pseudo;
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/skin.scss b/ui/packages/consul-ui/app/components/topology-metrics/skin.scss
index fc819a6300..c40c6c43fa 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/skin.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/skin.scss
@@ -1,7 +1,7 @@
.topology-notices {
button {
@extend %button;
- color: rgb(var(--tone-blue-500));
+ color: var(--token-color-foreground-action);
}
button::before {
@extend %as-pseudo;
@@ -12,7 +12,7 @@
}
}
.topology-container {
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
}
// Columns/Containers & Lines
@@ -23,35 +23,35 @@
border: 1px solid;
/* TODO: If this color is combined with the above */
/* border property then the compressor removes the color */
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
}
#downstream-container,
#upstream-container {
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
}
#downstream-container > div:first-child {
display: inline-flex;
span::before {
@extend %with-info-circle-outline-mask, %as-pseudo;
- background-color: rgb(var(--tone-gray-500));
+ background-color: var(--token-color-foreground-faint);
}
}
// Metrics Container
#metrics-container {
div:first-child {
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
}
.link {
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
a {
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
}
a::before {
- background-color: rgb(var(--tone-gray-500));
+ background-color: var(--token-color-foreground-faint);
}
a:hover {
- color: rgb(var(--color-action));
+ color: var(--token-color-foreground-action);
}
.metrics-link::before {
@extend %with-exit-mask, %as-pseudo;
@@ -66,19 +66,19 @@
#downstream-lines svg,
#upstream-lines svg {
path {
- fill: var(--transparent);
+ fill: transparent;
}
circle {
- fill: rgb(var(--tone-gray-000));
+ fill: var(--token-color-surface-primary);
}
.allow-arrow {
- fill: rgb(var(--tone-gray-300));
+ fill: var(--token-color-palette-neutral-300);
stroke-linejoin: round;
}
path,
.allow-dot,
.allow-arrow {
- stroke: rgb(var(--tone-gray-300));
+ stroke: var(--token-color-palette-neutral-300);
stroke-width: 2;
}
path[data-permission='not-defined'],
@@ -86,15 +86,15 @@
stroke-dasharray: 4;
}
path[data-permission='deny'] {
- stroke: rgb(var(--tone-red-500));
+ stroke: var(--token-color-foreground-critical);
}
.deny-dot {
- stroke: rgb(var(--tone-red-500));
+ stroke: var(--token-color-foreground-critical);
stroke-width: 2;
}
.deny-arrow {
- fill: rgb(var(--tone-red-500));
- stroke: rgb(var(--tone-red-500));
+ fill: var(--token-color-foreground-critical);
+ stroke: var(--token-color-foreground-critical);
stroke-linejoin: round;
}
}
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss b/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss
index 58943e1927..9005502e3c 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss
@@ -5,7 +5,7 @@
justify-content: space-between;
align-items: stretch;
width: 100%;
- border-top: 1px solid rgb(var(--tone-gray-200));
+ border-top: 1px solid var(--token-color-surface-interactive-active);
dl {
display: flex;
padding-bottom: 12px;
@@ -15,7 +15,7 @@
line-height: 1.5em !important;
}
dd {
- color: rgb(var(--tone-gray-400)) !important;
+ color: var(--token-color-foreground-disabled) !important;
}
span {
padding-bottom: 12px;
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/status/index.scss b/ui/packages/consul-ui/app/components/topology-metrics/status/index.scss
index fdf7f23fbf..b9f87fdab6 100644
--- a/ui/packages/consul-ui/app/components/topology-metrics/status/index.scss
+++ b/ui/packages/consul-ui/app/components/topology-metrics/status/index.scss
@@ -2,14 +2,14 @@
.topology-metrics-status-loader {
font-weight: normal;
font-size: 0.875rem;
- color: rgb(var(--tone-gray-500));
+ color: var(--token-color-foreground-faint);
text-align: center;
margin: 0 auto !important;
display: block;
span::before {
@extend %with-info-circle-outline-mask, %as-pseudo;
- background-color: rgb(var(--tone-gray-500));
+ background-color: var(--token-color-foreground-faint);
}
}
diff --git a/ui/packages/consul-ui/app/modifiers/aria-menu.mdx b/ui/packages/consul-ui/app/modifiers/aria-menu.mdx
index 753922f7f5..167e71cf6b 100644
--- a/ui/packages/consul-ui/app/modifiers/aria-menu.mdx
+++ b/ui/packages/consul-ui/app/modifiers/aria-menu.mdx
@@ -56,9 +56,9 @@ In the example below, the Before Trigger and After Trigger don't do anything, th
style={{style-map
(array 'position' 'absolute')
(array 'padding' '1rem')
- (array 'border' '1px solid rgb(var(--tone-gray-500))')
+ (array 'border' '1px solid var(--token-color-foreground-faint)')
(array 'top' '2rem')
- (array 'background-color' 'rgb(var(--tone-gray-000))')
+ (array 'background-color' 'var(--token-color-surface-primary)')
}}
role="menu"
aria-labelledby="trigger"
diff --git a/ui/packages/consul-ui/app/modifiers/css-prop.mdx b/ui/packages/consul-ui/app/modifiers/css-prop.mdx
index 2ddf1bead5..f638fb6e1e 100644
--- a/ui/packages/consul-ui/app/modifiers/css-prop.mdx
+++ b/ui/packages/consul-ui/app/modifiers/css-prop.mdx
@@ -5,9 +5,9 @@ Get the value for a single specific CSS Property from the modified element.
```hbs preview-template
- --red-500: {{this.red}}
+ --token-color-foreground-critical: {{this.red}}
```
diff --git a/ui/packages/consul-ui/app/styles/base/color/README.mdx b/ui/packages/consul-ui/app/styles/base/color/README.mdx
deleted file mode 100644
index 414514316d..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/README.mdx
+++ /dev/null
@@ -1,81 +0,0 @@
-# Colors
-
-All colors for the immediate future should _mostly_ use the following `tone`
-CSS properties, unless:
-
-1. We get around to eventually adding semantic colors names (or adding something else) in which case these docs should be updated.
-2. You are absolutely sure the color you want should never be changed by a theme. These should be very very few and far between so even if we get that wrong it should be easy to update.
-
-`tones` should always using the following form:
-
-```css
-property: rgb(var(--tone-gray-500));
-```
-
-In other words always use `rgb` this gives us the flexibility to easily use these variables with alpha if we ever need to.
-
-```css
-property: rgb(var(--tone-gray-500) / 50);
-```
-
-Currently, alphas are mainly used for shadows. Please avoid the use of alphas for adjusting hues as they can produce unpredictable results. We should be utilizing our pre-defined color palette or adding new colors to it with proper RGB values. If you do need to add a color with alpha, please include a code comment or a self-comment explaining the use case.
-
-Lastly, there is currently one non-color alias group which is `--tone-brand` which is a group of our current brand colors.
-
-
-## %theme-light (default)
-
-```hbs preview-template
-
-{{#each-in this.tones as |prop value|}}
- -
- {{#each-in value as |prop value|}}
-
- {{/each-in}}
-
-{{/each-in}}
-
-```
-
-## %theme-dark
-
-If you need to build something (like a component or view) which begins in 'dark mode', you will need to switch your coloring and use
-
-```css
-%component-name {
- @extend %theme-dark;
-}
-```
-
-```hbs preview-template
-
-{{#each-in this.tones as |prop value|}}
- -
- {{#each-in value as |prop value|}}
-
- {{/each-in}}
-
-{{/each-in}}
-
-```
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/base-variables.scss b/ui/packages/consul-ui/app/styles/base/color/base-variables.scss
deleted file mode 100644
index e88817cda7..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/base-variables.scss
+++ /dev/null
@@ -1,190 +0,0 @@
-:root {
- /* vault */
- --steel-050: 245 246 247;
- --steel-100: 225 228 231;
- --steel-200: 205 211 215;
- --steel-300: 185 193 199;
- --steel-400: 165 176 183;
- --steel-500: 145 159 168;
- --steel-600: 119 131 138;
- --steel-700: 93 102 107;
- --steel-800: 66 73 77;
- --steel-900: 40 44 46;
-
- /* vault refresh */
- --lemon-050: 255 216 20;
- --lemon-100: 255 216 20;
- --lemon-200: 255 216 20;
- --lemon-300: 255 216 20;
- --lemon-400: 255 216 20;
- --lemon-500: 255 216 20;
- --lemon-600: 255 216 20;
- --lemon-700: 255 216 20;
- --lemon-800: 255 216 20;
- --lemon-900: 255 216 20;
-
- /* consul */
- --magenta-050: 249 235 242;
- --magenta-100: 239 196 216;
- --magenta-200: 229 158 190;
- --magenta-300: 218 119 164;
- --magenta-400: 208 80 138;
- --magenta-500: 198 42 113;
- --magenta-600: 158 33 89;
- --magenta-700: 125 26 71;
- --magenta-800: 90 20 52;
- --magenta-900: 54 12 31;
-
- /* consul refresh */
- --strawberry-010: 255 242 248;
- --strawberry-050: 255 242 248;
- --strawberry-100: 248 217 231;
- --strawberry-200: 248 217 231;
- --strawberry-300: 224 126 172;
- --strawberry-400: 224 126 172;
- --strawberry-500: 202 33 113;
- --strawberry-600: 142 19 74;
- --strawberry-700: 142 19 74;
- --strawberry-800: 101 13 52;
- --strawberry-900: 101 13 52;
-
- /* vagrant */
- --cobalt-050: 240 245 255;
- --cobalt-100: 191 212 255;
- --cobalt-200: 138 177 255;
- --cobalt-300: 91 146 255;
- --cobalt-400: 56 122 255;
- --cobalt-500: 21 99 255;
- --cobalt-600: 15 79 209;
- --cobalt-700: 14 64 163;
- --cobalt-800: 10 45 116;
- --cobalt-900: 6 27 70;
-
- /* terraform */
- --indigo-050: 238 237 252;
- --indigo-100: 213 210 247;
- --indigo-200: 174 167 242;
- --indigo-300: 141 131 237;
- --indigo-400: 117 104 232;
- --indigo-500: 92 78 229;
- --indigo-600: 76 64 188;
- --indigo-700: 59 50 146;
- --indigo-800: 42 36 105;
- --indigo-900: 26 22 63;
-
- /* nomad */
- --teal-050: 235 248 243; /*#c3ecdc*/
- --teal-100: 195 236 220; /*#e1e4e7*/
- --teal-200: 155 223 197;
- --teal-300: 116 211 174;
- --teal-400: 76 198 151;
- --teal-500: 37 186 129;
- --teal-600: 31 153 106;
- --teal-700: 24 119 83;
- --teal-800: 17 85 59;
- --teal-900: 11 51 36;
-
- /* packer */
- --cyan-050: 231 248 255;
- --cyan-100: 185 236 255;
- --cyan-200: 139 224 255;
- --cyan-300: 92 211 255;
- --cyan-400: 46 199 255;
- --cyan-500: 0 187 255;
- --cyan-600: 0 159 217;
- --cyan-700: 0 119 163;
- --cyan-800: 0 85 116;
- --cyan-900: 0 51 70;
-
- /* ui */
-
- /* removed to prevent confusion
- --gray-1: #191a1c;
- --gray-2: #323538;
- --gray-3: #4c4f54;
- --gray-4: #656a70;
- --gray-5: #7f858d;
- --gray-6: #9a9ea5;
- --gray-7: #b4b8bc;
- --gray-8: #d0d2d5;
- --gray-9: #ebecee;
- --gray-10: #f3f4f6;
-*/
-
- --gray-010: 251 251 252;
- --gray-050: 247 248 250;
- --gray-100: 235 238 242;
- --gray-150: 235 238 242;
- --gray-200: 220 224 230;
- --gray-300: 186 193 204;
- --gray-400: 142 150 163;
- --gray-500: 111 118 130;
- --gray-600: 98 104 115;
- --gray-700: 82 87 97;
- --gray-800: 55 58 66;
- --gray-850: 44 46 51;
- --gray-900: 31 33 36;
- --gray-950: 21 23 28;
-
- /* status */
- --green-050: 236 247 237;
- --green-100: 198 233 201;
- --green-200: 160 219 165;
- --green-300: 122 204 129;
- --green-400: 84 190 93;
- --green-500: 46 176 57;
- --green-600: 38 145 47;
- --green-700: 30 113 37;
- --green-800: 21 80 26;
- --green-900: 13 48 16;
-
- --blue-010: 251 252 255;
- --blue-050: 240 245 255;
- --blue-100: 191 212 255;
- --blue-200: 138 177 255;
- --blue-300: 91 146 255;
- --blue-400: 56 122 255;
- --blue-500: 21 99 255;
- --blue-600: 15 79 209;
- --blue-700: 14 64 163;
- --blue-800: 10 45 116;
- --blue-900: 6 27 70;
-
- --red-010: 253 250 251;
- --red-050: 249 236 238;
- --red-100: 239 199 204;
- --red-200: 229 162 170;
- --red-300: 219 125 136;
- --red-400: 209 88 102;
- --red-500: 199 52 69;
- --red-600: 163 43 57;
- --red-700: 127 34 44;
- --red-800: 91 24 32;
- --red-900: 55 15 19;
-
- --orange-050: 254 244 236; /*#fa8f37*/
- --orange-100: 253 224 200;
- --orange-200: 252 204 164;
- --orange-300: 251 183 127;
- --orange-400: 250 163 91;
- --orange-500: 250 143 55;
- --orange-600: 205 118 46;
- --orange-700: 160 92 35;
- --orange-800: 114 65 25;
- --orange-900: 69 39 15;
-
- --yellow-050: 255 251 237; /*#fa8f37;*/
- --yellow-100: 253 238 186;
- --yellow-200: 252 228 140;
- --yellow-300: 251 217 94;
- --yellow-400: 250 206 48;
- --yellow-500: 250 196 2;
- --yellow-600: 205 161 2;
- --yellow-700: 160 125 2;
- --yellow-800: 114 90 1;
- --yellow-900: 69 54 1;
-
- --transparent: transparent;
- --white: 255 255 255;
- --black: 0 0 0;
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/hex-variables.scss b/ui/packages/consul-ui/app/styles/base/color/hex-variables.scss
deleted file mode 100644
index d2f7659e10..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/hex-variables.scss
+++ /dev/null
@@ -1,178 +0,0 @@
-:root {
- /* vault */
- --steel-050: #f5f6f7;
- --steel-100: #e1e4e7;
- --steel-200: #cdd3d7;
- --steel-300: #b9c1c7;
- --steel-400: #a5b0b7;
- --steel-500: #919fa8;
- --steel-600: #77838a;
- --steel-700: #5d666b;
- --steel-800: #42494d;
- --steel-900: #282c2e;
-
- /* consul */
- --magenta-050: #f9ebf2;
- --magenta-100: #efc4d8;
- --magenta-200: #e59ebe;
- --magenta-300: #da77a4;
- --magenta-400: #d0508a;
- --magenta-500: #c62a71;
- --magenta-600: #9e2159;
- --magenta-700: #7d1a47;
- --magenta-800: #5a1434;
- --magenta-900: #360c1f;
-
- /* consul refresh */
- --strawberry-010: #fff2f8;
- --strawberry-050: #fff2f8;
- --strawberry-100: #f8d9e7;
- --strawberry-200: #f8d9e7;
- --strawberry-300: #e07eac;
- --strawberry-400: #e07eac;
- --strawberry-500: #ca2171;
- --strawberry-600: #8e134a;
- --strawberry-700: #8e134a;
- --strawberry-800: #650d34;
- --strawberry-900: #650d34;
-
- /* vagrant */
- --cobalt-050: #f0f5ff;
- --cobalt-100: #bfd4ff;
- --cobalt-200: #8ab1ff;
- --cobalt-300: #5b92ff;
- --cobalt-400: #387aff;
- --cobalt-500: #1563ff;
- --cobalt-600: #0f4fd1;
- --cobalt-700: #0e40a3;
- --cobalt-800: #0a2d74;
- --cobalt-900: #061b46;
-
- /* terraform */
- --indigo-050: #eeedfc;
- --indigo-100: #d5d2f7;
- --indigo-200: #aea7f2;
- --indigo-300: #8d83ed;
- --indigo-400: #7568e8;
- --indigo-500: #5c4ee5;
- --indigo-600: #4c40bc;
- --indigo-700: #3b3292;
- --indigo-800: #2a2469;
- --indigo-900: #1a163f;
-
- /* nomad */
- --teal-050: #ebf8f3;/*#c3ecdc*/;
- --teal-100: #c3ecdc;/*#e1e4e7*/;
- --teal-200: #9bdfc5;
- --teal-300: #74d3ae;
- --teal-400: #4cc697;
- --teal-500: #25ba81;
- --teal-600: #1f996a;
- --teal-700: #187753;
- --teal-800: #11553b;
- --teal-900: #0b3324;
-
- /* packer */
- --cyan-050: #e7f8ff;
- --cyan-100: #b9ecff;
- --cyan-200: #8be0ff;
- --cyan-300: #5cd3ff;
- --cyan-400: #2ec7ff;
- --cyan-500: #00bbff;
- --cyan-600: #009fd9;
- --cyan-700: #0077a3;
- --cyan-800: #005574;
- --cyan-900: #003346;
-
-/* ui */
-
-/* removed to prevent confusion
- --gray-1: #191a1c;
- --gray-2: #323538;
- --gray-3: #4c4f54;
- --gray-4: #656a70;
- --gray-5: #7f858d;
- --gray-6: #9a9ea5;
- --gray-7: #b4b8bc;
- --gray-8: #d0d2d5;
- --gray-9: #ebecee;
- --gray-10: #f3f4f6;
-*/
-
- --gray-010: #fbfbfc;
- --gray-050: #f7f8fa;
- --gray-100: #ebeef2;
- --gray-150: #ebeef2;
- --gray-200: #dce0e6;
- --gray-300: #bac1cc;
- --gray-400: #8e96a3;
- --gray-500: #6f7682;
- --gray-600: #626873;
- --gray-700: #525761;
- --gray-800: #373a42;
- --gray-850: #2c2e33;
- --gray-900: #1f2124;
- --gray-950: #15171c;
-
-/* status */
- --green-050: #ecf7ed;
- --green-100: #c6e9c9;
- --green-200: #a0dba5;
- --green-300: #7acc81;
- --green-400: #54be5d;
- --green-500: #2eb039;
- --green-600: #26912f;
- --green-700: #1e7125;
- --green-800: #15501a;
- --green-900: #0d3010;
-
- --blue-010: #fbfcff;
- --blue-050: #f0f5ff;
- --blue-100: #bfd4ff;
- --blue-200: #8ab1ff;
- --blue-300: #5b92ff;
- --blue-400: #387aff;
- --blue-500: #1563ff;
- --blue-600: #0f4fd1;
- --blue-700: #0e40a3;
- --blue-800: #0a2d74;
- --blue-900: #061b46;
-
- --red-010: #fdfafb;
- --red-050: #f9ecee;
- --red-100: #efc7cc;
- --red-200: #e5a2aa;
- --red-300: #db7d88;
- --red-400: #d15866;
- --red-500: #c73445;
- --red-600: #a32b39;
- --red-700: #7f222c;
- --red-800: #5b1820;
- --red-900: #370f13;
-
- --orange-050: #fef4ec;/*#fa8f37*/;
- --orange-100: #fde0c8;
- --orange-200: #fccca4;
- --orange-300: #fbb77f;
- --orange-400: #faa35b;
- --orange-500: #fa8f37;
- --orange-600: #cd762e;
- --orange-700: #a05c23;
- --orange-800: #724119;
- --orange-900: #45270f;
-
- --yellow-050: #fffbed;/*#fa8f37;*/
- --yellow-100: #fdeeba;
- --yellow-200: #fce48c;
- --yellow-300: #fbd95e;
- --yellow-400: #face30;
- --yellow-500: #fac402;
- --yellow-600: #cda102;
- --yellow-700: #a07d02;
- --yellow-800: #725a01;
- --yellow-900: #453601;
-
- --transparent: transparent;
- --white: #fff;
- --black: #000;
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/index.scss b/ui/packages/consul-ui/app/styles/base/color/index.scss
index decc200b41..ba12227c0a 100644
--- a/ui/packages/consul-ui/app/styles/base/color/index.scss
+++ b/ui/packages/consul-ui/app/styles/base/color/index.scss
@@ -1,7 +1,2 @@
-/*@import './hex-variables';*/
-@import './base-variables';
-/* load in the ui theme */
@import './ui/index';
-/* other themes should be added at a project level */
@import './semantic-variables';
-/*@import './theme-placeholders';*/
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/frame-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/frame-placeholders.scss
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/index.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/index.scss
deleted file mode 100644
index e62440c7cb..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/lemon/index.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import './themes/light';
-@import './themes/dark';
-@import './themes/light-high-contrast';
-@import './themes/dark-high-contrast';
-@import './frame-placeholders';
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark-high-contrast.scss
deleted file mode 100644
index d57568f4a9..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark-high-contrast.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-%theme-dark-high-contrast {
- --tone-lemon-000: var(--white);
- --tone-lemon-050: var(--lemon-050);
- --tone-lemon-100: var(--lemon-100);
- --tone-lemon-150: var(--lemon-150);
- --tone-lemon-200: var(--lemon-200);
- --tone-lemon-300: var(--lemon-300);
- --tone-lemon-400: var(--lemon-400);
- --tone-lemon-500: var(--lemon-500);
- --tone-lemon-600: var(--lemon-600);
- --tone-lemon-700: var(--lemon-700);
- --tone-lemon-800: var(--lemon-800);
- --tone-lemon-850: var(--lemon-850);
- --tone-lemon-900: var(--lemon-900);
- --tone-lemon-950: var(--lemon-950);
- --tone-lemon-999: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark.scss
deleted file mode 100644
index be9f8551e5..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/dark.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-%theme-dark {
- --tone-lemon-000: var(--white);
- --tone-lemon-050: var(--lemon-050);
- --tone-lemon-100: var(--lemon-100);
- --tone-lemon-150: var(--lemon-150);
- --tone-lemon-200: var(--lemon-200);
- --tone-lemon-300: var(--lemon-300);
- --tone-lemon-400: var(--lemon-400);
- --tone-lemon-500: var(--lemon-500);
- --tone-lemon-600: var(--lemon-600);
- --tone-lemon-700: var(--lemon-700);
- --tone-lemon-800: var(--lemon-800);
- --tone-lemon-850: var(--lemon-850);
- --tone-lemon-900: var(--lemon-900);
- --tone-lemon-950: var(--lemon-950);
- --tone-lemon-999: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light-high-contrast.scss
deleted file mode 100644
index 5a7fac0f04..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light-high-contrast.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-%theme-light-high-contrast {
- --tone-lemon-000: var(--white);
- --tone-lemon-050: var(--lemon-050);
- --tone-lemon-100: var(--lemon-100);
- --tone-lemon-150: var(--lemon-150);
- --tone-lemon-200: var(--lemon-200);
- --tone-lemon-300: var(--lemon-300);
- --tone-lemon-400: var(--lemon-400);
- --tone-lemon-500: var(--lemon-500);
- --tone-lemon-600: var(--lemon-600);
- --tone-lemon-700: var(--lemon-700);
- --tone-lemon-800: var(--lemon-800);
- --tone-lemon-850: var(--lemon-850);
- --tone-lemon-900: var(--lemon-900);
- --tone-lemon-950: var(--lemon-950);
- --tone-lemon-999: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light.scss b/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light.scss
deleted file mode 100644
index 4e937d5cf5..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/lemon/themes/light.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-%theme-light {
- --tone-lemon-000: var(--white);
- --tone-lemon-050: var(--lemon-050);
- --tone-lemon-100: var(--lemon-100);
- --tone-lemon-150: var(--lemon-150);
- --tone-lemon-200: var(--lemon-200);
- --tone-lemon-300: var(--lemon-300);
- --tone-lemon-400: var(--lemon-400);
- --tone-lemon-500: var(--lemon-500);
- --tone-lemon-600: var(--lemon-600);
- --tone-lemon-700: var(--lemon-700);
- --tone-lemon-800: var(--lemon-800);
- --tone-lemon-850: var(--lemon-850);
- --tone-lemon-900: var(--lemon-900);
- --tone-lemon-950: var(--lemon-950);
- --tone-lemon-999: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/frame-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/frame-placeholders.scss
deleted file mode 100644
index 9e380b4b32..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/frame-placeholders.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-%frame-magenta-300 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-magenta-600));
- color: rgb(var(--tone-magenta-600));
-}
-%frame-magenta-800 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-magenta-500));
- border-color: rgb(var(--tone-magenta-800));
- color: rgb(var(--tone-gray-000));
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/index.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/index.scss
deleted file mode 100644
index 3948997e77..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/index.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import './themes/light';
-@import './themes/dark';
-@import './themes/light-high-contrast';
-@import './themes/dark-high-contrast';
-@import './frame-placeholders';
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark-high-contrast.scss
deleted file mode 100644
index 53a1d2077f..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark-high-contrast.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-dark-low-contrast {
- --tone-magenta-000: var(--white);
- --tone-magenta-050: var(--magenta-050);
- --tone-magenta-100: var(--magenta-100);
- --tone-magenta-150: var(--magenta-150);
- --tone-magenta-200: var(--magenta-200);
- --tone-magenta-300: var(--magenta-300);
- --tone-magenta-400: var(--magenta-400);
- --tone-magenta-500: var(--magenta-500);
- --tone-magenta-600: var(--magenta-600);
- --tone-magenta-700: var(--magenta-700);
- --tone-magenta-800: var(--magenta-800);
- --tone-magenta-850: var(--magenta-850);
- --tone-magenta-900: var(--magenta-900);
- --tone-magenta-950: var(--magenta-950);
- --tone-magenta-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark.scss
deleted file mode 100644
index 85a300e4a9..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/dark.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-dark {
- --tone-magenta-000: var(--white);
- --tone-magenta-050: var(--magenta-050);
- --tone-magenta-100: var(--magenta-100);
- --tone-magenta-150: var(--magenta-150);
- --tone-magenta-200: var(--magenta-200);
- --tone-magenta-300: var(--magenta-300);
- --tone-magenta-400: var(--magenta-400);
- --tone-magenta-500: var(--magenta-500);
- --tone-magenta-600: var(--magenta-600);
- --tone-magenta-700: var(--magenta-700);
- --tone-magenta-800: var(--magenta-800);
- --tone-magenta-850: var(--magenta-850);
- --tone-magenta-900: var(--magenta-900);
- --tone-magenta-950: var(--magenta-950);
- --tone-magenta-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light-high-contrast.scss
deleted file mode 100644
index bc0d03a80c..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light-high-contrast.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-light {
- --tone-magenta-000: var(--white);
- --tone-magenta-050: var(--magenta-050);
- --tone-magenta-100: var(--magenta-100);
- --tone-magenta-150: var(--magenta-150);
- --tone-magenta-200: var(--magenta-200);
- --tone-magenta-300: var(--magenta-300);
- --tone-magenta-400: var(--magenta-400);
- --tone-magenta-500: var(--magenta-500);
- --tone-magenta-600: var(--magenta-600);
- --tone-magenta-700: var(--magenta-700);
- --tone-magenta-800: var(--magenta-800);
- --tone-magenta-850: var(--magenta-850);
- --tone-magenta-900: var(--magenta-900);
- --tone-magenta-950: var(--magenta-950);
- --tone-magenta-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light.scss b/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light.scss
deleted file mode 100644
index 9c589e09ed..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/magenta/themes/light.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-light-high-contrast {
- --tone-magenta-000: var(--white);
- --tone-magenta-050: var(--magenta-050);
- --tone-magenta-100: var(--magenta-100);
- --tone-magenta-150: var(--magenta-150);
- --tone-magenta-200: var(--magenta-200);
- --tone-magenta-300: var(--magenta-300);
- --tone-magenta-400: var(--magenta-400);
- --tone-magenta-500: var(--magenta-500);
- --tone-magenta-600: var(--magenta-600);
- --tone-magenta-700: var(--magenta-700);
- --tone-magenta-800: var(--magenta-800);
- --tone-magenta-850: var(--magenta-850);
- --tone-magenta-900: var(--magenta-900);
- --tone-magenta-950: var(--magenta-950);
- --tone-magenta-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/semantic-variables.scss b/ui/packages/consul-ui/app/styles/base/color/semantic-variables.scss
index 0681962e45..cbe413d8b3 100644
--- a/ui/packages/consul-ui/app/styles/base/color/semantic-variables.scss
+++ b/ui/packages/consul-ui/app/styles/base/color/semantic-variables.scss
@@ -1,27 +1,4 @@
:root {
- --color-primary: var(--tone-blue-500);
- --color-dangerous: var(--tone-red-500);
- --color-primary-disabled: var(--tone-blue-500);
-
- --color-neutral: var(--tone-gray-500);
- --color-action: var(--tone-blue-500);
- --color-info: var(--tone-blue-500);
- /*--color-active: var(--tone-blue-500); ?? form pre-focus*/
- --color-success: var(--tone-green-500);
- --color-failure: var(--tone-red-500);
- --color-danger: var(--tone-red-500);
- --color-warning: var(--tone-yellow-500);
- --color-alert: var(--tone-orange-500);
-
- /* --color-keyline-000: var(--white); */
- /* --color-keyline-050: var(); */
- /* --color-keyline-100: var(--gray-100); */
- /* --color-keyline-200: var(--gray-200); */
- /* --color-keyline-300: var(--gray-300); */
- /* --color-keyline-400: var(--gray-400); */
- /* --color-keyline-500: var(--gray-500); */
- /* --color-keyline-600: var(--gray-600); */
- /* --color-keyline-700: var(); */
- /* --color-keyline-800: var(); */
- /* --color-keyline-900: var(--black); */
+ --color-info: var(--token-color-foreground-action);
+ --color-alert: var(--token-color-palette-amber-200);
}
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/frame-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/frame-placeholders.scss
deleted file mode 100644
index 589850244c..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/frame-placeholders.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-%frame-strawberry-300 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-strawberry-600));
- color: rgb(var(--tone-strawberry-600));
-}
-%frame-strawberry-800 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-strawberry-500));
- border-color: rgb(var(--tone-strawberry-800));
- color: rgb(var(--tone-gray-000));
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/index.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/index.scss
deleted file mode 100644
index 3948997e77..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/index.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import './themes/light';
-@import './themes/dark';
-@import './themes/light-high-contrast';
-@import './themes/dark-high-contrast';
-@import './frame-placeholders';
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark-high-contrast.scss
deleted file mode 100644
index 8a86b9d9c5..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark-high-contrast.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-dark-high-contrast {
- --tone-strawberry-000: var(--white);
- --tone-strawberry-050: var(--strawberry-050);
- --tone-strawberry-100: var(--strawberry-100);
- --tone-strawberry-150: var(--strawberry-150);
- --tone-strawberry-200: var(--strawberry-200);
- --tone-strawberry-300: var(--strawberry-300);
- --tone-strawberry-400: var(--strawberry-400);
- --tone-strawberry-500: var(--strawberry-500);
- --tone-strawberry-600: var(--strawberry-600);
- --tone-strawberry-700: var(--strawberry-700);
- --tone-strawberry-800: var(--strawberry-800);
- --tone-strawberry-850: var(--strawberry-850);
- --tone-strawberry-900: var(--strawberry-900);
- --tone-strawberry-950: var(--strawberry-950);
- --tone-strawberry-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark.scss
deleted file mode 100644
index ff204b2adc..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/dark.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-dark {
- --tone-strawberry-000: var(--white);
- --tone-strawberry-050: var(--strawberry-050);
- --tone-strawberry-100: var(--strawberry-100);
- --tone-strawberry-150: var(--strawberry-150);
- --tone-strawberry-200: var(--strawberry-200);
- --tone-strawberry-300: var(--strawberry-300);
- --tone-strawberry-400: var(--strawberry-400);
- --tone-strawberry-500: var(--strawberry-500);
- --tone-strawberry-600: var(--strawberry-600);
- --tone-strawberry-700: var(--strawberry-700);
- --tone-strawberry-800: var(--strawberry-800);
- --tone-strawberry-850: var(--strawberry-850);
- --tone-strawberry-900: var(--strawberry-900);
- --tone-strawberry-950: var(--strawberry-950);
- --tone-strawberry-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light-high-contrast.scss
deleted file mode 100644
index ccd2b783b5..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light-high-contrast.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-light-high-contrast {
- --tone-strawberry-000: var(--white);
- --tone-strawberry-050: var(--strawberry-050);
- --tone-strawberry-100: var(--strawberry-100);
- --tone-strawberry-150: var(--strawberry-150);
- --tone-strawberry-200: var(--strawberry-200);
- --tone-strawberry-300: var(--strawberry-300);
- --tone-strawberry-400: var(--strawberry-400);
- --tone-strawberry-500: var(--strawberry-500);
- --tone-strawberry-600: var(--strawberry-600);
- --tone-strawberry-700: var(--strawberry-700);
- --tone-strawberry-800: var(--strawberry-800);
- --tone-strawberry-850: var(--strawberry-850);
- --tone-strawberry-900: var(--strawberry-900);
- --tone-strawberry-950: var(--strawberry-950);
- --tone-strawberry-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light.scss b/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light.scss
deleted file mode 100644
index 4efb00acd9..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/strawberry/themes/light.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-%theme-light {
- --tone-strawberry-000: var(--white);
- --tone-strawberry-050: var(--strawberry-050);
- --tone-strawberry-100: var(--strawberry-100);
- --tone-strawberry-150: var(--strawberry-150);
- --tone-strawberry-200: var(--strawberry-200);
- --tone-strawberry-300: var(--strawberry-300);
- --tone-strawberry-400: var(--strawberry-400);
- --tone-strawberry-500: var(--strawberry-500);
- --tone-strawberry-600: var(--strawberry-600);
- --tone-strawberry-700: var(--strawberry-700);
- --tone-strawberry-800: var(--strawberry-800);
- --tone-strawberry-850: var(--strawberry-850);
- --tone-strawberry-900: var(--strawberry-900);
- --tone-strawberry-950: var(--strawberry-950);
- --tone-strawberry-999: var(--black);
-}
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/theme-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/theme-placeholders.scss
deleted file mode 100644
index 6dfb551aff..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/theme-placeholders.scss
+++ /dev/null
@@ -1,91 +0,0 @@
-%theme-light {
- --tone-gray-000: var(--white);
- --tone-gray-050: var(--gray-050);
- --tone-gray-100: var(--gray-100);
- --tone-gray-150: var(--gray-150);
- --tone-gray-200: var(--gray-200);
- --tone-gray-300: var(--gray-300);
- --tone-gray-400: var(--gray-400);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--gray-600);
- --tone-gray-700: var(--gray-700);
- --tone-gray-800: var(--gray-800);
- --tone-gray-850: var(--gray-850);
- --tone-gray-900: var(--gray-900);
- --tone-gray-950: var(--gray-950);
- --tone-gray-999: var(--black);
-
- --tone-blue-500: var(--blue-500);
-
- --tone-transparent: var(--transparent);
-}
-
-%theme-high-contrast {
- --tone-transparent: var(--transparent);
-}
-%theme-low-contrast {
- --tone-transparent: var(--transparent);
-}
-%theme-light-low-contrast {
- --tone-transparent: var(--transparent);
-}
-%theme-dark-low-contrast {
- --tone-transparent: var(--transparent);
-}
-%theme-light-high-contrast {
- --tone-gray-000: var(--white);
- --tone-gray-050: var(--white);
- --tone-gray-100: var(--white);
- --tone-gray-150: var(--white);
- --tone-gray-200: var(--white);
- --tone-gray-300: var(--white);
- --tone-gray-400: var(--white);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--black);
- --tone-gray-700: var(--black);
- --tone-gray-800: var(--black);
- --tone-gray-850: var(--black);
- --tone-gray-900: var(--black);
- --tone-gray-950: var(--black);
- --tone-gray-999: var(--black);
-
- --tone-transparent: var(--transparent);
-}
-%theme-dark-high-contrast {
- --tone-gray-000: var(--black);
- --tone-gray-050: var(--black);
- --tone-gray-100: var(--black);
- --tone-gray-150: var(--black);
- --tone-gray-200: var(--black);
- --tone-gray-300: var(--black);
- --tone-gray-400: var(--black);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--white);
- --tone-gray-700: var(--white);
- --tone-gray-800: var(--white);
- --tone-gray-850: var(--white);
- --tone-gray-900: var(--white);
- --tone-gray-950: var(--white);
- --tone-gray-999: var(--white);
-
- --tone-transparent: var(--transparent);
-}
-%theme-dark {
- --tone-gray-000: var(--$black);
- --tone-gray-050: var(--$gray-950);
- --tone-gray-100: var(--$gray-900);
- --tone-gray-150: var(--$gray-850);
- --tone-gray-200: var(--$gray-800);
- --tone-gray-300: var(--$gray-700);
- --tone-gray-400: var(--$gray-600);
- --tone-gray-500: var(--$gray-500);
- --tone-gray-600: var(--$gray-400);
- --tone-gray-700: var(--$gray-300);
- --tone-gray-800: var(--$gray-200);
- --tone-gray-850: var(--$gray-150);
- --tone-gray-900: var(--$gray-100);
- --tone-gray-950: var(--$gray-050);
- --tone-gray-999: var(--$white);
-
- --tone-transparent: var(--transparent);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/frame-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/ui/frame-placeholders.scss
index 4f0cf22e0f..e82ba9d33f 100644
--- a/ui/packages/consul-ui/app/styles/base/color/ui/frame-placeholders.scss
+++ b/ui/packages/consul-ui/app/styles/base/color/ui/frame-placeholders.scss
@@ -6,182 +6,156 @@
/* same as decor-border-000 - but need to think about being able to import color on its own*/
border-style: solid;
}
-%frame-brand-300 {
- @extend %frame-border-000;
- background-color: var(--transparent);
- border-color: rgb(var(--decor-brand-600));
- color: rgb(var(--typo-brand-600));
-}
/* possibly filter bar */
/* modal close button */
%frame-gray-050 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-050));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-400));
-}
-/* modal main content */
-%frame-gray-100 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-600)); /* wasn't set */
-}
-/* hover */
-%frame-gray-200 {
- @extend %frame-border-000;
- background-color: var(--transparent);
- border-color: rgb(var(--tone-gray-700));
- color: rgb(var(--tone-gray-800));
+ background-color: var(--token-color-surface-strong);
+ border-color: var(--token-color-palette-neutral-300);
+ color: var(--token-color-foreground-disabled);
}
+/* button focus */
%frame-gray-300 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-gray-700));
- color: rgb(var(--tone-gray-800));
+ background-color: var(--token-color-surface-primary);
+ border-color: var(--token-color-foreground-faint);
+ color: var(--token-color-foreground-primary);
}
-/* button */
-/**/
+/* button secondary*/
%frame-gray-400 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-050));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-800));
-}
-%frame-gray-500 {
- @extend %frame-border-000;
- background-color: rgb(var(--tone-gray-050));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-400));
+ background-color: var(--token-color-surface-strong);
+ border-color: var(--token-color-palette-neutral-300);
+ color: var(--token-color-foreground-primary);
}
/* tabs */
%frame-gray-600 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-100));
- border-color: rgb(var(--tone-gray-500));
- color: rgb(var(--tone-gray-500));
+ background-color: var(--token-color-surface-strong);
+ border-color: var(--token-color-foreground-faint);
+ color: var(--token-color-foreground-primary);
}
-/* active */
+/* button active */
%frame-gray-700 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-200));
- border-color: rgb(var(--tone-gray-700));
- color: rgb(var(--tone-gray-800));
+ background-color: var(--token-color-surface-interactive-active);
+ border-color: var(--token-color-foreground-faint);
+ color: var(--token-color-foreground-primary);
}
/* modal bars */
%frame-gray-800 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-050));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-900));
+ background-color: var(--token-color-surface-strong);
+ border-color: var(--token-color-palette-neutral-300);
+ color: var(--token-color-foreground-strong);
}
%frame-gray-900 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-100));
- border-color: rgb(var(--tone-gray-300));
- color: rgb(var(--tone-gray-900));
+ background-color: var(--token-color-surface-strong);
+ border-color: var(--token-color-palette-neutral-300);
+ color: var(--token-color-foreground-strong);
}
%frame-yellow-500 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-yellow-050));
- border-color: rgb(var(--tone-yellow-500));
+ background-color: var(--token-color-vault-gradient-faint-start);
+ border-color: var(--token-color-vault-brand);
}
%frame-yellow-800 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-yellow-500));
- border-color: rgb(var(--tone-yellow-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-vault-brand);
+ border-color: var(--token-color-vault-foreground);
+ color: var(--token-color-surface-primary);
}
%frame-green-500 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-green-050));
- border-color: rgb(var(--tone-green-500));
- color: rgb(var(--tone-green-500));
+ background-color: var(--token-color-surface-success);
+ border-color: var(--token-color-foreground-success);
+ color: var(--token-color-foreground-success);
}
%frame-green-800 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-green-500));
- border-color: rgb(var(--tone-green-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-success);
+ border-color: var(--token-color-palette-green-400);
+ color: var(--token-color-surface-primary);
}
%frame-blue-200 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-blue-300));
- color: rgb(var(--tone-blue-300));
+ background-color: var(--token-color-surface-primary);
+ border-color: var(--token-color-foreground-action);
+ color: var(--token-color-foreground-action);
}
%frame-blue-300 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-gray-000));
- border-color: rgb(var(--tone-blue-500));
- color: rgb(var(--tone-blue-500));
+ background-color: var(--token-color-surface-primary);
+ border-color: var(--token-color-foreground-action);
+ color: var(--token-color-foreground-action);
}
%frame-blue-500 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-blue-050));
- border-color: rgb(var(--tone-blue-500));
- color: rgb(var(--tone-blue-800));
+ background-color: var(--token-color-surface-action);
+ border-color: var(--token-color-foreground-action);
+ color: var(--token-color-palette-blue-500);
}
%frame-blue-600 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-blue-200));
- border-color: rgb(var(--tone-gray-400));
- color: rgb(var(--tone-blue-050));
+ background-color: var(--token-color-border-action);
+ border-color: var(--token-color-foreground-disabled);
+ color: var(--token-color-surface-action);
}
%frame-blue-700 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-blue-400));
- border-color: rgb(var(--tone-blue-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-action);
+ border-color: var(--token-color-palette-blue-500);
+ color: var(--token-color-surface-primary);
}
%frame-blue-800 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-blue-500));
- border-color: rgb(var(--tone-blue-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-action);
+ border-color: var(--token-color-palette-blue-500);
+ color: var(--token-color-surface-primary);
}
%frame-blue-900 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-blue-700));
- border-color: rgb(var(--tone-blue-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-action-active);
+ border-color: var(--token-color-palette-blue-500);
+ color: var(--token-color-surface-primary);
}
%frame-red-300 {
@extend %frame-border-000;
- background-color: var(--transparent);
- border-color: rgb(var(--tone-red-500));
- color: rgb(var(--tone-red-500));
+ background-color: transparent;
+ border-color: var(--token-color-foreground-critical);
+ color: var(--token-color-foreground-critical);
}
%frame-red-500 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-red-050));
- border-color: rgb(var(--tone-red-500));
- color: rgb(var(--tone-red-800));
+ background-color: var(--token-color-surface-critical);
+ border-color: var(--token-color-foreground-critical);
+ color: var(--token-color-foreground-critical-high-contrast);
}
%frame-red-600 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-red-200));
- border-color: rgb(var(--tone-gray-400));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-border-critical);
+ border-color: var(--token-color-foreground-disabled);
+ color: var(--token-color-surface-primary);
}
%frame-red-700 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-red-500));
- border-color: rgb(var(--tone-red-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-critical);
+ border-color: var(--token-color-foreground-critical-high-contrast);
+ color: var(--token-color-surface-primary);
}
%frame-red-800 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-red-500));
- border-color: rgb(var(--tone-red-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-foreground-critical);
+ border-color: var(--token-color-foreground-critical-high-contrast);
+ color: var(--token-color-surface-primary);
}
%frame-red-900 {
@extend %frame-border-000;
- background-color: rgb(var(--tone-red-700));
- border-color: rgb(var(--tone-red-800));
- color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-palette-red-400);
+ border-color: var(--token-color-foreground-critical-high-contrast);
+ color: var(--token-color-surface-primary);
}
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/index.scss b/ui/packages/consul-ui/app/styles/base/color/ui/index.scss
index 3948997e77..b76ccea196 100644
--- a/ui/packages/consul-ui/app/styles/base/color/ui/index.scss
+++ b/ui/packages/consul-ui/app/styles/base/color/ui/index.scss
@@ -1,6 +1 @@
-@import './themes/light';
-@import './themes/dark';
-@import './themes/light-high-contrast';
-@import './themes/dark-high-contrast';
@import './frame-placeholders';
-
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark-high-contrast.scss
deleted file mode 100644
index 0c815c10f7..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark-high-contrast.scss
+++ /dev/null
@@ -1,99 +0,0 @@
-%theme-dark-high-contrast {
- --tone-gray-000: var(--black);
- --tone-gray-050: var(--black);
- --tone-gray-100: var(--black);
- --tone-gray-150: var(--black);
- --tone-gray-200: var(--black);
- --tone-gray-300: var(--black);
- --tone-gray-400: var(--black);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--white);
- --tone-gray-700: var(--white);
- --tone-gray-800: var(--white);
- --tone-gray-850: var(--white);
- --tone-gray-900: var(--white);
- --tone-gray-950: var(--white);
- --tone-gray-999: var(--white);
-
- --tone-green-000: var(--white);
- --tone-green-050: var(--green-050);
- --tone-green-100: var(--green-100);
- --tone-green-150: var(--green-150);
- --tone-green-200: var(--green-200);
- --tone-green-300: var(--green-300);
- --tone-green-400: var(--green-400);
- --tone-green-500: var(--green-500);
- --tone-green-600: var(--green-600);
- --tone-green-700: var(--green-700);
- --tone-green-800: var(--green-800);
- --tone-green-850: var(--green-850);
- --tone-green-900: var(--green-900);
- --tone-green-950: var(--green-950);
- --tone-green-999: var(--black);
-
- --tone-blue-000: var(--white);
- --tone-blue-050: var(--blue-050);
- --tone-blue-100: var(--blue-100);
- --tone-blue-150: var(--blue-150);
- --tone-blue-200: var(--blue-200);
- --tone-blue-300: var(--blue-300);
- --tone-blue-400: var(--blue-400);
- --tone-blue-500: var(--blue-500);
- --tone-blue-600: var(--blue-600);
- --tone-blue-700: var(--blue-700);
- --tone-blue-800: var(--blue-800);
- --tone-blue-850: var(--blue-850);
- --tone-blue-900: var(--blue-900);
- --tone-blue-950: var(--blue-950);
- --tone-blue-999: var(--black);
-
- --tone-red-000: var(--white);
- --tone-red-050: var(--red-050);
- --tone-red-100: var(--red-100);
- --tone-red-150: var(--red-150);
- --tone-red-200: var(--red-200);
- --tone-red-300: var(--red-300);
- --tone-red-400: var(--red-400);
- --tone-red-500: var(--red-500);
- --tone-red-600: var(--red-600);
- --tone-red-700: var(--red-700);
- --tone-red-800: var(--red-800);
- --tone-red-850: var(--red-850);
- --tone-red-900: var(--red-900);
- --tone-red-950: var(--red-950);
- --tone-red-999: var(--black);
-
- --tone-orange-000: var(--white);
- --tone-orange-050: var(--orange-050);
- --tone-orange-100: var(--orange-100);
- --tone-orange-150: var(--orange-150);
- --tone-orange-200: var(--orange-200);
- --tone-orange-300: var(--orange-300);
- --tone-orange-400: var(--orange-400);
- --tone-orange-500: var(--orange-500);
- --tone-orange-600: var(--orange-600);
- --tone-orange-700: var(--orange-700);
- --tone-orange-800: var(--orange-800);
- --tone-orange-850: var(--orange-850);
- --tone-orange-900: var(--orange-900);
- --tone-orange-950: var(--orange-950);
- --tone-orange-999: var(--black);
-
- --tone-yellow-000: var(--white);
- --tone-yellow-050: var(--yellow-050);
- --tone-yellow-100: var(--yellow-100);
- --tone-yellow-150: var(--yellow-150);
- --tone-yellow-200: var(--yellow-200);
- --tone-yellow-300: var(--yellow-300);
- --tone-yellow-400: var(--yellow-400);
- --tone-yellow-500: var(--yellow-500);
- --tone-yellow-600: var(--yellow-600);
- --tone-yellow-700: var(--yellow-700);
- --tone-yellow-800: var(--yellow-800);
- --tone-yellow-850: var(--yellow-850);
- --tone-yellow-900: var(--yellow-900);
- --tone-yellow-950: var(--yellow-950);
- --tone-yellow-999: var(--black);
-
- --tone-transparent: var(--transparent);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark.scss b/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark.scss
deleted file mode 100644
index 27f809fc1b..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/ui/themes/dark.scss
+++ /dev/null
@@ -1,99 +0,0 @@
-%theme-dark {
- --tone-gray-000: var(--black);
- --tone-gray-050: var(--gray-950);
- --tone-gray-100: var(--gray-900);
- --tone-gray-150: var(--gray-850);
- --tone-gray-200: var(--gray-800);
- --tone-gray-300: var(--gray-700);
- --tone-gray-400: var(--gray-600);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--gray-400);
- --tone-gray-700: var(--gray-300);
- --tone-gray-800: var(--gray-200);
- --tone-gray-850: var(--gray-250);
- --tone-gray-900: var(--gray-100);
- --tone-gray-950: var(--gray-050);
- --tone-gray-999: var(--white);
-
- --tone-green-000: var(--white);
- --tone-green-050: var(--green-050);
- --tone-green-100: var(--green-100);
- --tone-green-150: var(--green-150);
- --tone-green-200: var(--green-200);
- --tone-green-300: var(--green-300);
- --tone-green-400: var(--green-400);
- --tone-green-500: var(--green-500);
- --tone-green-600: var(--green-600);
- --tone-green-700: var(--green-700);
- --tone-green-800: var(--green-800);
- --tone-green-850: var(--green-850);
- --tone-green-900: var(--green-900);
- --tone-green-950: var(--green-950);
- --tone-green-999: var(--black);
-
- --tone-blue-000: var(--white);
- --tone-blue-050: var(--blue-050);
- --tone-blue-100: var(--blue-100);
- --tone-blue-150: var(--blue-150);
- --tone-blue-200: var(--blue-200);
- --tone-blue-300: var(--blue-300);
- --tone-blue-400: var(--blue-400);
- --tone-blue-500: var(--blue-500);
- --tone-blue-600: var(--blue-600);
- --tone-blue-700: var(--blue-700);
- --tone-blue-800: var(--blue-800);
- --tone-blue-850: var(--blue-850);
- --tone-blue-900: var(--blue-900);
- --tone-blue-950: var(--blue-950);
- --tone-blue-999: var(--black);
-
- --tone-red-000: var(--white);
- --tone-red-050: var(--red-050);
- --tone-red-100: var(--red-100);
- --tone-red-150: var(--red-150);
- --tone-red-200: var(--red-200);
- --tone-red-300: var(--red-300);
- --tone-red-400: var(--red-400);
- --tone-red-500: var(--red-500);
- --tone-red-600: var(--red-600);
- --tone-red-700: var(--red-700);
- --tone-red-800: var(--red-800);
- --tone-red-850: var(--red-850);
- --tone-red-900: var(--red-900);
- --tone-red-950: var(--red-950);
- --tone-red-999: var(--black);
-
- --tone-orange-000: var(--white);
- --tone-orange-050: var(--orange-050);
- --tone-orange-100: var(--orange-100);
- --tone-orange-150: var(--orange-150);
- --tone-orange-200: var(--orange-200);
- --tone-orange-300: var(--orange-300);
- --tone-orange-400: var(--orange-400);
- --tone-orange-500: var(--orange-500);
- --tone-orange-600: var(--orange-600);
- --tone-orange-700: var(--orange-700);
- --tone-orange-800: var(--orange-800);
- --tone-orange-850: var(--orange-850);
- --tone-orange-900: var(--orange-900);
- --tone-orange-950: var(--orange-950);
- --tone-orange-999: var(--black);
-
- --tone-yellow-000: var(--black);
- --tone-yellow-050: var(--blue-950);
- --tone-yellow-100: var(--yellow-900);
- --tone-yellow-150: var(--yellow-850);
- --tone-yellow-200: var(--yellow-800);
- --tone-yellow-300: var(--yellow-700);
- --tone-yellow-400: var(--yellow-600);
- --tone-yellow-500: var(--yellow-500);
- --tone-yellow-600: var(--yellow-400);
- --tone-yellow-700: var(--yellow-300);
- --tone-yellow-800: var(--yellow-200);
- --tone-yellow-850: var(--yellow-250);
- --tone-yellow-900: var(--yellow-100);
- --tone-yellow-950: var(--yellow-050);
- --tone-yellow-999: var(--white);
-
- --tone-transparent: var(--transparent);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/themes/light-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/ui/themes/light-high-contrast.scss
deleted file mode 100644
index 676de6b15f..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/ui/themes/light-high-contrast.scss
+++ /dev/null
@@ -1,99 +0,0 @@
-%theme-light-high-contrast {
- --tone-gray-000: var(--white);
- --tone-gray-050: var(--white);
- --tone-gray-100: var(--white);
- --tone-gray-150: var(--white);
- --tone-gray-200: var(--white);
- --tone-gray-300: var(--white);
- --tone-gray-400: var(--white);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--black);
- --tone-gray-700: var(--black);
- --tone-gray-800: var(--black);
- --tone-gray-850: var(--black);
- --tone-gray-900: var(--black);
- --tone-gray-950: var(--black);
- --tone-gray-999: var(--black);
-
- --tone-green-000: var(--white);
- --tone-green-050: var(--green-050);
- --tone-green-100: var(--green-100);
- --tone-green-150: var(--green-150);
- --tone-green-200: var(--green-200);
- --tone-green-300: var(--green-300);
- --tone-green-400: var(--green-400);
- --tone-green-500: var(--green-500);
- --tone-green-600: var(--green-600);
- --tone-green-700: var(--green-700);
- --tone-green-800: var(--green-800);
- --tone-green-850: var(--green-850);
- --tone-green-900: var(--green-900);
- --tone-green-950: var(--green-950);
- --tone-green-999: var(--black);
-
- --tone-blue-000: var(--white);
- --tone-blue-050: var(--blue-050);
- --tone-blue-100: var(--blue-100);
- --tone-blue-150: var(--blue-150);
- --tone-blue-200: var(--blue-200);
- --tone-blue-300: var(--blue-300);
- --tone-blue-400: var(--blue-400);
- --tone-blue-500: var(--blue-500);
- --tone-blue-600: var(--blue-600);
- --tone-blue-700: var(--blue-700);
- --tone-blue-800: var(--blue-800);
- --tone-blue-850: var(--blue-850);
- --tone-blue-900: var(--blue-900);
- --tone-blue-950: var(--blue-950);
- --tone-blue-999: var(--black);
-
- --tone-red-000: var(--white);
- --tone-red-050: var(--red-050);
- --tone-red-100: var(--red-100);
- --tone-red-150: var(--red-150);
- --tone-red-200: var(--red-200);
- --tone-red-300: var(--red-300);
- --tone-red-400: var(--red-400);
- --tone-red-500: var(--red-500);
- --tone-red-600: var(--red-600);
- --tone-red-700: var(--red-700);
- --tone-red-800: var(--red-800);
- --tone-red-850: var(--red-850);
- --tone-red-900: var(--red-900);
- --tone-red-950: var(--red-950);
- --tone-red-999: var(--black);
-
- --tone-orange-000: var(--white);
- --tone-orange-050: var(--orange-050);
- --tone-orange-100: var(--orange-100);
- --tone-orange-150: var(--orange-150);
- --tone-orange-200: var(--orange-200);
- --tone-orange-300: var(--orange-300);
- --tone-orange-400: var(--orange-400);
- --tone-orange-500: var(--orange-500);
- --tone-orange-600: var(--orange-600);
- --tone-orange-700: var(--orange-700);
- --tone-orange-800: var(--orange-800);
- --tone-orange-850: var(--orange-850);
- --tone-orange-900: var(--orange-900);
- --tone-orange-950: var(--orange-950);
- --tone-orange-999: var(--black);
-
- --tone-yellow-000: var(--white);
- --tone-yellow-050: var(--yellow-050);
- --tone-yellow-100: var(--yellow-100);
- --tone-yellow-150: var(--yellow-150);
- --tone-yellow-200: var(--yellow-200);
- --tone-yellow-300: var(--yellow-300);
- --tone-yellow-400: var(--yellow-400);
- --tone-yellow-500: var(--yellow-500);
- --tone-yellow-600: var(--yellow-600);
- --tone-yellow-700: var(--yellow-700);
- --tone-yellow-800: var(--yellow-800);
- --tone-yellow-850: var(--yellow-850);
- --tone-yellow-900: var(--yellow-900);
- --tone-yellow-950: var(--yellow-950);
- --tone-yellow-999: var(--black);
-
- --tone-transparent: var(--transparent);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/ui/themes/light.scss b/ui/packages/consul-ui/app/styles/base/color/ui/themes/light.scss
deleted file mode 100644
index 7497280ba0..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/ui/themes/light.scss
+++ /dev/null
@@ -1,99 +0,0 @@
-%theme-light {
- --tone-gray-000: var(--white);
- --tone-gray-050: var(--gray-050);
- --tone-gray-100: var(--gray-100);
- --tone-gray-150: var(--gray-150);
- --tone-gray-200: var(--gray-200);
- --tone-gray-300: var(--gray-300);
- --tone-gray-400: var(--gray-400);
- --tone-gray-500: var(--gray-500);
- --tone-gray-600: var(--gray-600);
- --tone-gray-700: var(--gray-700);
- --tone-gray-800: var(--gray-800);
- --tone-gray-850: var(--gray-850);
- --tone-gray-900: var(--gray-900);
- --tone-gray-950: var(--gray-950);
- --tone-gray-999: var(--black);
-
- --tone-green-000: var(--white);
- --tone-green-050: var(--green-050);
- --tone-green-100: var(--green-100);
- --tone-green-150: var(--green-150);
- --tone-green-200: var(--green-200);
- --tone-green-300: var(--green-300);
- --tone-green-400: var(--green-400);
- --tone-green-500: var(--green-500);
- --tone-green-600: var(--green-600);
- --tone-green-700: var(--green-700);
- --tone-green-800: var(--green-800);
- --tone-green-850: var(--green-850);
- --tone-green-900: var(--green-900);
- --tone-green-950: var(--green-950);
- --tone-green-999: var(--black);
-
- --tone-blue-000: var(--white);
- --tone-blue-050: var(--blue-050);
- --tone-blue-100: var(--blue-100);
- --tone-blue-150: var(--blue-150);
- --tone-blue-200: var(--blue-200);
- --tone-blue-300: var(--blue-300);
- --tone-blue-400: var(--blue-400);
- --tone-blue-500: var(--blue-500);
- --tone-blue-600: var(--blue-600);
- --tone-blue-700: var(--blue-700);
- --tone-blue-800: var(--blue-800);
- --tone-blue-850: var(--blue-850);
- --tone-blue-900: var(--blue-900);
- --tone-blue-950: var(--blue-950);
- --tone-blue-999: var(--black);
-
- --tone-red-000: var(--white);
- --tone-red-050: var(--red-050);
- --tone-red-100: var(--red-100);
- --tone-red-150: var(--red-150);
- --tone-red-200: var(--red-200);
- --tone-red-300: var(--red-300);
- --tone-red-400: var(--red-400);
- --tone-red-500: var(--red-500);
- --tone-red-600: var(--red-600);
- --tone-red-700: var(--red-700);
- --tone-red-800: var(--red-800);
- --tone-red-850: var(--red-850);
- --tone-red-900: var(--red-900);
- --tone-red-950: var(--red-950);
- --tone-red-999: var(--black);
-
- --tone-orange-000: var(--white);
- --tone-orange-050: var(--orange-050);
- --tone-orange-100: var(--orange-100);
- --tone-orange-150: var(--orange-150);
- --tone-orange-200: var(--orange-200);
- --tone-orange-300: var(--orange-300);
- --tone-orange-400: var(--orange-400);
- --tone-orange-500: var(--orange-500);
- --tone-orange-600: var(--orange-600);
- --tone-orange-700: var(--orange-700);
- --tone-orange-800: var(--orange-800);
- --tone-orange-850: var(--orange-850);
- --tone-orange-900: var(--orange-900);
- --tone-orange-950: var(--orange-950);
- --tone-orange-999: var(--black);
-
- --tone-yellow-000: var(--white);
- --tone-yellow-050: var(--yellow-050);
- --tone-yellow-100: var(--yellow-100);
- --tone-yellow-150: var(--yellow-150);
- --tone-yellow-200: var(--yellow-200);
- --tone-yellow-300: var(--yellow-300);
- --tone-yellow-400: var(--yellow-400);
- --tone-yellow-500: var(--yellow-500);
- --tone-yellow-600: var(--yellow-600);
- --tone-yellow-700: var(--yellow-700);
- --tone-yellow-800: var(--yellow-800);
- --tone-yellow-850: var(--yellow-850);
- --tone-yellow-900: var(--yellow-900);
- --tone-yellow-950: var(--yellow-950);
- --tone-yellow-999: var(--black);
-
- --tone-transparent: var(--transparent);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/frame-placeholders.scss b/ui/packages/consul-ui/app/styles/base/color/vault/frame-placeholders.scss
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/index.scss b/ui/packages/consul-ui/app/styles/base/color/vault/index.scss
deleted file mode 100644
index 74aa4c7b11..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/vault/index.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import '../lemon';
-@import './themes/light';
-@import './themes/dark';
-@import './themes/light-high-contrast';
-@import './themes/dark-high-contrast';
-@import './frame-placeholders';
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark-high-contrast.scss
deleted file mode 100644
index 00bcce3c6c..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark-high-contrast.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-%theme-dark-high-contrast {
- --tone-vault-500: var(--lemon-500);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark.scss b/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark.scss
deleted file mode 100644
index d873db1590..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/vault/themes/dark.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-%theme-dark {
- --tone-vault-500: var(--lemon-500);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/themes/light-high-contrast.scss b/ui/packages/consul-ui/app/styles/base/color/vault/themes/light-high-contrast.scss
deleted file mode 100644
index cac38c06a0..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/vault/themes/light-high-contrast.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-%theme-light-high-contrast {
- --tone-vault-500: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/color/vault/themes/light.scss b/ui/packages/consul-ui/app/styles/base/color/vault/themes/light.scss
deleted file mode 100644
index 669ed33f7e..0000000000
--- a/ui/packages/consul-ui/app/styles/base/color/vault/themes/light.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-%theme-light {
- --tone-vault-500: var(--black);
-}
diff --git a/ui/packages/consul-ui/app/styles/base/decoration/base-variables.scss b/ui/packages/consul-ui/app/styles/base/decoration/base-variables.scss
index d2ee83711c..83f8309879 100644
--- a/ui/packages/consul-ui/app/styles/base/decoration/base-variables.scss
+++ b/ui/packages/consul-ui/app/styles/base/decoration/base-variables.scss
@@ -13,13 +13,4 @@
--decor-border-200: 2px solid;
--decor-border-300: 3px solid;
--decor-border-400: 4px solid;
-
- /* box-shadowing*/
- --decor-elevation-000: none;
- --decor-elevation-100: 0 3px 2px rgb(var(--black) / 6%);
- --decor-elevation-200: 0 2px 4px rgb(var(--black) / 10%);
- --decor-elevation-300: 0 5px 1px -2px rgb(var(--black) / 12%);
- --decor-elevation-400: 0 6px 8px -2px rgb(var(--black) / 5%), 0 8px 4px -4px rgb(var(--black) / 10%);
- --decor-elevation-600: 0 12px 5px -7px rgb(var(--black) / 8%), 0 11px 10px -3px rgb(var(--black) / 10%);
- --decor-elevation-800: 0 16px 6px -10px rgb(var(--black) / 6%), 0 16px 16px -4px rgb(var(--black) / 20%);
}
diff --git a/ui/packages/consul-ui/app/styles/base/icons/README.mdx b/ui/packages/consul-ui/app/styles/base/icons/README.mdx
index 4193e40fc3..9b7681b747 100644
--- a/ui/packages/consul-ui/app/styles/base/icons/README.mdx
+++ b/ui/packages/consul-ui/app/styles/base/icons/README.mdx
@@ -44,7 +44,7 @@ selectors.
```css
.selector::after {
--icon-name: icon-alert-circle;
- --icon-color: rgb(var(---white));
+ --icon-color: var(--token-color-surface-primary);
content: '';
}
```
@@ -56,9 +56,9 @@ icons in HTML using these CSS properties.
Header Name
@@ -105,7 +105,7 @@ also use `background-color`.
```css
.selector::before {
@extend %with-alert-circle-fill-mask, %as-pseudo;
- color: rgb(var(--tone-strawberry-500));
+ color: var(--token-color-consul-brand);
}
```
@@ -141,7 +141,7 @@ use `-mask`, use `-icon` instead:
{{css-props (set this 'icons') prefix='icon-'}}
class={{class-map (concat 'theme-' (or this.theme 'light'))}}
style={{style-map
- (array '--icon-color' (if (eq this.type 'monochrome') 'rgb(var(--black))'))
+ (array '--icon-color' (if (eq this.type 'monochrome') 'var(--token-color-hashicorp-brand)'))
(array '--icon-size' (concat 'icon-' (or this.size '500')))
(array '--icon-resolution' (if (gt this.size 500) '.5' '1'))
}}
diff --git a/ui/packages/consul-ui/app/styles/base/icons/base-placeholders.scss b/ui/packages/consul-ui/app/styles/base/icons/base-placeholders.scss
index 2e101b44a4..216b81abc6 100644
--- a/ui/packages/consul-ui/app/styles/base/icons/base-placeholders.scss
+++ b/ui/packages/consul-ui/app/styles/base/icons/base-placeholders.scss
@@ -1,14 +1,6 @@
-%theme-light {
- --theme-dark-none: ;
- --theme-light-none: initial;
-}
-%theme-dark {
- --theme-dark-none: initial;
- --theme-light-none: ;
-}
%with-glyph-icon {
font-weight: var(--typo-weight-normal);
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
visibility: visible;
padding: 0 4px;
}
diff --git a/ui/packages/consul-ui/app/styles/base/icons/icons/index.scss b/ui/packages/consul-ui/app/styles/base/icons/icons/index.scss
index 149e3e7f68..d1671cad01 100644
--- a/ui/packages/consul-ui/app/styles/base/icons/icons/index.scss
+++ b/ui/packages/consul-ui/app/styles/base/icons/icons/index.scss
@@ -583,7 +583,6 @@
// @import './users/index.scss';
// @import './vagrant/index.scss';
// @import './vagrant-color/index.scss';
-@import './vault/index.scss';
// @import './vault-color/index.scss';
// @import './verified/index.scss';
// @import './video/index.scss';
diff --git a/ui/packages/consul-ui/app/styles/base/icons/icons/vault/keyframes.scss b/ui/packages/consul-ui/app/styles/base/icons/icons/vault/keyframes.scss
index 89c1ccfc4e..38ca783135 100644
--- a/ui/packages/consul-ui/app/styles/base/icons/icons/vault/keyframes.scss
+++ b/ui/packages/consul-ui/app/styles/base/icons/icons/vault/keyframes.scss
@@ -1,9 +1,7 @@
@keyframes icon-vault {
100% {
-
-webkit-mask-image: var(--icon-vault-color-16);
mask-image: var(--icon-vault-color-16);
- background-color: var(--icon-color, var(--color-vault-500, currentColor));
-
+ background-color: var(--icon-color, var(--color-vault, currentColor));
}
-}
\ No newline at end of file
+}
diff --git a/ui/packages/consul-ui/app/styles/base/icons/overrides.scss b/ui/packages/consul-ui/app/styles/base/icons/overrides.scss
index b0cccf3218..dd8570339a 100644
--- a/ui/packages/consul-ui/app/styles/base/icons/overrides.scss
+++ b/ui/packages/consul-ui/app/styles/base/icons/overrides.scss
@@ -1,5 +1,5 @@
%without-mask {
-webkit-mask-image: none;
mask-image: none;
- background-color: var(--transparent) !important;
+ background-color: transparent !important;
}
diff --git a/ui/packages/consul-ui/app/styles/base/reset/system.scss b/ui/packages/consul-ui/app/styles/base/reset/system.scss
index 23954385d8..3d69534286 100644
--- a/ui/packages/consul-ui/app/styles/base/reset/system.scss
+++ b/ui/packages/consul-ui/app/styles/base/reset/system.scss
@@ -9,19 +9,18 @@ strong {
}
/* %typo-body */
body {
- color: rgb(var(--tone-gray-900));
+ color: var(--token-color-foreground-strong);
}
/* TODO: Consider changing this to 'p a, dd a, td a' etc etc */
a {
- color: rgb(var(--color-action));
+ color: var(--token-color-foreground-action);
}
html {
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
}
hr {
- background-color: rgb(var(--tone-gray-200));
+ background-color: var(--token-color-surface-interactive-active);
}
-
html {
font-size: var(--typo-size-000);
}
diff --git a/ui/packages/consul-ui/app/styles/debug.scss b/ui/packages/consul-ui/app/styles/debug.scss
index 718ae65ace..c168da2cb3 100644
--- a/ui/packages/consul-ui/app/styles/debug.scss
+++ b/ui/packages/consul-ui/app/styles/debug.scss
@@ -11,9 +11,6 @@
@import 'consul-ui/components/inline-alert/debug';
@import 'consul-ui/components/definition-table/debug';
-.theme-dark {
- @extend %theme-dark;
-}
%debug-grid {
display: flex;
flex-wrap: wrap;
@@ -43,7 +40,7 @@
[id^='docfy-demo-preview-typography'] figure,
[id^='docfy-demo-preview-icons'] figure {
border: var(--decor-border-100);
- border-color: rgb(var(--tone-gray-300));
+ border-color: var(--token-color-palette-neutral-300);
height: 80px;
}
@@ -55,12 +52,10 @@
height: 40px;
}
#docfy-demo-preview-color0 {
- @extend %theme-light;
- background-color: rgb(var(--white));
+ background-color: var(--token-color-surface-primary);
}
#docfy-demo-preview-color1 {
- background-color: rgb(var(--black));
- @extend %theme-dark;
+ background-color: var(--token-color-hashicorp-brand);
}
[id^='docfy-demo-preview-typography'] {
@@ -140,7 +135,7 @@ html.with-route-announcer .route-title {
}
.docs {
& {
- background-color: rgb(var(--tone-gray-000));
+ background-color: var(--token-color-surface-primary);
}
.tabular-collection,
.list-collection {
@@ -235,7 +230,7 @@ html.with-route-announcer .route-title {
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
padding: 1rem;
margin-bottom: 0;
}
@@ -248,19 +243,19 @@ html.with-route-announcer .route-title {
}
figcaption {
margin-bottom: 0.5rem;
- color: rgb(var(--tone-gray-400));
+ color: var(--token-color-foreground-disabled);
font-style: italic;
}
figcaption code {
@extend %inline-code;
}
figure > [type='text'] {
- border: 1px solid rgb(var(--tone-gray-999));
+ border: 1px solid var(--token-color-hashicorp-brand);
width: 100%;
padding: 0.5rem;
}
figure > select {
- border: 1px solid rgb(var(--tone-gray-999));
+ border: 1px solid var(--token-color-hashicorp-brand);
padding: 0.5rem;
}
}
diff --git a/ui/packages/consul-ui/app/styles/icons.scss b/ui/packages/consul-ui/app/styles/icons.scss
index ca277f1d74..7aa53243bf 100644
--- a/ui/packages/consul-ui/app/styles/icons.scss
+++ b/ui/packages/consul-ui/app/styles/icons.scss
@@ -10,18 +10,6 @@
}
}
-%theme-light {
- --icon-aws: icon-aws-color;
- --icon-vault: icon-vault;
- --color-vault-500: rgb(var(--black));
-}
-%theme-dark {
- --icon-aws: icon-aws;
- --icon-vault: icon-vault;
- --color-aws-500: rgb(var(--white));
- --color-vault-500: rgb(var(--tone-lemon-500));
-}
-
%with-vault-100,
%with-vault-300 {
--icon-name: icon-vault;
@@ -29,7 +17,7 @@
}
%with-aws-100,
%with-aws-300 {
- --icon-name: var(--icon-aws);
+ --icon-name: icon-aws-color;
content: '';
}
%with-allow-100,
@@ -47,12 +35,12 @@
%with-allow-300,
%with-allow-500 {
--icon-name: icon-arrow-right;
- --icon-color: rgb(var(--tone-green-500));
+ --icon-color: var(--token-color-foreground-success-on-surface);
}
%with-deny-300,
%with-deny-500 {
--icon-name: icon-skip;
- --icon-color: rgb(var(--tone-red-500));
+ --icon-color: var(--token-color-foreground-critical-on-surface);
}
%with-l7-300,
%with-l7-500 {
@@ -61,7 +49,7 @@
%with-allow-500,
%with-deny-500,
%with-l7-500 {
- --icon-resolution: .5;
+ --icon-resolution: 0.5;
}
%with-allow-300,
%with-allow-500,
diff --git a/ui/packages/consul-ui/app/styles/layout.scss b/ui/packages/consul-ui/app/styles/layout.scss
index 1fe6db81fa..5221f6d088 100644
--- a/ui/packages/consul-ui/app/styles/layout.scss
+++ b/ui/packages/consul-ui/app/styles/layout.scss
@@ -75,6 +75,7 @@ html[data-route='dc.services.index'] .consul-service-list ul,
.consul-role-list ul,
.consul-policy-list ul,
.consul-token-list ul,
+.consul-peer-list ul,
.consul-auth-method-list ul {
@extend %list-after-filter-bar;
}
diff --git a/ui/packages/consul-ui/app/styles/layouts/index.scss b/ui/packages/consul-ui/app/styles/layouts/index.scss
index f9405fbd43..5a05d88886 100644
--- a/ui/packages/consul-ui/app/styles/layouts/index.scss
+++ b/ui/packages/consul-ui/app/styles/layouts/index.scss
@@ -26,7 +26,7 @@ fieldset [role='group'] {
[role='group'] fieldset:not(:first-of-type) {
padding-left: 20px;
border-left: 1px solid;
- border-left: rgb(var(--tone-gray-500));
+ border-left: var(--token-color-foreground-faint);
}
[role='group'] fieldset:not(:last-of-type) {
padding-right: 20px;
diff --git a/ui/packages/consul-ui/app/styles/routes/dc/kv/index.scss b/ui/packages/consul-ui/app/styles/routes/dc/kv/index.scss
index 47f238569a..5dd632a498 100644
--- a/ui/packages/consul-ui/app/styles/routes/dc/kv/index.scss
+++ b/ui/packages/consul-ui/app/styles/routes/dc/kv/index.scss
@@ -5,7 +5,7 @@ html[data-route^='dc.kv'] .type-toggle {
html[data-route^='dc.kv.edit'] h2 {
@extend %h200;
border-bottom: var(--decor-border-200);
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
padding-bottom: 0.2em;
margin-bottom: 0.5em;
}
diff --git a/ui/packages/consul-ui/app/styles/routes/dc/overview/license.scss b/ui/packages/consul-ui/app/styles/routes/dc/overview/license.scss
index 5969bde717..26399d74f1 100644
--- a/ui/packages/consul-ui/app/styles/routes/dc/overview/license.scss
+++ b/ui/packages/consul-ui/app/styles/routes/dc/overview/license.scss
@@ -13,7 +13,7 @@ section[data-route='dc.show.license'] {
}
%license-validity p {
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
}
%license-validity dl {
@extend %horizontal-kv-list;
@@ -28,20 +28,20 @@ section[data-route='dc.show.license'] {
}
%license-validity dl .expired::before {
--icon-name: icon-x-circle;
- --icon-color: rgb(var(--red-500));
+ --icon-color: var(--token-color-foreground-critical);
}
%license-validity dl .warning::before {
--icon-name: icon-alert-circle;
- --icon-color: rgb(var(--orange-500));
+ --icon-color: var(--token-color-foreground-warning);
}
%license-validity dl .valid:not(.warning)::before {
--icon-name: icon-check-circle;
- --icon-color: rgb(var(--green-500));
+ --icon-color: var(--token-color-foreground-success);
}
%license-route-learn-more {
@extend %panel;
- box-shadow: var(--decor-elevation-000);
+ box-shadow: none;
padding: var(--padding-y) var(--padding-x);
width: 40%;
min-width: 413px;
diff --git a/ui/packages/consul-ui/app/styles/routes/dc/overview/serverstatus.scss b/ui/packages/consul-ui/app/styles/routes/dc/overview/serverstatus.scss
index 0267d352c4..9a9d6fe64e 100644
--- a/ui/packages/consul-ui/app/styles/routes/dc/overview/serverstatus.scss
+++ b/ui/packages/consul-ui/app/styles/routes/dc/overview/serverstatus.scss
@@ -20,7 +20,7 @@ section[data-route='dc.show.serverstatus'] {
%server-failure-tolerance {
@extend %panel;
- box-shadow: var(--decor-elevation-000);
+ box-shadow: none;
padding: var(--padding-y) var(--padding-x);
max-width: 770px;
display: flex;
@@ -35,13 +35,13 @@ section[data-route='dc.show.serverstatus'] {
padding-bottom: 0.5rem; /* 8px */
margin-bottom: 1rem; /* 16px */
border-bottom: var(--decor-border-100);
- border-color: rgb(var(--tone-border));
+ border-color: var(--tone-border);
}
%server-failure-tolerance header em {
@extend %pill-200;
font-size: 0.812rem; /* 13px */
- background-color: rgb(var(--tone-gray-200));
+ background-color: var(--token-color-surface-interactive-active);
text-transform: uppercase;
font-style: normal;
@@ -65,7 +65,7 @@ section[data-route='dc.show.serverstatus'] {
%server-failure-tolerance dl.warning dd::before {
--icon-name: icon-alert-circle;
--icon-size: icon-800;
- --icon-color: rgb(var(--tone-orange-400));
+ --icon-color: var(--token-color-foreground-warning);
content: '';
margin-right: 0.5rem; /* 8px */
}
@@ -74,16 +74,16 @@ section[data-route='dc.show.serverstatus'] {
}
%server-failure-tolerance dt {
@extend %p2;
- color: rgb(var(--tone-gray-700));
+ color: var(--token-color-foreground-faint);
}
%server-failure-tolerance dd {
font-size: var(--typo-size-250);
- color: rgb(var(--tone-gray-999));
+ color: var(--token-color-hashicorp-brand);
}
%server-failure-tolerance header span::before {
--icon-name: icon-info;
--icon-size: icon-300;
- --icon-color: rgb(var(--tone-gray-500));
+ --icon-color: var(--token-color-foreground-faint);
vertical-align: unset;
content: '';
}
@@ -116,11 +116,11 @@ section[data-route='dc.show.serverstatus'] {
@extend %visually-unhidden;
}
%redundancy-zone header dl:not(.warning) {
- background-color: rgb(var(--tone-gray-100));
+ background-color: var(--token-color-surface-strong);
}
%redundancy-zone header dl.warning {
- background-color: rgb(var(--tone-orange-100));
- color: rgb(var(--tone-orange-800));
+ background-color: var(--token-color-border-warning);
+ color: var(--token-color-palette-amber-400);
}
%redundancy-zone header dl.warning::before {
--icon-name: icon-alert-circle;
@@ -132,5 +132,5 @@ section[data-route='dc.show.serverstatus'] {
content: ':';
display: inline-block;
vertical-align: revert;
- background-color: var(--transparent);
+ background-color: transparent;
}
diff --git a/ui/packages/consul-ui/app/styles/routes/dc/services/index.scss b/ui/packages/consul-ui/app/styles/routes/dc/services/index.scss
index ed24d44f41..9989110cb2 100644
--- a/ui/packages/consul-ui/app/styles/routes/dc/services/index.scss
+++ b/ui/packages/consul-ui/app/styles/routes/dc/services/index.scss
@@ -24,7 +24,7 @@ html[data-route^='dc.services.instance'] .tab-section section:not(:last-child) {
}
html[data-route^='dc.services.instance'] .tab-nav,
html[data-route^='dc.services.instance'] .tab-section section:not(:last-child) {
- border-color: rgb(var(--tone-gray-200));
+ border-color: var(--token-color-surface-interactive-active);
}
html[data-route^='dc.services.instance'] .tab-section section:not(:last-child) {
padding-bottom: 24px;
diff --git a/ui/packages/consul-ui/app/styles/themes.scss b/ui/packages/consul-ui/app/styles/themes.scss
index 69282b79e7..c652c84657 100644
--- a/ui/packages/consul-ui/app/styles/themes.scss
+++ b/ui/packages/consul-ui/app/styles/themes.scss
@@ -1,26 +1,11 @@
@import './base/color/ui/index';
-@import './base/color/magenta/index';
-@import './base/color/strawberry/index';
-@import './base/color/vault/index';
-:root:not(.prefers-color-scheme-dark) {
- @extend %theme-light;
-}
-:root.prefers-color-scheme-dark {
- @extend %theme-dark;
-}
-
-%main-header-horizontal,
-%main-nav-vertical,
-%main-nav-horizontal {
- @extend %theme-dark;
-}
%main-nav-horizontal .dangerous button:hover,
%main-nav-horizontal .dangerous button:focus {
- color: rgb(var(--white)) !important;
+ color: var(--token-color-surface-primary) !important;
}
%main-nav-vertical .menu-panel a:hover,
%main-nav-vertical .menu-panel a:focus {
- background-color: rgb(var(--tone-blue-500));
+ background-color: var(--token-color-foreground-action);
}
diff --git a/ui/packages/consul-ui/app/styles/variables/skin.scss b/ui/packages/consul-ui/app/styles/variables/skin.scss
index cece201ac0..2d15e63aa3 100644
--- a/ui/packages/consul-ui/app/styles/variables/skin.scss
+++ b/ui/packages/consul-ui/app/styles/variables/skin.scss
@@ -1,31 +1,7 @@
@import './custom-query';
-// TODO: Setup only the CSS props we actually need here
-// potentially see if our compiler can automatically remove
-// unused CSS props
:root {
- /* base brand colors */
- --tone-brand-050: var(--tone-magenta-050);
- --tone-brand-100: var(--tone-strawberry-100);
- /* --tone-brand-200: var(--tone-strawberry-200) */
- /* --tone-brand-300: var(--tone-strawberry-300) */
- /* --tone-brand-400: var(--tone-strawberry-400) */
- /* --tone-brand-500: var(--tone-strawberry-500) */
- /* temporary strawberry-like color until its replaced by a numbered one */
- --tone-brand-600: 224 56 117;
- /* --tone-brand-700: var(--tone-strawberry-700) */
- --tone-brand-800: var(--tone-magenta-800);
- /* --tone-brand-900: var(--tone-strawberry-900) */
-
- /* themeable ui colors */
- --typo-action-500: rgb(var(--tone-blue-500));
- --decor-error-500: rgb(var(--tone-red-500));
- --typo-contrast-999: rgb(var(--tone-gray-999));
-
- /* themeable brand colors */
- --typo-brand-050: rgb(var(--tone-brand-050));
- --typo-brand-600: rgb(var(--tone-brand-600));
- --decor-brand-600: rgb(var(--tone-brand-600));
- --swatch-brand-600: rgb(var(--tone-brand-600));
- --swatch-brand-800: rgb(var(--tone-brand-800));
+ --typo-action: var(--token-color-foreground-action);
+ --decor-error: var(--token-color-foreground-critical);
+ --typo-contrast: var(--token-color-hashicorp-brand);
}