Chocolate chip cookies are commonly made with white sugar; brown sugar; flour; a small portion of salt; eggs; a leavening agent such as baking powder; a fat, typically butter or shortening; vanilla extract; and semi-sweet chocolate pieces. Some recipes also include milk or nuts (such as chopped walnuts) in the dough.