DEV Community

Cover image for The many ways to write a color in CSS

The many ways to write a color in CSS

Alvaro Montoro on August 28, 2020

Hi! My name is Cyan, and I am a Color. I'm not as popular as I used to be –not trying to brag, but I was a hit on the Internet in the 90s & ear...
Collapse
 
madza profile image
Madza

I use just names and hex, sometimes rgb when I have to

Collapse
 
alvaromontoro profile image
Alvaro Montoro

I really like HSL. Combined with CSS variables, it is perfect for creating simple themes.

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Seconded! Though I find myself mainly using HSL for grays.

Collapse
 
nombrekeff profile image
Keff

Nice one!

Collapse
 
lautarolobo profile image
Lautaro Lobo

Álvaro, que original y creativo éste post, me encantó está genial 😄

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Gracias ☺️

Collapse
 
maxart2501 profile image
Massimo Artizzu

Cool and original post! 👏

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thanks 😊

Collapse
 
devencourt profile image
Brian Bethencourt

what a great post! this is so cute, alvaro

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thanks :)

Collapse
 
dmahely profile image
Doaa Mahely

Very humorous, great post :)

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thanks 😊

Collapse
 
manishfoodtechs profile image
manish srivastava

Very nice 👌👌👌👌

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thanks 😊