01 -
Preheat oven to 350°F (175°C). Grease and line a 9x13-inch baking pan.
02 -
Whisk together flour, cocoa powder, baking powder, baking soda, and salt in a bowl until well combined.
03 -
In a separate bowl, beat softened butter with granulated sugar until light and fluffy using a hand mixer or stand mixer.
04 -
Incorporate eggs one at a time, mixing well after each addition, then add vanilla extract and blend until combined.
05 -
Add the flour mixture to the butter mixture in two portions, alternating with the buttermilk. Mix on low speed until just combined.
06 -
Slowly stir in hot water until the batter is smooth and even.
07 -
Pour the batter into the prepared pan and bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean. Allow to cool completely in the pan.
08 -
If using cream cheese, beat it until smooth. Add heavy whipping cream, powdered sugar, and vanilla, and whip on high speed until fluffy and suitable for spreading.
09 -
Evenly spread the prepared frosting over the cooled cake base using an offset spatula.
10 -
Place shredded coconut in a bowl. Add 2–3 drops of pink food coloring and mix thoroughly until evenly tinted. Add milk if needed to distribute color uniformly.
11 -
Sprinkle pink coconut over the frosted cake, pressing gently to adhere. Refrigerate the cake for at least 1 hour to set before slicing.
12 -
Cut into neat bars and serve chilled for best texture and flavor.