import chroma from 'chroma-js';

var getColorVariant = function (color, variant, _a) {
    var _b = _a.alpha, alpha = _b === void 0 ? 1 : _b, _c = _a.grade, grade = _c === void 0 ? 1 : _c;
    switch (variant) {
        case 'light':
            return chroma(color).brighten(grade).alpha(alpha).css();
        case 'dark':
            return chroma(color).darken(grade).saturate(grade).alpha(alpha).css();
        default:
            return chroma(color).alpha(alpha).css();
    }
};
var toPx = function (value) {
    return "".concat(value, "px");
};

export { getColorVariant, toPx };
