Skip to content

A platform for community discussion. Free, open, simple.

UX: Add tertiary-25 color variable (#33273)

Jordan Vidrine35d9688aa31c
diff --git a/app/assets/stylesheets/color_definitions.scss b/app/assets/stylesheets/color_definitions.scss
index f975380f6dd..379dd3f4665 100644
--- a/app/assets/stylesheets/color_definitions.scss
+++ b/app/assets/stylesheets/color_definitions.scss
@@ -56,6 +56,7 @@
--tertiary-medium: #{$tertiary-medium};
--tertiary-high: #{$tertiary-high};
--tertiary-hover: #{$tertiary-hover};
+ --tertiary-25: #{$tertiary-25};
--tertiary-50: #{$tertiary-50};
--tertiary-100: #{$tertiary-100};
--tertiary-200: #{$tertiary-200};
diff --git a/app/assets/stylesheets/common/foundation/color_transformations.scss b/app/assets/stylesheets/common/foundation/color_transformations.scss
index 970aecf1fea..eabf25bec4c 100644
--- a/app/assets/stylesheets/common/foundation/color_transformations.scss
+++ b/app/assets/stylesheets/common/foundation/color_transformations.scss
@@ -46,6 +46,7 @@ $tertiary-hover: dark-light-choose(
) !default;
// tertiary-numbers
+$tertiary-25: dark-light-diff($tertiary, $secondary, 93%, -80%) !default;
$tertiary-50: dark-light-diff($tertiary, $secondary, 90%, -75%) !default;
$tertiary-100: dark-light-diff($tertiary, $secondary, 88%, -72%) !default;
$tertiary-200: dark-light-diff($tertiary, $secondary, 87%, -69%) !default;
diff --git a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/03-colors.gjs b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/03-colors.gjs
index 384b20a84a4..9b4452a6533 100644
--- a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/03-colors.gjs
+++ b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/03-colors.gjs
@@ -53,14 +53,15 @@ const Colors = <template>
<StyleguideExample @title="tertiary-100">
<section class="color-row">
+ <ColorExample @color="tertiary-25" />
<ColorExample @color="tertiary-50" />
<ColorExample @color="tertiary-100" />
<ColorExample @color="tertiary-200" />
<ColorExample @color="tertiary-300" />
<ColorExample @color="tertiary-400" />
- <ColorExample @color="tertiary-500" />
</section>
<section class="color-row">
+ <ColorExample @color="tertiary-500" />
<ColorExample @color="tertiary-600" />
<ColorExample @color="tertiary-700" />
<ColorExample @color="tertiary-800" />
diff --git a/plugins/styleguide/assets/stylesheets/colors.scss b/plugins/styleguide/assets/stylesheets/colors.scss
index 788b114af63..a715a023e19 100644
--- a/plugins/styleguide/assets/stylesheets/colors.scss
+++ b/plugins/styleguide/assets/stylesheets/colors.scss
@@ -95,6 +95,10 @@
background-color: var(--tertiary);
}
+ .tertiary-25 {
+ background-color: var(--tertiary-25);
+ }
+
.tertiary-50 {
background-color: var(--tertiary-50);
}