Skip to content

Commit

Permalink
Change 'blue' to 'indigo' in all AI branded components (Toast and AI …
Browse files Browse the repository at this point in the history
…sparkle buttons)

#1624
  • Loading branch information
mykola committed Jun 14, 2024
1 parent e123e78 commit 296341e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/components/src/AIFixesButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )`
Expand Down

0 comments on commit 296341e

Please sign in to comment.