Files
full-stack-fastapi-template/frontend/src/theme.tsx

61 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-03-17 17:28:45 +01:00
import { extendTheme } from "@chakra-ui/react"
2024-03-11 16:50:46 +01:00
const disabledStyles = {
_disabled: {
2024-03-17 17:28:45 +01:00
backgroundColor: "ui.main",
2024-03-11 16:50:46 +01:00
},
}
const theme = extendTheme({
2024-03-08 14:58:36 +01:00
colors: {
ui: {
2024-03-17 17:28:45 +01:00
main: "#009688",
secondary: "#EDF2F7",
success: "#48BB78",
danger: "#E53E3E",
white: "#FFFFFF",
dark: "#1A202C",
darkSlate: "#252D3D",
},
2024-03-08 14:58:36 +01:00
},
components: {
2024-03-11 16:50:46 +01:00
Button: {
variants: {
primary: {
2024-03-17 17:28:45 +01:00
backgroundColor: "ui.main",
color: "ui.white",
2024-03-11 16:50:46 +01:00
_hover: {
2024-03-17 17:28:45 +01:00
backgroundColor: "#00766C",
2024-03-11 16:50:46 +01:00
},
_disabled: {
...disabledStyles,
_hover: {
...disabledStyles,
},
},
},
danger: {
2024-03-17 17:28:45 +01:00
backgroundColor: "ui.danger",
color: "ui.white",
2024-03-11 16:50:46 +01:00
_hover: {
2024-03-17 17:28:45 +01:00
backgroundColor: "#E32727",
2024-03-11 16:50:46 +01:00
},
},
},
},
2024-03-08 14:58:36 +01:00
Tabs: {
variants: {
enclosed: {
tab: {
_selected: {
2024-03-17 17:28:45 +01:00
color: "ui.main",
},
2024-03-08 14:58:36 +01:00
},
},
2024-03-08 14:58:36 +01:00
},
},
2024-03-08 14:58:36 +01:00
},
})
2024-03-08 14:58:36 +01:00
export default theme