Code block for color field type