Miami Vice Cupcakes: Strawberry and Coconut Swirl
I love snacks that taste like a beach vacation. These Miami Vice cupcakes are exactly that. They mix two big flavors together in one tiny cake. You get bright red strawberry and cool white coconut in every bite. It is like the famous frozen drink but in a form you can eat with your hands. I have made these for many parties and they always disappear first.
In this post, you will learn how to bake soft coconut cakes. You will also learn how to make a sweet strawberry filling and a swirl of frosting. I will show you every step so you do not get stuck. These are great for birthdays or just a sunny weekend at home. I promise they are easier to make than they look!
Check out the recipe below and get your oven ready!
Recipe Quick Info
- Prep Time: 40 minutes
- Cook Time: 20 minutes
- Servings: 12 cupcakes
- Difficulty: Medium
The Best Ingredients for Tropical Flavor
Getting the right taste starts with what you buy at the store. You want the coconut to taste real, not like soap. You also want the strawberry to be punchy and sweet. I always look for the best fruit I can find because it makes a huge difference in the end. If your fruit is sour, your cupcake might be too tart. Stick to these basics for the best results.
What You Need for the Cake

To make the base of these cupcakes, you need a few dry things and a few wet things. The flour gives the cake its shape. I use all-purpose flour because it is easy to find and works well. You also need sugar to make it sweet. Baking powder is very important because it helps the cakes rise up tall and fluffy. Without it, you would have flat, heavy hockey pucks instead of soft cakes.
For the flavor, we use shredded coconut and coconut milk. I like the unsweetened shredded kind. If you buy the sweetened kind, the cake might become too sugary. The coconut milk should be the thick kind from a can. It makes the batter very creamy. You will also need butter and eggs. Make sure your eggs are at room temperature so they mix in smoothly with the other stuff.
- 1 and 1/2 cups all-purpose flour
- 1 cup granulated sugar
- 1 teaspoon baking powder
- 1/2 teaspoon salt
- 1/2 cup softened butter
- 2 large eggs
- 1/2 cup canned coconut milk
- 1/2 cup shredded coconut
- 1 teaspoon vanilla extract
Making the Strawberry Filling

The middle of the cupcake has a surprise. It is a thick strawberry jam that I make from scratch. You can use store-bought jam if you are in a rush. However, making it yourself tastes much better. You just need fresh strawberries, a little sugar, and a splash of lemon juice. The lemon juice helps the red color stay bright. It also balances out the sweet sugar so the filling is not too heavy.
I cook the berries down until they get thick and gooey. This takes about ten minutes on the stove. You have to watch it closely so the sugar does not burn. If it burns, it will taste bitter and ruin the whole cupcake. Once it is thick, I let it cool down completely. Never put hot filling into a cold cupcake or the cake will get soggy and gross. FYI, you can make this a day early to save time.
- 1 cup chopped fresh strawberries
- 2 tablespoons sugar
- 1 teaspoon lemon juice
- 1 teaspoon cornstarch mixed with water
How to Bake and Assemble Your Cupcakes
Baking can feel scary if you do not do it often. But I find that if I take it slow, everything goes fine. The goal is to have a soft cake that is not too dry. Mixing the batter just right is the secret. If you mix it too much, the cake gets tough. I learned this the hard way when I first started baking. I used to beat the batter for a long time, and my cakes came out like rubber!
Steps to Make the Coconut Batter

First, I turn my oven on to 350 degrees. This gives it time to get hot while I work. I line a cupcake pan with paper liners. Then, I cream the butter and sugar together in a big bowl. You want it to look light and fluffy. Next, I add the eggs one by one. I stir in the vanilla and the coconut milk after that. It might look a bit lumpy, but that is okay for now.
- Whisk the flour, baking powder, and salt in a small bowl.
- Slowly add the dry stuff to the wet butter mix.
- Fold in the shredded coconut gently with a spoon.
- Fill each cupcake liner about two-thirds full.
- Bake for 18 to 20 minutes until a toothpick comes out clean.
Let the cakes cool in the pan for a few minutes before moving them to a wire rack. They must be totally cold before you add the filling. If they are even a little warm, the frosting will melt and slide right off. I usually wait at least an hour to be safe. Patience is key here.
Adding the Strawberry Center

