Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update primary color #723

Merged
merged 17 commits into from
Nov 20, 2024
5 changes: 5 additions & 0 deletions .changeset/dull-parrots-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microsoft/atlas-css': minor
---

Update primary colors to align with Fluent 2 colors.
10 changes: 8 additions & 2 deletions css/src/components/tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ $tag-color-filled-hover: $primary-hover !default;
$tag-background-filled-hover: $secondary !default;
$tag-interactive-divider-color-filled: $secondary-box-shadow !default;
$tag-interactive-color-filled-hover: $secondary-invert !default;
$tag-interactive-color-filled-close-hover: $primary-dark-hover !default;

$tag-color-primary: $primary-dark !default;
$tag-color-primary-hover: $primary-hover !default;
$tag-background-primary: $primary-background !default;
$tag-background-primary-hover: $primary-hover !default;
$tag-background-primary-hover: $primary-background-hover !default;
$tag-border-color-primary: $primary-background-glow-high-contrast !default;
$tag-interactive-divider-color-primary: $primary-box-shadow !default;
$tag-interactive-color-primary-hover: $primary-invert !default;
$tag-interactive-color-primary-hover: $primary-dark-hover !default;

.tag {
display: inline-flex;
Expand Down Expand Up @@ -200,6 +201,11 @@ $tag-interactive-color-primary-hover: $primary-invert !default;

.tag-close {
border-inline-start-color: $tag-interactive-divider-color-filled;

&:hover,
wibjorn marked this conversation as resolved.
Show resolved Hide resolved
&.is-hovered {
color: $tag-interactive-color-filled-close-hover;
}
}
}
}
45 changes: 38 additions & 7 deletions css/src/tokens/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $text: var(--theme-text);
$text-subtle: var(--theme-text-subtle);
$text-invert: var(--theme-text-invert);
$hyperlink: var(--theme-hyperlink);
$hyperlink-hover: var(--theme-hyperlink-hover);
$text-glow-high-contrast: var(--theme-text-glow-high-contrast);
$box-shadow-color-light: var(--theme-box-shadow-light);
$box-shadow-color-medium: var(--theme-box-shadow-medium);
Expand Down Expand Up @@ -66,62 +67,76 @@ $score-high: var(--theme-score-high);

$primary: var(--theme-primary-base);
$primary-background: var(--theme-primary-background);
$primary-background-hover: var(--theme-primary-background-hover);
$primary-background-glow-high-contrast: var(--theme-primary-background-glow-high-contrast);
$primary-dark: var(--theme-primary-dark);
$primary-dark-hover: var(--theme-primary-dark-hover);
wibjorn marked this conversation as resolved.
Show resolved Hide resolved
$primary-hover: var(--theme-primary-hover);
$primary-active: var(--theme-primary-active);
$primary-invert: var(--theme-primary-invert);
$primary-box-shadow: var(--theme-primary-box-shadow);

$secondary: var(--theme-secondary-base);
$secondary-background: var(--theme-secondary-background);
$secondary-background-hover: var(--theme-secondary-background-hover);
$secondary-background-glow-high-contrast: var(--theme-secondary-background-glow-high-contrast);
$secondary-dark: var(--theme-secondary-dark);
$secondary-dark-hover: var(--theme-secondary-dark-hover);
$secondary-hover: var(--theme-secondary-hover);
$secondary-active: var(--theme-secondary-active);
$secondary-invert: var(--theme-secondary-invert);
$secondary-box-shadow: var(--theme-secondary-box-shadow);

$tertiary: var(--theme-tertiary-base);
$tertiary-background: var(--theme-tertiary-background);
$tertiary-background-hover: var(--theme-tertiary-background-hover);
$tertiary-background-glow-high-contrast: var(--theme-tertiary-background-glow-high-contrast);
$tertiary-dark: var(--theme-tertiary-dark);
$tertiary-dark-hover: var(--theme-tertiary-dark-hover);
$tertiary-hover: var(--theme-tertiary-hover);
$tertiary-active: var(--theme-tertiary-active);
$tertiary-invert: var(--theme-tertiary-invert);
$tertiary-box-shadow: var(--theme-tertiary-box-shadow);

