postcss-color-golf plugin 1.2.0 released!
https://github.com/xero/postcss-color-golf/releases/tag/1.2.0
rgb(255,0,0) → red
aliceblue → #f0f8ff
#aabbcc → #abc;
rgba(255, 170, 187) → #fab
rgba(255, 170, 187, 0.8) → #fabcc
rgb(255, 255, 255, 1) → #fff
rgb(0, 255, 0, 0.8) → #0f0c
fuchsia → #f0f
#postcss #css #csstransforms #color #codegolf #golf #plugin

Release v1.2.0 · xero/postcss-color-golf
now fully supporting rgba to 4/8 character hex codes!
bug fixes for string name double replacements.
examples:
color:rgb(255,0,0) => color:red
background:aliceblue => background:#f0f8ff
border:1px ...
GitHub