Once the cupcakes are cold, I use a small knife to cut a hole in the center of each one. I do not go all the way to the bottom. I just take out a little circle from the top. I save the little cake pieces to snack on later! Then, I take a spoon and drop the strawberry filling into the hole. I fill it right up to the top of the cake surface.
This part is fun because it makes the cupcakes look like they have a secret. When someone takes a bite, the red strawberry spills out against the white cake. It looks very pretty and tastes like a fruit explosion. If you want a smoother look, you can put the cake circle back on top of the filling. This hides the red center under the frosting so it is a total surprise.
Kitchen Pro Tips
- Don’t Overfill: Only fill the liners 2/3 full so they don’t spill over.
- Room Temp Eggs: This makes the batter much smoother.
- Cool Completely: Frosting melts on warm cakes, so wait a full hour!
Creating the Two-Tone Swirl Frosting

This is the part that makes these cupcakes look like a Miami Vice drink. I make a big batch of vanilla buttercream frosting. I split the frosting into two bowls. I leave one bowl white. In the other bowl, I add a tiny bit of red food coloring or some of the leftover strawberry juice. This turns it a beautiful pink color. Now you have two colors to play with.
To get the swirl, I put a piece of plastic wrap on the counter. I spread a line of white frosting and a line of pink frosting side by side. I roll the plastic wrap into a log and slide it into a piping bag with a star tip. When I squeeze the bag, both colors come out at the same time. It creates a perfect swirl that looks like it came from a fancy bakery. IMO, this is the coolest part of the whole process.
Decorating and Finishing Touches

The cupcakes are almost done! To make them look extra special, I add some garnishes. I like to toast some shredded coconut in a pan for a minute until it turns brown. This adds a nice crunch and a deeper flavor. I sprinkle that right on top of the frosting. It looks like little bits of gold on the pink and white swirls.
I also take a fresh strawberry and cut it into thin slices. I push one slice into the top of the frosting. If you want to go all out, you can even add a tiny paper umbrella. It makes the cupcakes look like they belong at a pool party in Florida. These little details take the dessert from basic to amazing. My friends always take pictures of these before they eat them!
Tips for Success and Storage
Sometimes things do not go perfect in the kitchen, and that is fine. I have messed up many batches of cupcakes before. One time I forgot the baking powder and they were hard as rocks! This may not work if you try to use frozen strawberries without draining the extra water. The filling will get too runny and make the cake messy. Always follow the steps and you will be okay.
How to Store Your Treats

If you have leftovers, you need to keep them fresh. Because of the fruit filling and the butter in the frosting, these should stay in the fridge. I put them in a container with a tight lid. They will stay good for about three days. If you leave them out on the counter, the frosting might get too soft and the fruit could spoil faster. I think they actually taste really good when they are slightly chilled.
When you want to eat one, take it out of the fridge about 15 minutes before you bite in. This lets the butter in the cake soften up a bit. If you eat it straight from the fridge, the cake might feel a little firm. These cupcakes also travel well if you keep them in a sturdy box. Just make sure the box is tall enough so the frosting does not get squished by the lid!
Ways to Change the Recipe

You can change this recipe to fit what you like. If you do not like strawberries, you can use pineapple instead. Pineapple and coconut make a PiƱa Colada cupcake! Just use crushed pineapple for the filling. You can also use mango for a different tropical vibe. The steps for the filling are exactly the same no matter what fruit you choose.
For the cake, you can use a box mix if you are very busy. Just add a little coconut extract and some shredded coconut to the box batter. It won’t taste exactly like the scratch version, but it is a good shortcut. You can also make these vegan by using coconut oil instead of butter and flax eggs instead of real eggs. There are so many ways to make this recipe your own!
Common Questions About Tropical Cupcakes
Can I use frozen strawberries?
Yes! Just thaw them first. Make sure to drain the extra juice so the filling is not too watery. Cook them exactly like fresh berries.
Why is my frosting melting?
Your cupcakes might still be warm. Even a little heat can melt butter. Also, make sure your butter is not too soft when you start mixing.
How do I get a bright pink color?
Use gel food coloring. It gives a very strong color with just one drop. Liquid coloring can make the frosting too thin and runny.
Can I make these gluten-free?
Yes. Use a 1-to-1 gluten-free flour blend. The coconut milk and fruit will keep the cake moist so it does not get too dry or crumbly.
How do I toast the coconut?
Put it in a dry pan over medium heat. Shake the pan often. It turns brown very fast, so stay close and watch it carefully!
Time to Enjoy Your Sweets
Making Miami Vice cupcakes is a fun way to bring a little sunshine to your kitchen. You now know how to make coconut cake, strawberry filling, and swirl frosting. These treats are sweet, pretty, and perfect for sharing with your favorite people.
