Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aad301a

Browse files
authoredDec 7, 2022
Merge pull request #37 from threshold-network/button-sequence-variant
Button sequence variant
2 parents 928de55 + 83abf18 commit aad301a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎src/theme/Button.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,21 @@ export const Button = {
8181
},
8282
}
8383
},
84+
sequence: (props: any) => {
85+
const selectedBg = mode("brand.300", "brand.500")(props)
86+
87+
return {
88+
color: mode(undefined, "white")(props),
89+
backgroundColor: mode("brand.75", "gray.700")(props),
90+
_active: {
91+
color: "white",
92+
backgroundColor: selectedBg,
93+
},
94+
_hover: {
95+
backgroundColor: selectedBg,
96+
color: "white",
97+
},
98+
}
99+
},
84100
},
85101
}

‎src/theme/utils/colors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const colors = {
99
},
1010
brand: {
1111
50: "#FCF9FF",
12+
75: "#F2EDFF",
1213
100: "#D5C6FF",
1314
// 200
1415
300: "#9974FF",

0 commit comments

Comments
 (0)
Please sign in to comment.