Preheat oven to 180C/Fan oven 160C/Gas Mark 4. Arrange 12 rainbow paper cases in a cupcake or muffin tin.
In a stand mixer equipped with a bowl, beat together the butter and sugar for a few minutes until light, pale and fluffy.
In a separate bowl, sift in the flour and baking powder.
To the creamed butter and sugar, add the eggs one at a time together with a spoonful of flour, beating well after each addition.
Add the remaining flour and vanilla extract to the mix and beat until smooth.
Divide the mixture evenly between the paper cases then bake in the preheated oven for 15-18 minutes, or until the cupcakes are well risen and golden brown.
Lift out the cupcakes and leave to cool on a wire rack.
Using a cupcake corer or small knife, cut a small section out of the middle of the cupcakes then fill each with a little jam.
For the buttercream, beat the butter, icing sugar and vanilla extract together until well blended and smooth. Use a little milk if to afford a perfect piping consistency.
Distribute the buttercream between 6 small bowls, then colour up using the different food colourings.
Transfer each buttercream to a small piping bag, then pipe 6 wide adjacent lengths of the 6 buttercreams side by side on a piece of cling film. Roll up the cling film and then sit this in a larger piping bag fitted with a nozzle.
Pipe the rainbow buttercream on top of the cupcakes.
Decorate with golden sprinkles.