2026-05-15 19:18:10 +03:00

72 lines
1.5 KiB
TypeScript

import { getColor } from "@chakra-ui/theme-tools";
const styles = {
baseStyle: {
field: {
fontWeight: "500",
},
},
sizes: {
lg: {
field: {
borderRadius: "xl",
fontSize: "xl",
height: "16",
},
},
},
variants: {
brand: (props: Record<string, any>) => {
const { theme } = props;
return {
field: {
border: "1px solid",
borderColor: "white.200",
bg: "black.200",
color: "white",
textAlign: "right",
p: "4",
pt: "0",
_hover: {
borderColor: "brand.purple",
},
_focus: {
zIndex: 1,
borderColor: "brand.purple",
boxShadow: `0 0 0 1px ${getColor(theme, "brand.purple")}`,
},
_invalid: {
borderColor: "red.500",
boxShadow: `0 0 0 1px ${getColor(theme, "red.500")}`,
},
},
};
},
search: {
field: {
bg: "rgba(255, 255, 255, 0.2)",
color: "#788DB2",
border: "solid 1px",
borderColor: "brand.deepBlue",
borderRadius: "md",
},
},
filled: {
field: {
bg: "#071436",
fontSize: "13px",
borderColor: "rgba(255, 255, 255, 0.2)",
_hover: {
bg: "#071436",
},
_focus: {
borderColor: "brand.purple",
},
},
},
},
};
export default styles;