Start by preheating your oven to 350°F (175°C). Prepare a 9x5-inch loaf pan by greasing it lightly with cooking spray or butter, or line it with parchment paper to facilitate easy removal later.
In a medium mixing bowl, place the freshly grated zucchini along with the granulated sugar, brown sugar, eggs, vegetable oil, and vanilla extract. Using a whisk or fork, mix these ingredients thoroughly until the mixture is well incorporated and smooth.
In a separate, larger mixing bowl, sift together the all-purpose flour, cocoa powder, baking soda, baking powder, and sea salt. This step helps to aerate the dry ingredients and ensures a light texture.
Gradually pour the wet ingredient mixture into the bowl with the dry ingredients. Using a rubber spatula, gently stir the mixture until just combined, being careful not to overmix. A few lumps are perfectly fine!
Carefully fold in the chocolate chips and chopped nuts (if using), ensuring they are evenly distributed throughout the batter without overworking it.
Pour the luscious chocolate batter into your prepared loaf pan, using a spatula to smooth the top evenly.
Bake the bread in your preheated oven for 50-60 minutes. Check for doneness by inserting a toothpick into the center; it should come out clean or with just a few moist crumbs clinging to it.
Once baked, carefully remove the loaf from the oven and allow it to cool in the pan for about 10 minutes. After cooling slightly, transfer the bread to a wire rack to cool completely before slicing.
Notes
Serve slightly warm with powdered sugar or a scoop of ice cream for an indulgent treat.