Cream the butter and sugar:
In a large bowl, beat the softened butter, granulated sugar, and brown sugar together until light and fluffy, about 2–3 minutes.
Add eggs and vanilla:
Beat in the eggs one at a time, then mix in the vanilla extract until fully incorporated.
Mix the dry ingredients:
In a separate bowl, whisk together the flour, baking soda, and salt. Gradually add the dry ingredients to the wet mixture and mix until a soft dough forms.
Divide and flavor the dough:
Split the dough in half. Leave one half as is (vanilla), and mix the cocoa powder (and milk if needed) into the other half until evenly combined for the chocolate dough.
Create the marbled effect:
Scoop a tablespoon each of vanilla and chocolate dough. Press them together and gently swirl or roll to form a marbled ball. Repeat with remaining dough.
Chill (optional):
For best texture, chill the shaped dough balls in the refrigerator for 30 minutes.
Bake the cookies:
Preheat your oven to 350°F (175°C). Line baking sheets with parchment paper. Place the dough balls 2 inches apart and bake for 9–11 minutes, or until the edges are just set but centers still look slightly soft.
Cool and enjoy:
Let cookies cool on the sheet for 5 minutes before transferring to a wire rack. Enjoy warm or at room temperature!