@chakra-ui/styled-system
Version:
Style function for css-in-js building component libraries
29 lines • 924 B
JavaScript
import { t, transforms } from "../utils";
export var background = {
background: t.colors("background"),
backgroundColor: t.colors("backgroundColor"),
backgroundImage: t.propT("backgroundImage", transforms.bgImage),
backgroundSize: true,
backgroundPosition: true,
backgroundRepeat: true,
backgroundAttachment: true,
backgroundClip: {
transform: transforms.bgClip
},
bgSize: t.prop("backgroundSize"),
bgPosition: t.prop("backgroundPosition"),
bg: t.colors("background"),
bgColor: t.colors("backgroundColor"),
bgPos: t.prop("backgroundPosition"),
bgRepeat: t.prop("backgroundRepeat"),
bgAttachment: t.prop("backgroundAttachment"),
bgGradient: t.propT("backgroundImage", transforms.gradient),
bgClip: {
transform: transforms.bgClip
}
};
Object.assign(background, {
bgImage: background.backgroundImage,
bgImg: background.backgroundImage
});
//# sourceMappingURL=background.js.map