Preheat your oven to 350°F (175°C). Line a 9×13-inch baking pan with parchment paper, leaving an overhang on the long sides to create a sling, and lightly grease the parchment.
In a large mixing bowl or stand mixer fitted with the paddle attachment, beat 1 cup softened butter and 1 1/2 cups granulated sugar on medium speed for 2–3 minutes, until light, pale, and fluffy.
1 cup unsalted butter, 1 1/2 cups granulated sugar
Beat in the eggs one at a time, scraping down the bowl between additions. Mix in 2 teaspoons vanilla extract and 1/2 teaspoon almond extract (if using) until well combined.
2 large eggs, 2 teaspoons pure vanilla extract, 1/2 teaspoon almond extract
In a separate bowl, whisk together the flour, cornstarch, baking powder, baking soda, and salt until evenly combined.
2 3/4 cups all-purpose flour, 2 teaspoons cornstarch, 1 teaspoon baking powder, 1/2 teaspoon baking soda, 1/2 teaspoon fine sea salt
Add the dry ingredients to the wet ingredients in two additions, mixing on low speed just until no dry streaks of flour remain. Do not overmix to keep the bars soft.
2 3/4 cups all-purpose flour, 2 teaspoons cornstarch, 1 teaspoon baking powder, 1/2 teaspoon baking soda, 1/2 teaspoon fine sea salt
Gently fold in 3/4 cup rainbow jimmies sprinkles with a spatula just until evenly distributed, avoiding overmixing to prevent the colors from bleeding.
3/4 cup rainbow jimmies sprinkles
Transfer the thick dough to the prepared 9×13-inch pan. Use clean, lightly greased hands or an offset spatula to press and spread it into an even layer, making sure to reach the corners.
Bake on the middle rack for 18–22 minutes, until the edges are very lightly golden, the center looks set but still pale, and a toothpick inserted in the center comes out with a few moist crumbs (not wet batter). Do not overbake.
Set the pan on a wire rack and let the bars cool completely in the pan for about 60–90 minutes. Do not frost while warm or the frosting will melt.
In a medium bowl, beat 1/2 cup softened butter and 4 oz softened cream cheese together until smooth and creamy.
1/2 cup unsalted butter, 4 oz cream cheese
Add 2 1/2 cups powdered sugar, 1 1/2 teaspoons vanilla extract, and a pinch of salt. Beat on low until the sugar is mostly incorporated, then increase to medium. Beat in 2 tablespoons heavy cream or milk, adding more powdered sugar for a thicker frosting or more cream for a silkier, softer texture. Aim for frosting that spreads easily but holds soft peaks.
2 1/2–3 cups powdered sugar, 1 1/2 teaspoons pure vanilla extract, salt, 2–3 tablespoons heavy cream or whole milk
Once the bars are completely cool, spread the frosting evenly over the surface. Top generously with 1/4–1/3 cup extra rainbow sprinkles, covering all the way to the edges. For the neatest slices, chill the frosted bars for 20–30 minutes before cutting.
1/4–1/3 cup rainbow sprinkles
Use the parchment sling to lift the slab out of the pan. Slice into 24 smaller bars or 15–18 larger bars, depending on your preference, wiping the knife clean between cuts for sharp edges.