From 296341ef1f590a88ced9e213eff0573c44c71210 Mon Sep 17 00:00:00 2001 From: Mykola Shlyakhtun Date: Fri, 14 Jun 2024 10:27:15 +0300 Subject: [PATCH 1/9] Change 'blue' to 'indigo' in all AI branded components (Toast and AI sparkle buttons) #1624 --- packages/components/src/AIFixesButton.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/components/src/AIFixesButton.js b/packages/components/src/AIFixesButton.js index 4f3e96d7ef6..262bbcb0e4f 100644 --- a/packages/components/src/AIFixesButton.js +++ b/packages/components/src/AIFixesButton.js @@ -4,21 +4,18 @@ import IconButtonBase from "./IconButtonBase"; const yoastPrimary50 = "#FAF3F7"; const yoastPrimary100 = "#F3E5ED"; -const yoastPrimary300 = "#CD82AB"; const yoastPrimary400 = "#B94986"; const yoastPrimary500 = "#A61E69"; -const blue50 = "#EFF6FF"; -const blue100 = "#DBEAFE"; -const blue300 = "#93C5FD"; -const blue500 = "#3B82F6"; +const yoastIndigo50 = "EEF2FF"; +const yoastIndigo100 = "E0E7FF"; +const yoastIndigo500 = "6366F1"; const direction = "to bottom right"; const gradientEffect = { - defaultStateBackground: `linear-gradient(${direction}, ${yoastPrimary50}, ${blue50})`, - defaultStateBorder: `linear-gradient(${direction}, ${yoastPrimary300}, ${blue300}) 1`, - hoverStateBackground: `linear-gradient(${direction}, ${yoastPrimary100}, ${blue100})`, - pressedStateBackground: `linear-gradient(${direction}, ${yoastPrimary500}, ${blue500})`, + defaultStateBackground: `linear-gradient(${direction}, ${yoastPrimary50}, ${yoastIndigo50})`, + hoverStateBackground: `linear-gradient(${direction}, ${yoastPrimary100}, ${yoastIndigo100})`, + pressedStateBackground: `linear-gradient(${direction}, ${yoastPrimary500}, ${yoastIndigo500})`, }; const AIFixesButtonBase = styled( IconButtonBase )` From dbcd2e038ee51c4825d0f5cf0badcb0dda755782 Mon Sep 17 00:00:00 2001 From: Mykola Shlyakhtun Date: Fri, 14 Jun 2024 12:34:48 +0300 Subject: [PATCH 2/9] Change 'blue' to 'indigo' in all AI branded components (Toast and AI sparkle buttons) #1624 Screeshots updated. Sparkles icon updated. --- .../IconAIFixesButtonTest.js.snap | 8 ++-- .../components/sparkles-icon.js | 19 ++++----- .../__snapshots__/SparklesIcon.test.js.snap | 40 +++++++++---------- 3 files changed, 32 insertions(+), 35 deletions(-) diff --git a/packages/components/tests/__snapshots__/IconAIFixesButtonTest.js.snap b/packages/components/tests/__snapshots__/IconAIFixesButtonTest.js.snap index e0c89238aad..97341d37ef6 100644 --- a/packages/components/tests/__snapshots__/IconAIFixesButtonTest.js.snap +++ b/packages/components/tests/__snapshots__/IconAIFixesButtonTest.js.snap @@ -35,12 +35,12 @@ exports[`the pressed IconAIFixesButton matches the snapshot 1`] = ` .c1 { overflow: hidden; border: none; - background-image: linear-gradient(to bottom right,#A61E69,#3B82F6) !important; + background-image: linear-gradient(to bottom right,#A61E69,6366F1) !important; box-shadow: inset 0 -2px 0 #B94986; } .c1:hover { - background-image: linear-gradient(to bottom right,#A61E69,#3B82F6) !important; + background-image: linear-gradient(to bottom right,#A61E69,6366F1) !important; }