File size: 413 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { useColorModeValue } from '@chakra-ui/react';
const useSkeletonColor = () => {
const startColor = useColorModeValue(
'rgb(23 23 23 / 5%)',
'rgb(255 255 255 / 5%)'
);
const endColor = useColorModeValue(
'rgb(23 23 23 / 20%)',
'rgb(255 255 255 / 20%)'
);
const skeletonColor = { startColor, endColor };
return skeletonColor;
};
export default useSkeletonColor;
|