Bring onion, spices, vinegar and sugar to a boil and add vegetables. Refrigerate 24 hours before serving.