01 - Preheat your oven to 350°F. Line a 12-cup muffin pan with cupcake liners.
02 - In a medium bowl, whisk together flour, sugar, baking soda, salt, and cocoa powder until well combined.
03 - In a separate large bowl, whisk together oil, buttermilk, egg, food coloring, vanilla, and vinegar until smooth and fully incorporated.
04 - Gradually add the dry ingredients to the wet mixture, mixing until just combined. Avoid overmixing to maintain tender texture.
05 - Divide the batter evenly among the cupcake liners, filling each about 2/3 full to allow for proper rising.
06 - Bake for 16 to 18 minutes, or until a toothpick inserted into the center comes out clean.
07 - Let the cupcakes cool in the pan for 5 minutes, then transfer to a wire rack to cool completely before frosting.
08 - In a large bowl, beat the cream cheese and butter together until smooth and creamy using an electric mixer.
09 - Gradually add powdered sugar while beating until fluffy and smooth. Mix in vanilla and salt until fully incorporated.
10 - Once cupcakes are completely cool, frost generously with the cream cheese frosting using a spatula or piping bag.