separate gradient color creation to its own module.

revert accidentally removed var.

index page gradient uses same colors as weather page.