UNPKG

@chakra-v2/styled-system

Version:

Style function for css-in-js building component libraries

29 lines (26 loc) 946 B
import { t } from '../utils/index.mjs'; import { transformFunctions } from '../utils/transform-functions.mjs'; const background = { background: t.colors("background"), backgroundColor: t.colors("backgroundColor"), backgroundImage: t.gradients("backgroundImage"), backgroundSize: true, backgroundPosition: true, backgroundRepeat: true, backgroundAttachment: true, backgroundClip: { transform: transformFunctions.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.gradients("backgroundImage"), bgClip: { transform: transformFunctions.bgClip } }; Object.assign(background, { bgImage: background.backgroundImage, bgImg: background.backgroundImage }); export { background };