-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a custom styles for
Stepper
and Tabs
- Loading branch information
1 parent
f6b22b0
commit a25c0ed
Showing
3 changed files
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { mode } from "@chakra-ui/theme-tools" | ||
import type { StyleFunctionProps } from "@chakra-ui/styled-system" | ||
import { ComponentSingleStyleConfig } from "@chakra-ui/react" | ||
|
||
const Stepper: ComponentSingleStyleConfig = { | ||
baseStyle: { | ||
indicator: { | ||
borderRadius: 4, | ||
fontWeight: "500", | ||
}, | ||
step: { | ||
gap: 6, | ||
}, | ||
}, | ||
variants: { | ||
basic: (props: StyleFunctionProps) => ({ | ||
indicator: { | ||
"&[data-status=complete]": { | ||
// TODO: Set the correct color | ||
background: mode("black", "purple")(props), | ||
}, | ||
}, | ||
separator: { | ||
"&[data-status=complete]": { | ||
// TODO: Set the correct color | ||
background: mode("black", "purple")(props), | ||
}, | ||
}, | ||
}), | ||
}, | ||
} | ||
|
||
export default Stepper |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { mode } from "@chakra-ui/theme-tools" | ||
import type { StyleFunctionProps } from "@chakra-ui/styled-system" | ||
import { ComponentSingleStyleConfig } from "@chakra-ui/react" | ||
|
||
const Tabs: ComponentSingleStyleConfig = { | ||
variants: { | ||
underline: (props: StyleFunctionProps) => ({ | ||
tab: { | ||
padding: 0, | ||
fontWeight: 700, | ||
borderBottom: "4px solid", | ||
borderColor: "transparent", | ||
background: "transparent", | ||
_selected: { | ||
// TODO: Set the correct color | ||
color: mode("black", "black")(props), | ||
borderColor: mode("#F34900", "#F34900")(props), | ||
}, | ||
// TODO: Set the correct color | ||
color: mode("#675E60", "#675E60")(props), | ||
}, | ||
tablist: { | ||
borderBottom: "none", | ||
gap: 8, | ||
}, | ||
}), | ||
}, | ||
} | ||
|
||
export default Tabs |
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