Preheat the oven to 350°F (175°C) and grease two 8-inch cake pans.
In a mixing bowl, whisk together the flour, black cocoa powder, baking soda, baking powder, and salt. Set aside.
In another bowl, beat the butter and sugar with an electric mixer until light and fluffy.
Add the eggs one at a time, mixing well after each addition, then stir in the vanilla extract.
Gradually add the dry ingredients, alternating with buttermilk and hot coffee, mixing until just combined.
Divide the batter evenly between the prepared cake pans and smooth the tops.
Bake for 28-30 minutes, or until a toothpick inserted into the center comes out clean.
Let the cakes cool in the pans for 10 minutes, then transfer to a cooling rack to cool completely.
Tint half of the buttercream frosting black using the black gel food coloring and set aside.
For the glowing galaxy swirls, mix the tonic water with the remaining buttercream and divide into three bowls.
Tint each bowl with neon pink, neon blue, and neon purple food coloring.
Frost the entire cake with the black buttercream for a deep space background.
Using a piping bag or offset spatula, randomly swirl the neon-colored frostings over the black base and gently blend for a galaxy effect.
Dip a clean paintbrush into the edible silver or white food paint and flick tiny specks across the cake to resemble stars.
Chill the cake for 30 minutes before serving. Display under a blacklight to reveal the glowing galaxy effect!