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

feat(colors): Add card gradients to colors theme #61

Merged

Conversation

ChefHutch
Copy link
Contributor

  • Add card gradients that are being used more and more in designs to theme/colors.ts

(in particular linear-gradient(111.68deg, #F2ECF2 0%, #E8F2F6 100%)
Screenshot 2021-04-09 at 14 34 40

  • Replace the existing cardHeaderBackground with these theme/colors values

@@ -32,6 +32,11 @@ export const lightColors: Colors = {
card: "#FFFFFF",
gradients: {
bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)",
cardBackground: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo this should ba at the root like bubblegum (generic color)

Copy link
Contributor Author

@ChefHutch ChefHutch Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure,

  gradients: {
    bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)",
    cardBackgroundDefault: "linear-gradient(166.77deg, #3B4155 0%, #3A3045 100%)",
    cardBackgroundBlue: "linear-gradient(180deg, #00707F 0%, #19778C 100%)",
    cardBackgroundViolet: "linear-gradient(180deg, #6C4999 0%, #6D4DB2 100%)",
  },

?

Or should we get bugs to come up with some fun, thematic names?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bubblegum is what is was called in Figma.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this to remove nesting & reflect Figma color scheme

@ChefHutch ChefHutch self-assigned this Apr 9, 2021
Comment on lines 32 to 36
cardBackground: {
default: string;
blue: string;
violet: string;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Gradients object should only be top-level values, i.e. no cardBackground. That means however we will need to come up with a name for default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea makes sense not to nest them. Let me ping Bugs for some inspiration on 'default'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this to remove nesting & reflect Figma color scheme

@hachiojidev hachiojidev merged commit 4c7a8ac into pancakeswap:master Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants