01 -
Preheat the oven to 175°C and line a muffin pan with cupcake liners.
02 -
In a mixing bowl, whisk together flour, cocoa powder, baking soda, baking powder, salt, granulated sugar, and brown sugar until evenly mixed.
03 -
Using an electric mixer, beat vegetable oil, eggs, and vanilla extract until smooth and homogenous.
04 -
Add the dry ingredient mixture and milk to the wet ingredients alternately, beginning and ending with the dry ingredients, mixing just until combined.
05 -
Fill each cupcake liner halfway with batter, spoon raspberry preserves in the center, then cover with remaining batter to nearly full.
06 -
Bake in the preheated oven for 20 to 22 minutes or until a toothpick inserted near the center comes out clean. Remove and cool completely on a cooling rack.
07 -
Beat softened butter, powdered sugar, cocoa powder, and heavy cream with an electric mixer until smooth and fluffy.
08 -
Pipe or spread the frosting evenly over cooled cupcakes and serve immediately or store appropriately.