This cake layers a firm, sliceable butter cookie base with a tender vanilla cake and a swirled rainbow-frosted top, finished with a thin chocolate shell. It tastes like a cross between a shortbread cookie and a birthday cake, with a crisp edge and a soft center. It suits a birthday, a holiday dessert table, or any occasion that calls for a cake that cuts cleanly.
Ingredients
- For the cookie base: 2 cups (250 g) all-purpose flour, 1/2 cup (100 g) granulated sugar, 1/2 cup (1 stick, 113 g) unsalted butter, cold and cut into small pieces, 1 large egg yolk, 1/2 tsp vanilla extract, 1/4 tsp salt
- For the cake layer: 2 1/4 cups (280 g) all-purpose flour, 1 1/2 tsp baking powder, 1/2 tsp baking soda, 1/2 tsp salt, 1/2 cup (1 stick, 113 g) unsalted butter, softened, 1 cup (200 g) granulated sugar, 2 large eggs, 1 tsp vanilla extract, 1 cup (240 ml) buttermilk
- For the rainbow frosting: 1 cup (2 sticks, 226 g) unsalted butter, softened, 3 cups (360 g) powdered sugar, 2 tbsp (30 ml) milk, 1 tsp vanilla extract, red, orange, yellow, green, blue, and purple gel food coloring
- For the chocolate shell: 6 oz (170 g) semisweet chocolate, chopped, 1/2 cup (120 ml) heavy cream
Instructions
- Make the cookie base. In a food processor, pulse the flour, sugar, and salt. Add the cold butter and pulse until the mixture looks like coarse meal. Add the egg yolk and vanilla, pulse until the dough just comes together. Press the dough evenly into the bottom of a 9×3-inch (23×8 cm) springform pan. Chill for 30 minutes.
- Bake the cookie base. Preheat the oven to 350°F (175°C). Bake the chilled cookie base for 20-22 minutes, until lightly golden. Let cool completely on a wire rack. Leave the oven on.
- Make the cake layer. In a medium bowl, whisk the flour, baking powder, baking soda, and salt. In a large bowl, beat the butter and sugar until light and fluffy, about 3 minutes. Add the eggs one at a time, beating well after each, then the vanilla. Add the flour mixture in three additions, alternating with the buttermilk, beginning and ending with flour. Mix until just combined.
- Bake the cake. Pour the batter over the cooled cookie base in the springform pan. Smooth the top. Bake for 45-50 minutes, until a toothpick inserted in the center comes out clean. Cool in the pan for 15 minutes, then remove the sides and cool completely on a rack, about 1 hour.
- Make the rainbow frosting. In a large bowl, beat the butter until creamy. Gradually add the powdered sugar, then the milk and vanilla. Beat until light and fluffy, about 3 minutes. Divide the frosting equally among six small bowls. Tint each with one color of gel food coloring, mixing until the color is even.
- Frost the cake. Place the cooled cake on a serving plate. Using a small offset spatula, dollop spoonfuls of each colored frosting in a random pattern over the top and sides of the cake. Smooth the frosting with the spatula to create a swirl or marbled effect. Chill the cake for 30 minutes to set the frosting.
- Make the chocolate shell. In a small saucepan, heat the cream over medium heat until it just simmers. Remove from heat, add the chopped chocolate, and let stand for 2 minutes. Stir until smooth. Let cool for 5 minutes, then pour over the top of the frosted cake, letting it drip down the sides. Chill for 30 minutes before slicing.
Why the Cookie Base Can Turn Out Too Dry or Too Crumbly
The cookie base is a shortbread-style dough, so it relies on the ratio of butter to flour to stay tender. If it bakes too long, the moisture evaporates and the base becomes dry and crumbly. If it is overworked, the gluten develops and the base turns tough. The fix: bake just until the edges are lightly golden, and press the dough gently without kneading. If the dough cracks when you press it, add 1 teaspoon of cold water and pulse again.
Why the Cake Layer Can Sink or Dome
A sunken center usually means the cake was underbaked or the leavening was too old. A domed top that cracks is often from overmixing the batter, which develops too much gluten. The fix: check the baking powder and baking soda for freshness (they should fizz when mixed with hot water), and mix the batter only until the flour disappears. Bake until the toothpick test comes out clean, and cool in the pan for exactly 15 minutes before unmolding to avoid collapsing.
Substitutions for the Rainbow Layers
- Butter: Use salted butter and omit the added salt in the cookie base and frosting. The cake layer will be slightly saltier.
- Buttermilk: Use 1 cup (240 ml) whole milk mixed with 1 tablespoon (15 ml) lemon juice or white vinegar. Let stand for 5 minutes before using. This swap makes the cake slightly less tangy.
- Semisweet chocolate: Use milk chocolate for a sweeter shell, or dark chocolate for a more bitter contrast. The shell will be thinner with milk chocolate.
- Gel food coloring: Use liquid food coloring, but reduce the milk in the frosting to 1 tablespoon (15 ml) because liquid colors add moisture.
How to Store the Rainbow Butter Cookie Cake
Store the cake in an airtight container in the refrigerator for up to 4 days. Let it sit at room temperature for 20 minutes before serving to soften the buttercream. The cake can be frozen, unfrosted, for up to 2 months; wrap tightly in plastic wrap and then foil. Thaw overnight in the refrigerator before frosting. The chocolate shell will soften in the fridge, so if you freeze the frosted cake, expect the shell to lose its snap.
Can I Make This Cake Ahead of Time?
Yes, the cake layers can be baked a day ahead and kept wrapped at room temperature. The frosting can be made up to 3 days ahead and refrigerated in an airtight container; bring to room temperature and re-beat before using. The assembled cake should be chilled at least 1 hour before serving to let the chocolate shell set, but it is best within 24 hours of assembly.
Related
- Dairy-Free Banana Bread Cookie Dough
- How Long Does Cookie Dough Last in the Freezer?
- Best Cookie Recipes for Shipping That Stay Soft
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).
