Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the Android naming conventions for colors with alpha?

I have text color with alpha.
Is it good idea to name color like black_20 where 20 is 20% opacity?

I would like to find some general convention which will work fine in bigger team with more exotic colors that most of people cannot immediately recognize by name.

We use this tool for non-alpha colors http://chir.ag/projects/name-that-color/#6195ED.

like image 218
Houskov Avatar asked Sep 05 '25 03:09

Houskov


1 Answers

Normally all of the naming conventions follow this convention :

WHAT_WHERE_DESCRIPTION_SIZE

This can be followed for colors also, but you dont need to specify WHAT, so it will be :

WHERE_DESCRIPTION_SIZE

for example : If you want to name a color blue with an alpha 50 , you can use the name as blue_50

like image 115
Pro Mode Avatar answered Sep 08 '25 00:09

Pro Mode