Skip to content

Commit

Permalink
refactor: remame variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Шараев Айнур Раильевич committed Jul 6, 2021
1 parent f2329d1 commit a853401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getHsl = (color: string) => {
return { hue, saturation, lightness };
};

const lightnessFn = (number: number, saturation: number) => saturation + 50 - 0.1 * number;
const lightnessFn = (number: number, lightness: number) => lightness + 50 - 0.1 * number;

const saturationFn = (number: number, saturation: number) => {
/** for black and white palette => saturation doesn't change */
Expand Down

0 comments on commit a853401

Please sign in to comment.