Prepare Zucchini and Carrots
Grate zucchini and carrots using medium holes of a box grater.
Place zucchini in a clean kitchen towel and squeeze out excess moisture.
Lightly press carrots if very juicy.
Mix the Cake Batter
In a medium bowl, whisk together flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger.
In a large bowl, whisk granulated sugar, brown sugar, and oil.
Add eggs one at a time, mixing well after each.
Stir in vanilla, grated zucchini, and carrots.
Gradually fold dry ingredients into wet mixture until just combined.
Fold in optional add-ins like nuts, raisins, or pineapple.
Bake the Cake
Preheat oven to 350°F (175°C).
Grease and flour two 8-inch round pans or a 9×13-inch pan; line with parchment paper if desired.
Divide batter evenly into pans.
Bake for 35–45 minutes (less for cupcakes), until a toothpick comes out clean.
Cool in pans for 10 minutes, then transfer to a wire rack to cool completely.
Prepare the Cream Cheese Frosting
Beat cream cheese and butter until smooth.
Gradually add powdered sugar and beat until creamy.
Stir in vanilla extract.
Adjust consistency by adding more powdered sugar for thicker frosting or a teaspoon of milk for softer spread.
Assemble the Cake
Spread a layer of frosting on the bottom cake layer (if using two layers).
Place the second layer on top and frost the top and sides.
Decorate with chopped nuts, carrot curls, or a sprinkle of cinnamon if desired.