@chayns/colors
Version:
JavaScript utility functions for the calculation of colors for chayns
9 lines (8 loc) • 327 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
export var getChaynsColor = function getChaynsColor(name) {
return "--color-".concat(name);
};
export var getChaynsColorVar = function getChaynsColorVar(name) {
return "var(".concat(getChaynsColor(name), ")");
};
//# sourceMappingURL=var.js.map