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 brightenColor(c) {
let color = hsl(c);
if (hsl.l > 0.5) {
color = color.brighter(0.5);
} else {
color = color.brighter(0.8);
}
return color.toString();
}