diff --git a/src/color/shade.js b/src/color/shade.js index 7a50efe5..04fcbe05 100644 --- a/src/color/shade.js +++ b/src/color/shade.js @@ -27,7 +27,7 @@ import mix from './mix' function shade(percentage: number | string, color: string): string { if (color === 'transparent') return color - return mix(parseFloat(percentage), 'rgb(0, 0, 0)', color) + return mix(parseFloat(percentage), '#000000', color) } // prettier-ignore diff --git a/src/color/tint.js b/src/color/tint.js index e4bd9417..a422af79 100644 --- a/src/color/tint.js +++ b/src/color/tint.js @@ -27,7 +27,7 @@ import mix from './mix' function tint(percentage: number | string, color: string): string { if (color === 'transparent') return color - return mix(parseFloat(percentage), 'rgb(255, 255, 255)', color) + return mix(parseFloat(percentage), '#FFFFFF', color) } // prettier-ignore