"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const system_1 = require("@xstyled/system");
exports.default = {
    border: (value, { props }) => {
        var _a;
        if (typeof value === 'number')
            return `${value}px solid`;
        const values = value.split(' ');
        const [width, style = '', color] = values;
        const colorValue = (_a = (0, system_1.getColor)(color)(props)) !== null && _a !== void 0 ? _a : '';
        return `${width} ${style} ${colorValue}`;
    },
    space: (value) => {
        return typeof value === 'string' ? value : `${value * 8}px`;
    },
};
//# sourceMappingURL=transformers.js.map