Preheat the oven to 350°F (175°C) and line an 8×8 baking pan with parchment paper.
In a large bowl, cream the butter, granulated sugar, and brown sugar together on medium speed until smooth and creamy (about 2 minutes). Add the egg, vanilla extract, and almond extract (if using), and beat until combined.
1/2 cup butter, 1/2 cup granulated sugar, 2 tbsp brown sugar, 1 large egg, 2 tsp vanilla extract, 1/4 tsp almond extract
Mix in the flour, cornstarch, baking powder, and salt just until the flour mixture disappears and a soft dough forms.
1/2 tsp baking powder, 1 & 1/2 cup all purpose flour, 1 tbsp cornstarch, 1/4 tsp salt
Press the dough evenly into the prepared baking pan and bake for 16 to 18 minutes. The edges should be pale golden and the center set but still soft. Do not overbake! Allow to cool completely in the pan before frosting.
Frosting
In a large bowl, whip the softened butter and powdered sugar together until smooth.
4 tbsp butter, 1 & 1/2 cup powdered sugar
Add the vanilla extract and 1 tablespoon of heavy cream, whipping on high speed for 1–2 minutes until light and fluffy. (Add an extra tablespoon of cream only if needed for spreadability).
1 tsp vanilla extract, 2 tbsp heavy cream
If you want to give these the same marbled look as mine, divide the frosting into two bowls and color one with the pink gel food coloring and the second one with the purple gel food coloring.
Pink gel food coloring, Purple gel food coloring
Frost the cooled cookie base with dollops of pink and purple frosting, then top with sprinkles and slice into 16 bars. Serve right away for softer frosting, or chill briefly first for cleaner squares.