As an alternative to have hard coded with a million temperate templates in the css i wouild like to call a js function from the background color and thus
ie value y
return color #whatever
that way i would only need like 10 ranges and would be a lot less code than the hard coding
and would work with decimail values as well.