"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Css = /** @class */ (function () {
    function Css() {
    }
    Css.getStyle = function (property, element) {
        if (element === void 0) { element = document.documentElement; }
        return window.getComputedStyle(element).getPropertyValue(property);
    };
    Css.setStyle = function (property, value, element) {
        if (element === void 0) { element = document.documentElement; }
        element.style.setProperty(property, value);
    };
    Css.getVar = function (property, element) {
        if (element === void 0) { element = document.documentElement; }
        if (property[0] !== '-' && property[1] !== '-')
            property = '--' + property;
        return Css.getStyle(property, element);
    };
    Css.setVar = function (property, value, element) {
        if (element === void 0) { element = document.documentElement; }
        if (property[0] !== '-' && property[1] !== '-')
            property = '--' + property;
        Css.setStyle(property, value, element);
    };
    return Css;
}());
exports.Css = Css;
//# sourceMappingURL=css.js.map