export class Css {
    static getStyle(property, element = document.documentElement) {
        return window.getComputedStyle(element).getPropertyValue(property);
    }
    static setStyle(property, value, element = document.documentElement) {
        element.style.setProperty(property, value);
    }
    static getVar(property, element = document.documentElement) {
        if (property[0] !== '-' && property[1] !== '-')
            property = '--' + property;
        return Css.getStyle(property, element);
    }
    static setVar(property, value, element = document.documentElement) {
        if (property[0] !== '-' && property[1] !== '-')
            property = '--' + property;
        Css.setStyle(property, value, element);
    }
}
//# sourceMappingURL=css.js.map