01 - Preheat oven to 350°F. Line a 12-cup muffin tin with cupcake liners.
02 - In a large bowl, whisk together flour, sugar, cocoa powder, baking soda, and salt.
03 - In another bowl, whisk oil, eggs, buttermilk, vanilla extract, vinegar, and red food coloring until smooth.
04 - Add the wet ingredients to the dry ingredients and mix until just combined. Do not overmix.
05 - Divide the batter evenly among the cupcake liners, filling each about ⅔ full.
06 - Bake for 18–20 minutes, or until a toothpick inserted in the center comes out clean.
07 - Remove from oven and let cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
08 - Beat cream cheese and butter together until smooth.
09 - Gradually add powdered sugar and beat until fluffy. Mix in vanilla extract and a pinch of salt.
10 - Once cupcakes are completely cool, frost generously with cream cheese frosting. Decorate with festive sprinkles or edible hearts if desired.