mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +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 {
|
export function colorRamp(color: Color): Scale {
|
||||||
let endColor = color.desaturate(1).brighten(5);
|
let endColor = color.desaturate(1).brighten(5);
|
||||||
let startColor = color.desaturate(1).darken(5);
|
let startColor = color.desaturate(1).darken(4);
|
||||||
return chroma.scale([startColor, color, endColor]).mode("hsl");
|
return chroma.scale([startColor, color, endColor]).mode("lab");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createColorScheme(
|
export function createColorScheme(
|
||||||
|
|
Loading…
Reference in a new issue