@atlaskit/atlassian-navigation
Version:
A horizontal navigation component for Atlassian apps.
12 lines (11 loc) • 531 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getContrastColor = void 0;
var _chromatism = _interopRequireDefault(require("chromatism"));
var _hexToRgba = require("./hex-to-rgba");
var getContrastColor = exports.getContrastColor = function getContrastColor(contrastValue, opacityValue, color) {
return (0, _hexToRgba.hexToRGBA)(_chromatism.default.contrast(contrastValue, color).hex, opacityValue);
};