Skip to content

Commit b0840b9

Browse files
refactor(theme/Badge): add solid variant
1 parent dc43a28 commit b0840b9

File tree

1 file changed

+7
-2
lines changed
  • src/@chakra-ui/gatsby-plugin/components

1 file changed

+7
-2
lines changed

src/@chakra-ui/gatsby-plugin/components/Badge.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ const variantSecondary: SystemStyleObject = {
55
color: "text",
66
}
77

8+
const variantSolid: SystemStyleObject = {
9+
color: "black300",
10+
background: "primary100",
11+
}
12+
813
export const Badge: ComponentStyleConfig = {
914
baseStyle: {
1015
borderRadius: "base",
1116
border: "1px solid",
1217
borderColor: "transparent",
13-
color: "black300",
1418
fontWeight: "initial",
1519
py: 1,
1620
px: 2,
1721
textTransform: "uppercase",
1822
},
1923
variants: {
24+
solid: variantSolid,
2025
secondary: variantSecondary,
2126
},
2227
sizes: {
@@ -29,6 +34,6 @@ export const Badge: ComponentStyleConfig = {
2934
},
3035
defaultProps: {
3136
// Remove the default from Chakra
32-
variant: "",
37+
variant: "solid",
3338
},
3439
}

0 commit comments

Comments
 (0)