omgovich / colord

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

'transparent' still not supported? #124

Open cimak opened 3 months ago

cimak commented 3 months ago

Why is transparent equal to black @2.9.3?

colord('transparent').isEqual('#000'); // true
colord('transparent').isEqual('black')); // true
colord('rgba(0,0,0, 0.0)').isEqual('#000'); // true

colord('transparent').toHex(); // '#000000'
colord('transparent').toRgbString(); // 'rgb(0, 0, 0)'
colord('rgba(0,0,0, 0)').toRgbString(); // 'rgb(0, 0, 0)'