Rainbow Sugar Cookie Bars are the celebration cookie! For birthdays, parties, first-day-of-school, new job, housewarming, thinking of you, just because, or to make any day extra special.
Because why have a day without sprinkles when you can have a day with them?
When I had my bakery, Rainbow Sugar Cookie Bars were one of the four always-on-the-menu flavors. An OG. A classic that was so popular, I made hundreds of them every week.
People would eat them at 9am at the popup events at my house. They’d make special orders of dozens for a party. They’d stash them in their freezer to save for later and enjoy whenever they wanted.
Truly, Rainbow Sugar Cookie Bars have the colorful power to make any day just…better.
(Those four “regular” menu flavors by the way were: Rainbow Sugar Cookie (these), Oatmilk Truffle Brownie, Monster Oreo, and Lactation.)
Let’s get into it. >>
The ingredients
Plant butter, room temperature: Creaming softened butter with sugar traps thousands of tiny air pockets that expand in the oven, giving these bars their light, delicate crumb.
Granulated sugar: Its crystals cut through the butter as they cream together, working air into the dough for lift, while the sugar caramelizes slightly into a golden edge as the bars bake.
Unsweetened non-dairy yogurt: Adds moisture that keeps the bars soft and tender, its acidity reacting with the baking powder for a little extra lift.
Vanilla extract or vanilla bean paste: Its aromatic compounds round out the sweetness, giving the bars a warm, inviting scent as they bake.
All-purpose flour: Provides the proteins that form the bars’ structure, giving them enough hold to slice into clean squares while staying soft at the center. King Arthur Measure for Measure Gluten-Free Flour works well as a swap for gluten-free.
Cornstarch: Cornstarch has no protein, so blending a little into the flour lowers its overall protein content, the same trick used to make homemade cake flour. Less protein means less gluten forms, giving these bars their soft, tender texture.
Baking powder: A double-acting leavener, it releases gas twice, once when mixed into the wet ingredients and again in the oven’s heat, giving the bars a steady, even rise.
Salt: Balances the sweetness and highlights the vanilla notes, making the flavor feel bright and full.
Sprinkles: Folded into the dough and scattered on top, they add cheerful color throughout and a light, sugary snap in every bite.
Powdered sugar (drizzle): Whisked with liquid until smooth, it melts into a glossy glaze that sets into a delicate, slightly crisp finish once it cools.
Oat milk (drizzle): Thins the powdered sugar into a smooth, pourable glaze without diluting its sweetness, letting it cling to the bars in a thin, even coat.
Subs, swaps, FAQ
- Dairy-free: Make the recipe as written.
- Vegan: Make the recipe as written, just double check your plant butter and sugar: most conventional granulated sugar in the US is refined using bone char from cattle bones as a decolorizing filter, so it isn’t strictly vegan unless it’s labeled organic or vegan-certified.
- Gluten-free: Swap in King Arthur Measure for Measure Gluten-Free Flour for the all-purpose flour.
- Traditional: Use dairy butter and yogurt.
- Can I freeze the dough instead of the baked bars? Yes, press the dough into the pan, wrap tightly, and freeze unbaked for up to 3 months. Add a few extra minutes to the bake time if baking from frozen.
- Why are my bars greasy on top? This usually means the butter was too warm going into the mixer. Let it soften at room temperature for about 30 minutes. If you need to speed up the process, microwave for 15-30 seconds, but let it cool for 10 minutes before using.
- Do I need to chill the dough before baking? No, this dough is pressed straight into the pan and baked right away, no chilling required.
- Can I make the cookie dough ahead of time? Yes, cover and refrigerate the dough in a bowl for up to 2-3 days, then bring it to room temperature before pressing it into the pan and baking.
- Can I press the dough into the pan ahead of time? Yes, press it into the pan, cover, and refrigerate. Pull it out while the oven preheats so it’s not going in ice cold, and add a few extra minutes to the bake time if the center still feels cool.
The beauty of cookie bars
I love cookies. Cookie bars are cookies, but in square form. They skip the scooping and shaping: just press the dough into a pan, bake, and slice. Whether you’re after big, chewy squares or bite-sized morsels, these bars are as versatile as they are delightful. If you’re busy and feel like you could use more time, cookie bars are a true life hack.
Baking tools & equipment I use for Rainbow Sugar Cookie Bars
Here’s a quick rundown of the key tools that I use to make this recipe:
- 13×9 inch baking pan: I like this one because it comes with a lid.
- Parchment paper: A must for easy removal from the pan and mess-free slicing.
- Silicone spatula: Perfect for mixing and spreading.
- Kitchen scale: For precision and fewer dishes.
- Cute gift boxes: Turn your treats into thoughtful gifts.
The best vegan and gluten-free ingredients
If you haven’t already, grab my free vegan, gluten-free, dairy-free ingredient cheatsheet. It has the list of ingredients I keep in my kitchen to bake Goodies that no one would guess are vegan and gluten-free. I buy just one type of gluten-free flour (King Arthur Measure for Measure), for example. Once you have the essentials, you can bake anything that you (or those around you) are craving. Celebrate the season and life’s moments big and small.
Note: This post contains affiliate links. I may earn a small commission at no extra cost to you, helping to support my small business.
Save these recipes to make next!
Let’s bake! How to make Rainbow Sugar Cookie Bars
Rainbow Sugar Cookie Bars | Dairy-Free & Vegan with Gluten-Free Option
Description
The recipe everyone has been asking me for! Soft sugar cookie bars, full of rainbow sprinkles, that melt in your mouth with every bite. They're naturally vegan and dairy-free, with an easy swap to make them gluten-free, too. A favorite among both kids and adults, make extra because they disappear fast (and also freeze beautifully).
Ingredients
Instructions
-
Position the oven rack to the middle. Preheat your oven to 350 degrees F.
-
Place the softened butter and granulated sugar into the bowl of a stand mixer. Using the paddle attachment, beat the butter and sugar on medium-high speed until light and fluffy. About 4 minutes.
-
While that's mixing, sift together the flour, cornstarch, baking powder, and salt into a medium-sized bowl. Set aside.
-
After the butter-sugar mixture is fluffy, add in the non-dairy yogurt and vanilla. Mix again on a medium speed for about 1 minute, until fully combined.
-
With the mixture on the lowest speed, slowly add in the flour mixture, scoop by scoop until all of it has been added. Mix until it’s all just combined together. Then add in half the sprinkles and mix for a few more seconds. Try not to overmix (or else your cookie bars may be tough).
-
Line a 13×9 inch pan with parchment paper.
-
Dump the sugar cookie dough into the parchment-lined baking pan. Use a spatula to spread the dough out evenly.
-
Place the pan in the preheated oven and bake for about 28 minutes, until the sides just start to pull away from the pan, and the top looks fully set.
-
While it bakes, make the vanilla sugar drizzle by combining the powdered sugar, vanilla, and oat milk, 1 tbsp at a time. The consistency should be able to be easily drizzled with a spoon or fork, but thicker than water.
-
Once the bars are done baking, remove the pan from the oven and cool on a cooling rack or hot pad.
-
Drizzle with the drizzle. Then immediately sprinkle on as many sprinkles as your heart desires. The drizzle acts as the (delicious) glue that holds the sprinkles onto the bars.
-
Allow the bars to finish cooling. Then, use the parchment paper to lift the bars out of the pan and onto a cutting board.
-
Use a sharp knife to cut the bars into your desired size. I typically cut them into ~3×3 inch squares: 4 across and 3 down = 12 bars total. If you want to make a taster tray, cut those 12 bars into quarters, which will give you 48 minis.
-
Eat, serve, share, and enjoy! Store any leftovers in an airtight container. Enjoy within 1 week, or freeze them for up to 6 months.
Note
I include both the volume (cups) and weight (grams/ounce) measurements in the recipe. I highly recommend baking by weight (e.g. 120 grams per cup of flour, rather than 1 cup of flour). It’s more accurate, consistent, and results in fewer dishes! That said, baking by volume is also wonderful. Do whatever is most convenient for you.
For a 13×9 inch baking pan, I like this one because it comes with a lid.
Gluten-free option: For gluten-free, I use King Arthur measure-for-measure gluten-free flour.
I order my sprinkles online from Sweetapolita. You can use the code FetchingGoodies for 15% sitewide. There are SO many playful colors. Have fun!
For vegan butter, I use soy-free Earth Balance sticks, Country Crock plant butter sticks, or Violife plant butter.
