Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

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 41365fe commit 868e214
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 868e214

Please sign in to comment.