01 -
Preheat oven to 350°F and line a standard cupcake tin with paper liners.
02 -
In a large bowl, whisk together all-purpose flour, granulated sugar, cocoa powder, baking soda, baking powder, and salt until uniform.
03 -
In a separate bowl, combine buttermilk, vegetable oil, eggs, vanilla extract, white vinegar, and black food coloring if using. Whisk until smooth.
04 -
Pour wet mixture into dry mixture and fold together just until no dry pockets remain. Avoid overmixing to maintain a tender crumb.
05 -
Divide batter evenly among liners, filling each about two-thirds full to allow for rising.
06 -
Bake for 20 to 25 minutes or until a toothpick inserted in the center comes out clean.
07 -
Let cupcakes cool in pan for 5 minutes, then transfer to a wire rack to cool completely.
08 -
In a mixing bowl, beat softened cream cheese and unsalted butter until creamy. Gradually add powdered sugar, vanilla extract, and a pinch of salt, beating until smooth and fluffy.