typestyle / csx

Utility functions for TypeStyle
https://typestyle.github.io
MIT License
102 stars 14 forks source link

support percentages in rgb/rgba strings in color() #7

Open notoriousb1t opened 7 years ago

notoriousb1t commented 7 years ago

RGB spec: https://www.w3.org/TR/css3-color/#rgb-color

so color('rgb(100%, 0%, 0%)') should translate to rgb(255, 0, 0)