-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update spinners to match the style guide
- Loading branch information
1 parent
0f7c042
commit 08bb49d
Showing
7 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,59 @@ | ||
import { defineStyle, defineStyleConfig } from "@chakra-ui/react" | ||
|
||
const baseStyle = defineStyle({ | ||
const variantBicolor = defineStyle({ | ||
color: "acre.50", | ||
borderWidth: 2, | ||
borderBottomColor: "acre.50", | ||
}) | ||
|
||
const variantFilled = defineStyle({ | ||
borderWidth: 3, | ||
borderTopColor: "brown.20", | ||
borderBottomColor: "brown.20", | ||
borderLeftColor: "brown.20", | ||
}) | ||
|
||
const variantUnicolor = defineStyle({ | ||
color: "acre.50", | ||
borderBottomColor: "acre.50", | ||
}) | ||
|
||
const variants = { | ||
filled: variantFilled, | ||
bicolor: variantBicolor, | ||
unicolor: variantUnicolor, | ||
} | ||
|
||
// TODO: Confirm with the design | ||
const sizeXl = defineStyle({ | ||
width: 16, | ||
height: 16, | ||
}) | ||
|
||
const size2Xl = defineStyle({ | ||
borderWidth: 3, | ||
width: 20, | ||
height: 20, | ||
}) | ||
|
||
const sizeLg = defineStyle({ | ||
borderWidth: 3, | ||
width: 14, | ||
height: 14, | ||
}) | ||
|
||
const sizeMd = defineStyle({ | ||
borderWidth: 2, | ||
width: 6, | ||
height: 6, | ||
}) | ||
|
||
// TODO: Confirm with the design | ||
const sizeSm = defineStyle({ | ||
borderWidth: 2, | ||
width: 4, | ||
height: 4, | ||
}) | ||
|
||
const sizes = { | ||
xl: sizeXl, | ||
"2xl": size2Xl, | ||
lg: sizeLg, | ||
md: sizeMd, | ||
sm: sizeSm, | ||
} | ||
|
||
export default defineStyleConfig({ | ||
baseStyle, | ||
defaultProps: { | ||
variant: "bicolor", | ||
}, | ||
sizes, | ||
variants, | ||
}) |