Step 1 - Preheat and Prepare
Preheat your oven to 180°C (355°F). Grease both 8-inch cake pans and line the bottoms with parchment. Set them aside.
Step 2 - Mix the Dry Ingredients
Add all dry ingredients to your large bowl and whisk thoroughly flour, both sugars, baking powder, baking soda, cinnamon, nutmeg, ginger, and salt. Whisk until there are no lumps and the spices distribute evenly through the flour. Properly mixed dry ingredients mean even spice distribution in every slice.
Step 3 - Add the Wet Ingredients
Add the grated carrots, dairy-free milk, oil, walnuts (if using), apple cider vinegar, and vanilla extract to the dry ingredients. Mix until just combined stop when no dry flour streaks remain. The batter will be quite thick, which is correct. Overmixing develops structure that makes gluten-free cakes tough.
Step 4 - Divide and Bake
Divide the batter evenly between your two prepared cake pans. Use a spatula to smooth the tops to an even level both layers should be the same thickness for a stable, flat stack. Bake for 35–40 minutes (40–45 minutes for the gluten-free version) until a toothpick inserted into the center comes out clean.
Step 5 - Cool Completely
This is non-negotiable. Let both layers cool in their pans on wire racks until they reach room temperature at least 45 minutes to an hour. Do not rush this. A warm cake layer will melt the frosting on contact and slide off the stack. Both layers must be fully cool.
Step 6 -Make the Frosting
Beat the room-temperature vegan butter in your stand mixer (or with a hand mixer) until light and fluffy about 2 minutes. Add the powdered sugar and beat until just combined. Add the vegan cream cheese and vanilla and beat until completely smooth with no lumps. Don't overbeat at this stage overbeating causes the cream cheese proteins to break down and makes the frosting soft and slightly grainy.
If the frosting feels too runny, add extra powdered sugar a quarter cup at a time, or add the cornstarch and beat briefly. Refrigerate the frosting until you're ready to use it.
Step 7 - Frost and Assemble
Place the first cake layer on your serving plate. Spread about ¾ cup of frosting evenly across the top, right to the edges. Place the second layer on top, pressing down very gently to level. Spread the remaining frosting across the top and sides of the cake. Use your piping bag to add any decorative touches.