$success: var(--theme-success-base);
$success-background: var(--theme-success-background);
$success-background-hover: var(--theme-success-background-hover);
$success-background-glow-high-contrast: var(--theme-success-background-glow-high-contrast);
$success-dark: var(--theme-success-dark);
$success-dark-hover: var(--theme-success-dark-hover);
$success-hover: var(--theme-success-hover);
$success-active: var(--theme-success-active);
$success-invert: var(--theme-success-invert);
$success-box-shadow: var(--theme-success-box-shadow);

$info: var(--theme-info-base);
$info-background: var(--theme-info-background);
$info-background-hover: var(--theme-info-background-hover);
$info-background-glow-high-contrast: var(--theme-info-background-glow-high-contrast);
$info-dark: var(--theme-info-dark);
$info-dark-hover: var(--theme-info-dark-hover);
$info-hover: var(--theme-info-hover);
$info-active: var(--theme-info-active);
$info-invert: var(--theme-info-invert);
$info-box-shadow: var(--theme-info-box-shadow);

$warning: var(--theme-warning-base);
$warning-background: var(--theme-warning-background);
$warning-background-hover: var(--theme-warning-background-hover);
$warning-background-glow-high-contrast: var(--theme-warning-background-glow-high-contrast);
$warning-dark: var(--theme-warning-dark);
$warning-dark-hover: var(--theme-warning-dark-hover);
$warning-hover: var(--theme-warning-hover);
$warning-active: var(--theme-warning-active);
$warning-invert: var(--theme-warning-invert);
$warning-box-shadow: var(--theme-warning-box-shadow);

