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

62 lines
1.1 KiB
TypeScript
Raw Normal View History

import { extendTheme } from '@chakra-ui/react'
2024-03-11 16:50:46 +01:00
const disabledStyles = {
_disabled: {
backgroundColor: 'ui.main',
},
}
const theme = extendTheme({
2024-03-08 14:58:36 +01:00
colors: {
ui: {
main: '#009688',
secondary: '#EDF2F7',
success: '#48BB78',
danger: '#E53E3E',
2024-03-11 16:50:46 +01:00
light: '#E2E8F0',
dark: '#1A202C',
white: '#FFFFFF',
darkSlate: '#252D3D',
},
2024-03-08 14:58:36 +01:00
},
components: {
2024-03-11 16:50:46 +01:00
Button: {
variants: {
primary: {
backgroundColor: 'ui.main',
color: 'ui.white',
_hover: {
backgroundColor: '#00766C',
},
_disabled: {
...disabledStyles,
_hover: {
...disabledStyles,
},
},
},
danger: {
backgroundColor: 'ui.danger',
color: 'ui.white',
_hover: {
backgroundColor: '#E32727',
},
},
},
},
2024-03-08 14:58:36 +01:00
Tabs: {
variants: {
enclosed: {
tab: {
_selected: {
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