01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together all-purpose flour, unsweetened cocoa powder, baking soda, and salt.
03 - In a large bowl, beat butter and granulated sugar with an electric mixer until light and fluffy. Add egg and mix until incorporated.
04 - Add buttermilk and vanilla extract to the creamed mixture. Gradually add dry ingredients and mix until a smooth batter forms.
05 - Using a spoon or cookie scoop, drop 24 equal portions of batter onto prepared baking sheets, spacing each 2 inches apart.
06 - Bake for 10 to 12 minutes until the cakes are set and spring back when touched lightly. Allow to cool completely on a cooling rack.
07 - Beat softened butter until creamy. Mix in powdered sugar, marshmallow creme, vanilla, and a pinch of salt. Beat until light and fluffy.
08 - Separate the filling into three bowls: leave one portion white, tint one with red food coloring, and the other with blue food coloring.
09 - Pipe or spoon a layer of filling onto the flat side of half the cakes. Top with the remaining cakes to form sandwiches.
10 - Roll the edges of each assembled whoopie pie in patriotic sprinkles or pipe colored frosting on top for festive presentation.