The Feast

Home cooking recipes for everyday dinners and easy entertaining

Rainbow Whoopie Pies with Creamy Custard Filling Recipe

· 6 min read · Baking and Desserts

Rainbow whoopie pies are soft, cake‑like sandwich cookies that explode with color and a luscious vanilla custard center. The light, fluffy shells pair perfectly with the silky, buttery custard, creating a bite‑size celebration that’s as fun to look at as it is to eat.

Ingredients

  • 2 ½ cups (310 g) all‑purpose flour
  • 1 ½ tsp baking powder
  • ¼ tsp baking soda
  • ¼ tsp salt
  • ½ cup (115 g) unsalted butter, softened
  • 1 cup (200 g) granulated sugar
  • 2 large eggs, room temperature
  • \n
  • 1 tsp vanilla extract
  • ½ cup (120 ml) whole milk, room temperature
  • ¼ cup (60 ml) heavy cream
  • ¼ cup (60 ml) buttermilk
  • Food‑grade gel food coloring (red, orange, yellow, green, blue, purple) – about ½ tsp each
  • ¼ cup (50 g) cornstarch (for custard)
  • 2 cups (480 ml) whole milk (for custard)
  • ½ cup (100 g) granulated sugar (for custard)
  • 4 large egg yolks
  • 1 tsp pure vanilla extract (for custard)
  • 2 tbsp (30 g) unsalted butter, cut into small pieces (for custard)
  • Pinch of kosher salt
  • Optional: ½ tsp almond extract for a subtle depth

Instructions

  1. Preheat the oven to 350°F (177°C). Line two large baking sheets with parchment paper and set aside.
  2. In a medium bowl whisk together flour, baking powder, baking soda, and salt. Set the dry mixture aside.
  3. Using a handheld mixer on medium speed, cream the softened butter and 1 cup sugar together until light and fluffy, about 3‑4 minutes. Scrape down the sides of the bowl as needed.
  4. Add the eggs one at a time, beating well after each addition, then stir in the vanilla extract.
  5. Alternately add the dry flour mixture and the liquid mixture (milk, heavy cream, buttermilk) to the butter‑sugar blend, beginning and ending with the dry ingredients. Mix just until incorporated; over‑mixing will make the shells tough.
  6. Divide the batter evenly into six separate bowls (you can use a kitchen scale for precision). Add a different gel food coloring to each bowl, stirring until the color is uniform. If a color looks too pale, add a few more drops, but keep the total amount under 1 tsp per bowl to avoid an after‑taste.
  7. Using a rounded tablespoon or a small ice‑cream scoop, drop 1‑inch‑diameter mounds onto the prepared sheets, spacing them about 1 inch apart. The batter will spread slightly, so give them room.
  8. Bake for 10‑12 minutes, or until the tops are set and the edges are just beginning to turn a light golden brown. The cookies should be soft, not crisp.
  9. Allow the shells to cool on the sheet for 2 minutes, then transfer to a wire rack to cool completely. This step is crucial; filling warm shells will cause the custard to melt.
  10. While the shells cool, make the custard. In a medium saucepan whisk together the cornstarch and ½ cup sugar. Gradually whisk in the 2 cups milk, ensuring the mixture is smooth and free of lumps.
  11. Place the saucepan over medium heat, stirring constantly with a silicone spatula. As the mixture heats, it will thicken; continue stirring until it reaches a thick, pudding‑like consistency, about 5‑7 minutes.
  12. In a separate bowl, lightly beat the egg yolks. Temper the yolks by whisking in about ¼ cup of the hot milk mixture, then pour the tempered yolks back into the saucepan. Cook for another 1‑2 minutes, stirring constantly, until the custard coats the back of a spoon (about 170°F/77°C).
  13. Remove the custard from heat. Stir in the vanilla extract, a pinch of salt, and the butter pieces until the butter is fully melted and the custard is glossy. If using almond extract, add it now.
  14. Transfer the custard to a shallow bowl, cover the surface directly with plastic wrap to prevent a skin from forming, and chill in the refrigerator for at least 30 minutes.
  15. To assemble, pair two shells of similar size. Using a piping bag fitted with a large round tip, pipe a generous dollop of chilled custard onto the flat side of one shell, then gently press the second shell on top, creating a sandwich. Repeat until all shells are used.
  16. Dust the assembled pies lightly with powdered sugar if desired, or serve as‑is to showcase the rainbow colors.

Tips

  • Color intensity: Gel colors give the brightest hue with the smallest amount. If you prefer a pastel look, use less; for bold colors, add a few extra drops, but never exceed 1 tsp per batch.
  • Egg safety: Use pasteurized eggs if serving to pregnant people, young children, or anyone with a compromised immune system. The custard reaches 170°F, which is safe, but the shell batter contains raw eggs.
  • Even shells: Chill the batter for 15 minutes before scooping if it seems too runny. Cold batter holds its shape better, resulting in uniformly sized pies.
  • Storing the custard: If the custard thickens too much after chilling, whisk in a tablespoon of warm milk to loosen it before piping.

Serving Suggestions

Serve rainbow whoopie pies at a brunch buffet alongside fresh fruit, a citrus‑infused tea, or a cold glass of milk. For a festive twist, arrange them on a platter in a gradient that mirrors a rainbow arch. They also work beautifully as a whimsical dessert for birthday parties, baby showers, or any celebration that calls for a pop of color.

Variations

Swap the vanilla custard for chocolate ganache to create a chocolate‑rainbow combo, or fold in finely chopped berries into the custard for a fruity surprise. For a dairy‑free version, replace the butter and whole milk in the custard with coconut oil and coconut milk; the flavor will shift toward tropical notes but the texture remains creamy. Adding a pinch of espresso powder to the custard can give a subtle coffee undertone that pairs nicely with the sweet shells.

Storage and Reheating

Store assembled whoopie pies in an airtight container in the refrigerator for up to 3 days. The shells stay soft, and the custard remains silky when kept cold. If you need to freeze them, place the unfilled shells on a tray, freeze solid (about 2 hours), then transfer to a zip‑top bag for up to 2 months. Freeze the custard separately in a freezer‑safe container; it will keep for 1 month. To serve, thaw the shells at room temperature for 20 minutes, then re‑pipe fresh or thawed custard. Reheating is not recommended, as the custard will lose its smooth texture.

Frequently Asked Questions

Can I use a stand mixer instead of a handheld mixer?

Yes. A stand mixer fitted with the paddle attachment works well for creaming butter and sugar and for incorporating the dry ingredients. Just be careful not to over‑mix once the flour is added.

What if my shells come out too dense?

A dense texture usually means the batter was over‑mixed or the oven temperature was too low. Mix only until ingredients are just combined, and verify your oven is calibrated to 350°F. Adding an extra tablespoon of milk can also lighten the batter.

Do I need to bake the custard?

No. The custard is cooked on the stovetop and then chilled. It does not require baking, which keeps the filling smooth and prevents the shells from becoming soggy.

Can I replace the flour with a gluten‑free blend?

Yes. Use a 1‑to‑1 gluten‑free all‑purpose flour blend that contains xanthan gum. The texture may be slightly more crumbly, but the flavor remains unchanged.

How do I prevent the custard from forming a skin?

Press a piece of plastic wrap directly onto the surface of the custard while it cools. This blocks air and stops a skin from developing, ensuring a smooth filling.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions