@deep-foundation/deepcase
Version:
[](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [](https://discord.gg/deep-
12 lines • 438 B
JavaScript
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