UNPKG

@deep-foundation/deepcase

Version:

[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label&color=purple)](https://discord.gg/deep-

12 lines 438 B
import { useTheme, useColorMode } from '@chakra-ui/react'; export function useChackraColor(color) { var _a; const theme = useTheme(); return (_a = theme.__cssMap[`colors.${color}`]) === null || _a === void 0 ? void 0 : _a.value; } export function useChackraGlobal() { const theme = useTheme(); const { colorMode } = useColorMode(); return theme.styles.global({ colorMode }); } //# sourceMappingURL=get-color.js.map