To make the coconut cupcakes: Preheat the oven to 350°F (177°C). Line two 12-count muffin pans with 16 to 17 cupcake liners.
In the bowl of a stand mixer fitted with the paddle attachment or in a large mixing bowl using a handheld mixer, beat the butter on low speed until smooth, then slowly mix in the granulated sugar. Once all of the sugar is added, increase to medium speed and continue mixing for another 3 to 4 minutes or until the mixture is light and fluffy.
In a separate large mixing bowl, whisk the cake flour, baking powder, and salt together until well combined.
Amounts for this step
- 1 1/2 tsp baking powder
- 1/4 tsp salt
Combine the coconut milk, vanilla extract, and coconut extract in another large mixing bowl or measuring cup and stir until well combined.
Amounts for this step
- 1 tsp pure vanilla extract
- 1/2 tsp coconut extract
Add the dry ingredients to the creamed butter and sugar on low speed in two additions, alternating with the coconut milk mixture (begin and end with the dry ingredients). Mix in each addition until just combined, making sure not to over mix the batter.
In a separate clean mixing bowl, beat the egg whites to stiff peaks. Fold half of the egg whites into the batter, then fold in the remaining egg whites until just combined. Gently fold the shredded coconut into the batter.
Divide the batter evenly between all of the cupcake liners in the prepared pan, only filling each one about half of the way full.
Bake for 16 to 20 minutes or until a toothpick inserted into the center of the cupcakes comes out clean.
Remove from the oven and allow to cool in the pan for 5 minutes, then carefully remove the cupcakes and transfer to a wire rack to cool completely.
To make the coconut buttercream: In the bowl of a stand mixer fitted with the paddle attachment or in a large mixing bowl using a handheld mixer, beat the butter until smooth.
Mix in half of the powdered sugar on low speed. Then mix in the remaining half of the powdered sugar until fully combined.
Add the coconut milk (start with 2 tablespoons and add a little more if needed), vanilla extract, and coconut extract and continue mixing on low speed until everything is well combined, stopping to scrape down the sides of the bowl as needed.
Amounts for this step
- 1 tsp pure vanilla extract
- 1/2 tsp coconut extract
Pipe the frosting onto the cooled cupcakes.