omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.67k stars 49 forks source link

Support exotic notations for angles in HSL #40

Closed bartveneman closed 3 years ago

bartveneman commented 3 years ago

I know these are very unlikely patterns to run into, but apparently they exist, so support for them would be nice (but definitely not required):

test-angles {
  color: hsl(.75turn, 60%, 70%);
  color: hsl(4.71239rad, 60%, 70%);
}

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsl_syntax_variations

omgovich commented 3 years ago

Hey @bartveneman. Thanks for the issue! Feels like supporting of those units is quite important thing — I'll update the parsers in a few days.

omgovich commented 3 years ago

Thanks for your support on Patreon BTW. It means a lot to me!

omgovich commented 3 years ago

Hey! Just released v1.6 with the support for all CSS angle units included.