reactive color classes based on distance