Skip to content

Commit 66bfd40

Browse files
dancormiergiamir
andauthored
chore(colors): update color palettes (#2015)
* Update light, dark mode black values * Update light, dark mode orange values * Update remaining light, dark sets * Add light, dark pink sets * Update less color snaps * Update high contrast color sets * Update the less color snaps again * Update light, dark black color sets * Fixes * Remove metallic colors * Make suggested changes * Retain legacy metallic colors for backward compatibility * Update monochromatic colors; set theme secondary to black values * Add TODOs for translucent colors * Revert "Update the less color snaps again" This reverts commit d7c9eb6. * Revert "Update less color snaps" This reverts commit 95faed2. * Escape colors embedded in svg urls * Drop 400 from theme-secondary-400 usage * Update less snap shots * update visual regression images * Comment out broken a11y tests * Add changeset --------- Co-authored-by: Giamir Buoncristiani <[email protected]>
1 parent 73c8edd commit 66bfd40

File tree

3,071 files changed

+7416
-7055
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,071 files changed

+7416
-7055
lines changed

.changeset/curvy-candles-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackoverflow/stacks": minor
3+
---
4+
5+
Updated colors for SHINE

packages/stacks-classic/lib/atomic/__snapshots__/color.less.test.ts.snap

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,132 @@ exports[`atomic: color > should output v2 atomic css classes for colors 1`] = `
10301030
color: var(--purple-600) !important;
10311031
}
10321032
1033+
.bg-pink-100,
1034+
.h\\:bg-pink-100:hover,
1035+
.f\\:bg-pink-100:focus,
1036+
.f\\:bg-pink-100:focus-within {
1037+
background-color: var(--pink-100) !important;
1038+
}
1039+
1040+
.bc-pink-100,
1041+
.h\\:bc-pink-100:hover,
1042+
.f\\:bc-pink-100:focus,
1043+
.f\\:bc-pink-100:focus-within {
1044+
border-color: var(--pink-100) !important;
1045+
}
1046+
1047+
.fc-pink-100,
1048+
.h\\:fc-pink-100:hover,
1049+
.f\\:fc-pink-100:focus,
1050+
.f\\:fc-pink-100:focus-within {
1051+
color: var(--pink-100) !important;
1052+
}
1053+
1054+
.bg-pink-200,
1055+
.h\\:bg-pink-200:hover,
1056+
.f\\:bg-pink-200:focus,
1057+
.f\\:bg-pink-200:focus-within {
1058+
background-color: var(--pink-200) !important;
1059+
}
1060+
1061+
.bc-pink-200,
1062+
.h\\:bc-pink-200:hover,
1063+
.f\\:bc-pink-200:focus,
1064+
.f\\:bc-pink-200:focus-within {
1065+
border-color: var(--pink-200) !important;
1066+
}
1067+
1068+
.fc-pink-200,
1069+
.h\\:fc-pink-200:hover,
1070+
.f\\:fc-pink-200:focus,
1071+
.f\\:fc-pink-200:focus-within {
1072+
color: var(--pink-200) !important;
1073+
}
1074+
1075+
.bg-pink-300,
1076+
.h\\:bg-pink-300:hover,
1077+
.f\\:bg-pink-300:focus,
1078+
.f\\:bg-pink-300:focus-within {
1079+
background-color: var(--pink-300) !important;
1080+
}
1081+
1082+
.bc-pink-300,
1083+
.h\\:bc-pink-300:hover,
1084+
.f\\:bc-pink-300:focus,
1085+
.f\\:bc-pink-300:focus-within {
1086+
border-color: var(--pink-300) !important;
1087+
}
1088+
1089+
.fc-pink-300,
1090+
.h\\:fc-pink-300:hover,
1091+
.f\\:fc-pink-300:focus,
1092+
.f\\:fc-pink-300:focus-within {
1093+
color: var(--pink-300) !important;
1094+
}
1095+
1096+
.bg-pink-400,
1097+
.h\\:bg-pink-400:hover,
1098+
.f\\:bg-pink-400:focus,
1099+
.f\\:bg-pink-400:focus-within {
1100+
background-color: var(--pink-400) !important;
1101+
}
1102+
1103+
.bc-pink-400,
1104+
.h\\:bc-pink-400:hover,
1105+
.f\\:bc-pink-400:focus,
1106+
.f\\:bc-pink-400:focus-within {
1107+
border-color: var(--pink-400) !important;
1108+
}
1109+
1110+
.fc-pink-400,
1111+
.h\\:fc-pink-400:hover,
1112+
.f\\:fc-pink-400:focus,
1113+
.f\\:fc-pink-400:focus-within {
1114+
color: var(--pink-400) !important;
1115+
}
1116+
1117+
.bg-pink-500,
1118+
.h\\:bg-pink-500:hover,
1119+
.f\\:bg-pink-500:focus,
1120+
.f\\:bg-pink-500:focus-within {
1121+
background-color: var(--pink-500) !important;
1122+
}
1123+
1124+
.bc-pink-500,
1125+
.h\\:bc-pink-500:hover,
1126+
.f\\:bc-pink-500:focus,
1127+
.f\\:bc-pink-500:focus-within {
1128+
border-color: var(--pink-500) !important;
1129+
}
1130+
1131+
.fc-pink-500,
1132+
.h\\:fc-pink-500:hover,
1133+
.f\\:fc-pink-500:focus,
1134+
.f\\:fc-pink-500:focus-within {
1135+
color: var(--pink-500) !important;
1136+
}
1137+
1138+
.bg-pink-600,
1139+
.h\\:bg-pink-600:hover,
1140+
.f\\:bg-pink-600:focus,
1141+
.f\\:bg-pink-600:focus-within {
1142+
background-color: var(--pink-600) !important;
1143+
}
1144+
1145+
.bc-pink-600,
1146+
.h\\:bc-pink-600:hover,
1147+
.f\\:bc-pink-600:focus,
1148+
.f\\:bc-pink-600:focus-within {
1149+
border-color: var(--pink-600) !important;
1150+
}
1151+
1152+
.fc-pink-600,
1153+
.h\\:fc-pink-600:hover,
1154+
.f\\:fc-pink-600:focus,
1155+
.f\\:fc-pink-600:focus-within {
1156+
color: var(--pink-600) !important;
1157+
}
1158+
10331159
.bg-gold-100,
10341160
.h\\:bg-gold-100:hover,
10351161
.f\\:bg-gold-100:focus,
@@ -2102,6 +2228,54 @@ exports[`atomic: color > should output v2 atomic css classes for colors 1`] = `
21022228
color: var(--purple-600) !important;
21032229
}
21042230
2231+
body.theme-system .d\\:bg-pink-100 {
2232+
background-color: var(--pink-100) !important;
2233+
}
2234+
2235+
body.theme-system .d\\:fc-pink-100 {
2236+
color: var(--pink-100) !important;
2237+
}
2238+
2239+
body.theme-system .d\\:bg-pink-200 {
2240+
background-color: var(--pink-200) !important;
2241+
}
2242+
2243+
body.theme-system .d\\:fc-pink-200 {
2244+
color: var(--pink-200) !important;
2245+
}
2246+
2247+
body.theme-system .d\\:bg-pink-300 {
2248+
background-color: var(--pink-300) !important;
2249+
}
2250+
2251+
body.theme-system .d\\:fc-pink-300 {
2252+
color: var(--pink-300) !important;
2253+
}
2254+
2255+
body.theme-system .d\\:bg-pink-400 {
2256+
background-color: var(--pink-400) !important;
2257+
}
2258+
2259+
body.theme-system .d\\:fc-pink-400 {
2260+
color: var(--pink-400) !important;
2261+
}
2262+
2263+
body.theme-system .d\\:bg-pink-500 {
2264+
background-color: var(--pink-500) !important;
2265+
}
2266+
2267+
body.theme-system .d\\:fc-pink-500 {
2268+
color: var(--pink-500) !important;
2269+
}
2270+
2271+
body.theme-system .d\\:bg-pink-600 {
2272+
background-color: var(--pink-600) !important;
2273+
}
2274+
2275+
body.theme-system .d\\:fc-pink-600 {
2276+
color: var(--pink-600) !important;
2277+
}
2278+
21052279
body.theme-system .d\\:bg-gold-100 {
21062280
background-color: var(--gold-100) !important;
21072281
}
@@ -2859,6 +3033,78 @@ body.theme-system .theme-dark__forced .d\\:fc-purple-600 {
28593033
color: var(--purple-600) !important;
28603034
}
28613035
3036+
body.theme-dark .d\\:bg-pink-100,
3037+
.theme-dark__forced .d\\:bg-pink-100,
3038+
body.theme-system .theme-dark__forced .d\\:bg-pink-100 {
3039+
background-color: var(--pink-100) !important;
3040+
}
3041+
3042+
body.theme-dark .d\\:fc-pink-100,
3043+
.theme-dark__forced .d\\:fc-pink-100,
3044+
body.theme-system .theme-dark__forced .d\\:fc-pink-100 {
3045+
color: var(--pink-100) !important;
3046+
}
3047+
3048+
body.theme-dark .d\\:bg-pink-200,
3049+
.theme-dark__forced .d\\:bg-pink-200,
3050+
body.theme-system .theme-dark__forced .d\\:bg-pink-200 {
3051+
background-color: var(--pink-200) !important;
3052+
}
3053+
3054+
body.theme-dark .d\\:fc-pink-200,
3055+
.theme-dark__forced .d\\:fc-pink-200,
3056+
body.theme-system .theme-dark__forced .d\\:fc-pink-200 {
3057+
color: var(--pink-200) !important;
3058+
}
3059+
3060+
body.theme-dark .d\\:bg-pink-300,
3061+
.theme-dark__forced .d\\:bg-pink-300,
3062+
body.theme-system .theme-dark__forced .d\\:bg-pink-300 {
3063+
background-color: var(--pink-300) !important;
3064+
}
3065+
3066+
body.theme-dark .d\\:fc-pink-300,
3067+
.theme-dark__forced .d\\:fc-pink-300,
3068+
body.theme-system .theme-dark__forced .d\\:fc-pink-300 {
3069+
color: var(--pink-300) !important;
3070+
}
3071+
3072+
body.theme-dark .d\\:bg-pink-400,
3073+
.theme-dark__forced .d\\:bg-pink-400,
3074+
body.theme-system .theme-dark__forced .d\\:bg-pink-400 {
3075+
background-color: var(--pink-400) !important;
3076+
}
3077+
3078+
body.theme-dark .d\\:fc-pink-400,
3079+
.theme-dark__forced .d\\:fc-pink-400,
3080+
body.theme-system .theme-dark__forced .d\\:fc-pink-400 {
3081+
color: var(--pink-400) !important;
3082+
}
3083+
3084+
body.theme-dark .d\\:bg-pink-500,
3085+
.theme-dark__forced .d\\:bg-pink-500,
3086+
body.theme-system .theme-dark__forced .d\\:bg-pink-500 {
3087+
background-color: var(--pink-500) !important;
3088+
}
3089+
3090+
body.theme-dark .d\\:fc-pink-500,
3091+
.theme-dark__forced .d\\:fc-pink-500,
3092+
body.theme-system .theme-dark__forced .d\\:fc-pink-500 {
3093+
color: var(--pink-500) !important;
3094+
}
3095+
3096+
body.theme-dark .d\\:bg-pink-600,
3097+
.theme-dark__forced .d\\:bg-pink-600,
3098+
body.theme-system .theme-dark__forced .d\\:bg-pink-600 {
3099+
background-color: var(--pink-600) !important;
3100+
}
3101+
3102+
body.theme-dark .d\\:fc-pink-600,
3103+
.theme-dark__forced .d\\:fc-pink-600,
3104+
body.theme-system .theme-dark__forced .d\\:fc-pink-600 {
3105+
color: var(--pink-600) !important;
3106+
}
3107+
28623108
body.theme-dark .d\\:bg-gold-100,
28633109
.theme-dark__forced .d\\:bg-gold-100,
28643110
body.theme-system .theme-dark__forced .d\\:bg-gold-100 {

packages/stacks-classic/lib/atomic/__snapshots__/misc.less.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -820,27 +820,27 @@ exports[`atomic: misc > should output all atomic css classes 1`] = `
820820
}
821821
822822
.bs-sm.bs-hover:hover {
823-
box-shadow: 0 var(--su-static2) var(--su-static8) hsl(210, 8%, 95%) !important;
823+
box-shadow: 0 var(--su-static2) var(--su-static8) #f0efed !important;
824824
}
825825
826826
.bs-md.bs-hover:hover {
827-
box-shadow: 0 var(--su-static4) var(--su-static8) hsl(210, 8%, 85%) !important;
827+
box-shadow: 0 var(--su-static4) var(--su-static8) #d7d8db !important;
828828
}
829829
830830
.bs-lg.bs-hover:hover {
831-
box-shadow: 0 var(--su-static4) var(--su-static12) hsla(210, 8%, 68%, 0.7) !important;
831+
box-shadow: 0 var(--su-static4) var(--su-static12) rgba(132, 135, 140, 0.7) !important;
832832
}
833833
834834
.bs-i-sm.bs-hover:hover {
835-
box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 hsla(210, 9%, 75%, 0.75) !important;
835+
box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 rgba(167, 170, 176, 0.75) !important;
836836
}
837837
838838
.bs-i-md.bs-hover:hover {
839-
box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 hsla(210, 8%, 68%, 0.8) !important;
839+
box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 rgba(132, 135, 140, 0.8) !important;
840840
}
841841
842842
.bs-i-lg.bs-hover:hover {
843-
box-shadow: inset 0 var(--su-static1) var(--su-static12) 0 hsl(210, 8%, 68%) !important;
843+
box-shadow: inset 0 var(--su-static1) var(--su-static12) 0 #84878c !important;
844844
}
845845
846846
.t {

packages/stacks-classic/lib/atomic/misc.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
// $ OUTLINE
298298
// ----------------------------------------------------------------------------
299299
.outline-none { outline: 0 !important; }
300-
.outline-ring { outline: solid var(--su-static4) var(--translucent-secondary); }
300+
.outline-ring { outline: solid var(--su-static4) var(--translucent-secondary); } // TODO SHINE revisit this value once theme colors are finalized
301301

302302
.f\:outline-ring {
303303
&:focus,

packages/stacks-classic/lib/components/activity-indicator/activity-indicator.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.s-activity-indicator {
2-
--_ai-bg: var(--theme-secondary-400);
2+
--_ai-bg: var(--pink-400);
33
--_ai-fc: var(--white);
44
--_ai-min-size: var(--su-static16);
55
--_ai-p: 0 calc(var(--su-static4) - var(--su-static1));
@@ -27,7 +27,6 @@
2727

2828
&&__warning {
2929
--_ai-bg: var(--yellow-400);
30-
--_ai-fc: var(--_black-static);
3130

3231
.highcontrast-mode({
3332
--_ai-bg: var(--yellow-500); // needs to be here to override default high contrast

packages/stacks-classic/lib/components/anchor/anchor.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
&&__default {
31-
--_an-a-fc: var(--theme-link-color, var(--theme-secondary-400));
31+
--_an-a-fc: var(--theme-link-color, var(--theme-secondary));
3232
--_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
3333
--_an-a-fc-visited: var(--theme-link-color-visited, var(--purple-500));
3434
--_an-a-fc-hover-visited: var(--theme-link-color-hover, var(--purple-600));

packages/stacks-classic/lib/components/award-bling/award-bling.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
--_ab-before-bg: unset;
33

44
// VARIANTS
5+
// TODO SHINE expect a conflict with the award-bling updates. Prefer the changes in https://github.com/StackExchange/Stacks/pull/2013.
56
&&__gold {
6-
--_ab-before-bg: var(--gold-300);
7+
--_ab-before-bg: var(--yellow-300);
78
}
89

910
&&__silver {
10-
--_ab-before-bg: var(--silver-300);
11+
--_ab-before-bg: var(--blue-300);
1112
}
1213

1314
&&__bronze {
14-
--_ab-before-bg: var(--bronze-300);
15+
--_ab-before-bg: var(--orange-300);
1516
}
1617

1718
// CHILD ELEMENTS

0 commit comments

Comments
 (0)