Put sugar, salt, vinegar and spices in a gallon jar. If you don't have a jar that's large enough, you can put them in a tupperware container or several smaller glass jars.
Shake well. Add sliced cucumbers and onion. Stir well.
Keep refrigerated and shake or stir well every day for four days. On the fifth day they are ready to eat.
These will keep in the refrigerator for up to 3 weeks.
Notes
The sodium count is not accurate for this recipe, because you aren't going to consume all the brine.Serving size is about a ¼ cup of pickles.