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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/pancake-uikit/src/components/Card/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const light: CardTheme = {
boxShadowSuccess: shadows.success,
boxShadowWarning: shadows.warning,
cardHeaderBackground: {
default: "linear-gradient(111.68deg, #F2ECF2 0%, #E8F2F6 100%)",
blue: "linear-gradient(180deg, #A7E8F1 0%, #94E1F2 100%)",
violet: "linear-gradient(180deg, #E2C9FB 0%, #CDB8FA 100%)",
default: lightColors.gradients.cardHeader,
blue: lightColors.gradients.blue,
violet: lightColors.gradients.violet,
},
dropShadow: "drop-shadow(0px 1px 4px rgba(25, 19, 38, 0.15))",
};
Expand All @@ -23,9 +23,9 @@ export const dark: CardTheme = {
boxShadowSuccess: shadows.success,
boxShadowWarning: shadows.warning,
cardHeaderBackground: {
default: "linear-gradient(166.77deg, #3B4155 0%, #3A3045 100%)",
blue: "linear-gradient(180deg, #00707F 0%, #19778C 100%)",
violet: "linear-gradient(180deg, #6C4999 0%, #6D4DB2 100%)",
default: darkColors.gradients.cardHeader,
blue: darkColors.gradients.blue,
violet: darkColors.gradients.violet,
},
dropShadow: "drop-shadow(0px 1px 4px rgba(25, 19, 38, 0.15))",
};
6 changes: 6 additions & 0 deletions packages/pancake-uikit/src/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export const lightColors: Colors = {
card: "#FFFFFF",
gradients: {
bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)",
cardHeader: "linear-gradient(111.68deg, #F2ECF2 0%, #E8F2F6 100%)",
blue: "linear-gradient(180deg, #A7E8F1 0%, #94E1F2 100%)",
violet: "linear-gradient(180deg, #E2C9FB 0%, #CDB8FA 100%)",
},
};

Expand All @@ -55,5 +58,8 @@ export const darkColors: Colors = {
card: "#27262c",
gradients: {
bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)",
cardHeader: "linear-gradient(166.77deg, #3B4155 0%, #3A3045 100%)",
blue: "linear-gradient(180deg, #00707F 0%, #19778C 100%)",
violet: "linear-gradient(180deg, #6C4999 0%, #6D4DB2 100%)",
},
};
3 changes: 3 additions & 0 deletions packages/pancake-uikit/src/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export type Shadows = {

export type Gradients = {
bubblegum: string;
cardHeader: string;
blue: string;
violet: string;
};

export type Colors = {
Expand Down