We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { useColorModeValue } from "@chakra-ui/react"; export default function useColor() { const bodyBg = useColorModeValue("white", "gray.800"); const subtleBg = useColorModeValue("gray.100", "gray.700"); const alphaBg = useColorModeValue("gray.100", "whiteAlpha.200"); const accentBg = useColorModeValue("gray.200", "gray.900"); const getCountColor = (solCount: number) => { if (solCount === 0) return "#ff6b18"; if (solCount === 1) return "#47c84c"; if (solCount <= 10) return "#1bbaff"; return "#2189ff"; }; return { bodyBg, subtleBg, alphaBg, accentBg, getCountColor }; }
{ "probId": "12899", "author": "codeisneverodd", }
The text was updated successfully, but these errors were encountered:
codeisneverodd
No branches or pull requests
제출한 정답
풀이 데이터
The text was updated successfully, but these errors were encountered: