caramelizing the onions slowly in butter until they're rich golden brown (but not so dark as to taste bitter) produces the sweetest, most flavorful results.