postcss-color-function icon indicating copy to clipboard operation
postcss-color-function copied to clipboard

Please add support for fractional percentages

Open jwdallas opened this issue 5 years ago • 1 comments

Hello, I’m trying to hit a specific rgb result value with my color transformations and finding there’s no support for fractional percentages.

Input

fire {
  color: color(rgba(29, 29, 31, 1) tint(4%));
}

water {
  color: color(rgba(29, 29, 31, 1) tint(4.3%));
}

Output

fire {
  color: rgb(38, 38, 40);
}

water {
  color: rgb(38, 38, 40);
}

Thanks for creating this wonderful polyfill. It’s been awesome to use.

jwdallas avatar Apr 05 '20 19:04 jwdallas

@jwdallas try https://github.com/jonathantneal/postcss-color-mod-function

Semigradsky avatar Apr 07 '20 09:04 Semigradsky