Preheat your oven to 350°F (175°C).
Line a 12-cup standard muffin tin with paper or silicone liners.
In a large bowl, whisk together the sifted almond flour, coconut flour, xanthan gum, baking soda, baking powder, salt, cinnamon, nutmeg, and ground cloves.
Set aside.
In a separate medium bowl, whisk the liquified coconut oil, room temperature eggs, and vanilla extract until well combined.
Stir in the monk fruit sweetener.
Squeeze the grated zucchini firmly with your hands or in a cheesecloth to remove as much excess moisture as possible. This is a crucial step to prevent soggy cupcakes.
Add the squeezed zucchini to the wet and stir to combine.
Pour the wet mixture into the dry and mix until just combined.
Do not overmix. If using, gently fold in the chopped walnuts.
Evenly distribute the batter among the 12 prepared muffin liners. They will be about two-thirds full.
Bake for 25-30 minutes, or until a toothpick inserted into the center of a cupcake comes out clean and the tops are firm to the touch.
Remove the cupcakes from the oven and let them cool in the muffin tin for 10 minutes before transferring them to a wire rack to cool completely. Cupcakes must be fully cooled before frosting.
To prepare the frosting, use an electric mixer to beat the softened cream cheese and butter in a medium bowl until smooth and creamy.
Add the powdered monk fruit sweetener and vanilla extract, and beat again until light and fluffy.
Once the cupcakes are completely cool, frost them as desired. Store any leftover cupcakes in an airtight container in the refrigerator for up to 5 days.
Squeeze the grated zucchini thoroughly using a cheesecloth or paper towels to remove excess water. This prevents the cupcakes from becoming overly dense or soggy.
When combining the wet and dry , mix only until they are just incorporated. Overmixing can lead to a tough and gummy texture, especially with low-carb flours.