@chayns/colors
Version:
JavaScript utility functions for the calculation of colors for chayns
10 lines (9 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SHORT_HEX_REGEX = exports.RGB_REGEX = exports.HEX_REGEX = void 0;
var HEX_REGEX = exports.HEX_REGEX = /^(?:#)?((?:[0-9a-f]{2}){3,4})$/i;
var SHORT_HEX_REGEX = exports.SHORT_HEX_REGEX = /^(?:#)?((?:[0-9a-f]){3})$/i;
var RGB_REGEX = exports.RGB_REGEX = /^(?:rgb|rgba)\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})(?:\s*,\s*(1|0|(?:0?\.[0-9]+)))?\s*\)$/i;
//# sourceMappingURL=constants.js.map