"Fuchsia" #f0f
this demo talks about the "compilcated gradient syntax" which like, what? you can just do linear-gradient(90deg, #000, #F0F, #FFF) the only "complicated" bit is remembering the word "linear"

this demo talks about the "compilcated gradient syntax"

which like, what? you can just do linear-gradient(90deg, #000, #F0F, #FFF)

the only "complicated" bit is remembering the word "linear"

"Magenta" #f0f

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
"Fuchsia" #f0f
"Fuchsia" #f0f
"Magenta"
#f0f

@lethalbit my personal favorite is C/CSS:

#define css , body:after { content: "Hello from CSS!"; color: #f0f; }
#include <stdio.h>
int main() {
printf("Hello from C!\n");
return 0;
}

which is completely valid C & CSS

"Magenta"
#f0f