@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
18 lines (16 loc) • 560 B
JavaScript
import { getColor } from "@xstyled/system";
//#region src/theme/foundations/transformers.ts
var transformers_default = {
border: (value, { props }) => {
if (typeof value === "number") return `${value}px solid`;
const [width, style = "", color] = value.split(" ");
return `${width} ${style} ${getColor(color)(props) ?? ""}`;
},
space: (value) => {
return typeof value === "string" ? value : `${value * 8}px`;
}
};
//#endregion
export { transformers_default as default };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=transformers.js.map