$danger: var(--theme-danger-base);
$danger-background: var(--theme-danger-background);
$danger-background-hover: var(--theme-danger-background-hover);
$danger-background-glow-high-contrast: var(--theme-danger-background-glow-high-contrast);
$danger-dark: var(--theme-danger-dark);
$danger-dark-hover: var(--theme-danger-dark-hover);
$danger-hover: var(--theme-danger-hover);
$danger-active: var(--theme-danger-active);
$danger-invert: var(--theme-danger-invert);
Expand All @@ -136,7 +151,9 @@ $colors: (
$primary-active,
$primary-invert,
$primary-box-shadow,
$primary-background-glow-high-contrast
$primary-background-glow-high-contrast,
wibjorn marked this conversation as resolved.
Show resolved Hide resolved
$primary-background-hover,
$primary-dark-hover
),
'secondary': (
$secondary,
Expand All @@ -146,7 +163,9 @@ $colors: (
$secondary-active,
$secondary-invert,
$secondary-box-shadow,
$secondary-background-glow-high-contrast
$secondary-background-glow-high-contrast,
$secondary-background-hover,
$secondary-dark-hover
),
'tertiary': (
$tertiary,
Expand All @@ -156,7 +175,9 @@ $colors: (
$tertiary-active,
$tertiary-invert,
$tertiary-box-shadow,
$tertiary-background-glow-high-contrast
$tertiary-background-glow-high-contrast,
$tertiary-background-hover,
$tertiary-dark-hover
),
'success': (
$success,
Expand All @@ -166,7 +187,9 @@ $colors: (
$success-active,
$success-invert,
$success-box-shadow,
$success-background-glow-high-contrast
$success-background-glow-high-contrast,
$success-background-hover,
$success-dark-hover
),
'info': (
$info,
Expand All @@ -176,7 +199,9 @@ $colors: (
$info-active,
$info-invert,
$info-box-shadow,
$info-background-glow-high-contrast
$info-background-glow-high-contrast,
$info-background-hover,
$info-dark-hover
),
'warning': (
$warning,
Expand All @@ -186,7 +211,9 @@ $colors: (
$warning-active,
$warning-invert,
$warning-box-shadow,
$warning-background-glow-high-contrast
$warning-background-glow-high-contrast,
$warning-background-hover,
$warning-dark-hover
),
'danger': (
$danger,
Expand All @@ -196,7 +223,9 @@ $colors: (
$danger-active,
$danger-invert,
$danger-box-shadow,
$danger-background-glow-high-contrast
$danger-background-glow-high-contrast,
$danger-background-hover,
$danger-dark-hover
)
) !default;

Expand All @@ -212,6 +241,8 @@ $color-index-active: 5;
$color-index-invert: 6;
$color-index-box-shadow: 7;
$color-index-background-glow-high-contrast: 8;
$color-index-background-hover: 9;
$color-index-dark-hover: 10;

// example implementation of a color loop

Expand Down
69 changes: 46 additions & 23 deletions css/src/tokens/palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,37 @@ $palette-white-opacity-18: hsl(0deg 0% 100% / 18%) !default;

// Blue

$palette-blue-10: #d7eaf8 !default;
$palette-blue-20: #9ccbee !default;
$palette-blue-30: #75b6e7 !default;
$palette-blue-40: #278cda !default;
$palette-blue-50: #0078d4 !default;
$palette-blue-60: #0065b3 !default;
$palette-blue-70: #00579a !default;
$palette-blue-80: #004173 !default;
$palette-blue-90: #002b4d !default;
$palette-blue-100: #000a13 !default;
$palette-blue-10-deprecated: #d7eaf8 !default;
$palette-blue-20-deprecated: #9ccbee !default;
$palette-blue-30-deprecated: #75b6e7 !default;
$palette-blue-40-deprecated: #278cda !default;
$palette-blue-50-deprecated: #0078d4 !default;
$palette-blue-60-deprecated: #0065b3 !default;
$palette-blue-70-deprecated: #00579a !default;
$palette-blue-80-deprecated: #004173 !default;
$palette-blue-90-deprecated: #002b4d !default;
$palette-blue-100-deprecated: #000a13 !default;

$palette-blue-10: #ebf3fc !default;
$palette-blue-20: #cfe4fa !default;
$palette-blue-30: #a9d3f2 !default;
$palette-blue-40: #b4d6fa !default;
$palette-blue-50: #9abfdc !default;
$palette-blue-60: #77b7f7 !default;
$palette-blue-70: #62abf5 !default;
$palette-blue-80: #479ef5 !default;
$palette-blue-90: #2886de !default;
$palette-blue-100: #0078d4 !default;
$palette-blue-110: #0f6cbd !default;
$palette-blue-120: #115ea3 !default;
$palette-blue-130: #0f548c !default;
$palette-blue-140: #004e8c !default;
$palette-blue-150: #0e4775 !default;
$palette-blue-160: #004377 !default;
$palette-blue-170: #0c3b5e !default;
$palette-blue-180: #0a2e4a !default;
$palette-blue-190: #002c4e !default;
$palette-blue-200: #082338 !default;

$palette-blue-a: #9ccbee !default;

Expand All @@ -107,19 +128,21 @@ $palette-navy-opacity-70: hsl(262deg 46% 17% / 70%) !default;

// Turqoise

$palette-turqoise-10: #e9fbff !default;
$palette-turqoise-20: #bdf5ff !default;
$palette-turqoise-30: #7becff !default;
$palette-turqoise-40: #50e6ff !default;
$palette-turqoise-50: #41b9cf !default;
$palette-turqoise-60: #328e9f !default;
$palette-turqoise-70: #28727f !default;
$palette-turqoise-80: #19474f !default;
$palette-turqoise-90: #0f2a2f !default;
$palette-turqoise-100: #050e0f !default;

$palette-navy-opacity-30: hsl(189deg 52% 12% / 30%) !default;
$palette-navy-opacity-70: hsl(189deg 52% 12% / 70%) !default;
$palette-turqoise-10-deprecated: #e9fbff !default;
$palette-turqoise-20-deprecated: #bdf5ff !default;
$palette-turqoise-30-deprecated: #7becff !default;
$palette-turqoise-40-deprecated: #50e6ff !default;
$palette-turqoise-50-deprecated: #41b9cf !default;
$palette-turqoise-60-deprecated: #328e9f !default;
$palette-turqoise-70-deprecated: #28727f !default;
$palette-turqoise-80-deprecated: #19474f !default;
$palette-turqoise-90-deprecated: #0f2a2f !default;
$palette-turqoise-100-deprecated: #050e0f !default;

$palette-turqoise-10: #1aebff !default;

$palette-turqoise-opacity-30-deprecated: hsl(189deg 52% 12% / 30%) !default;
$palette-turqoise-opacity-70-deprecated: hsl(189deg 52% 12% / 70%) !default;

// Green

Expand Down
Loading
Loading