01 - Preheat oven to 350°F. Line a 9 x 13-inch baking pan with parchment paper and lightly grease.
02 - In a large bowl, beat unsalted butter and granulated sugar until pale and fluffy, about 2 to 3 minutes using an electric mixer.
03 - Incorporate eggs one at a time, mixing well after each addition. Blend in vanilla extract.
04 - In a separate bowl, whisk together all-purpose flour, baking powder, and salt.
05 - Gradually add dry ingredient blend to wet mixture, mixing just until combined.
06 - Evenly press dough into prepared baking pan, smoothing top with a spatula.
07 - Bake on the center rack for 18 to 22 minutes, until edges are lightly golden and center is set. Do not overbake.
08 - Allow bars to cool completely in the pan set on a wire rack before frosting.
09 - In a clean bowl, beat softened butter until smooth and creamy. Gradually mix in powdered sugar, then add vanilla extract and heavy cream. Beat on high for about 2 minutes until light and fluffy.
10 - Divide frosting evenly among three bowls. Leave one plain for white, tint one batch red and the other blue with gel food coloring.
11 - Dollop colored frostings across cooled bars. Swirl gently with an offset spatula for a marbled look or frost in sections for a striped effect.
12 - Top immediately with red, white, and blue sprinkles.
13 - Cut into 24 bars and serve at room temperature.