mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 18:33:09 +00:00
Use lab color interpolation to improve the dark end of accent ramps
This commit is contained in:
parent
364c3f2f00
commit
e0a477265d
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ import {
|
|||
|
||||
export function colorRamp(color: Color): Scale {
|
||||
let endColor = color.desaturate(1).brighten(5);
|
||||
let startColor = color.desaturate(1).darken(5);
|
||||
return chroma.scale([startColor, color, endColor]).mode("hsl");
|
||||
let startColor = color.desaturate(1).darken(4);
|
||||
return chroma.scale([startColor, color, endColor]).mode("lab");
|
||||
}
|
||||
|
||||
export function createColorScheme(
|
||||
|
|
Loading…
Reference in a new issue