bugfixes
This commit is contained in:
@@ -178,9 +178,9 @@ export function uuid() {
|
||||
}
|
||||
|
||||
export function lightenColor(color, lightness = 85, alpha = null) {
|
||||
let c = new Color(color).hsl().lightness(lightness)
|
||||
let c = new Color(color).hsl().lightness(lightness).rgb()
|
||||
if (alpha !== null)
|
||||
c = c.rgb().alpha(alpha)
|
||||
c = c.alpha(alpha)
|
||||
return c.string()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user