Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getSecondaryColor(primaryColor: string): string {
// choose the second color
return generateColor(primaryColor)[0];
}
export function getSecondaryColor(primaryColor) {
// choose the second color
return generateColor(primaryColor)[0];
}
export function getSecondaryColor(primaryColor: string): string {
return generateColor(primaryColor)[0];
}
export default function ColorPatterns({ color }) {
return generate(color).map((colorString, i) => (
));
}
exports.getAntdSerials = (primaryColor, tintModulus = 0.1) => {
const num = Math.floor(1 / tintModulus) - 1;
const tintColors = Array.from({ length: num }, (_, i) => tint_1.default(primaryColor, i * tintModulus));
return tintColors.concat(colors_1.generate(primaryColor));
};
exports.default = exports.getAntdSerials;