Dynamically allocate dom color map