Polymerization of low molecular weight hydrogelators to form electrochromic polymers.