UNPKG

@coreui/utils

Version:
22 lines (17 loc) 717 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var getStyle = require('./getStyle.js'); /** * -------------------------------------------------------------------------- * CoreUI Utils (v2.0.1): getColor.ts * Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE) * -------------------------------------------------------------------------- */ var getColor = function (rawProperty, element) { if (element === void 0) { element = document.body; } var property = "--".concat(rawProperty); var style = getStyle.default(property, element); return style ? style : rawProperty; }; exports.default = getColor; //# sourceMappingURL=getColor.js.map