In a medium bowl, whisk together the flour, cocoa powder, baking soda, baking powder and salt.
Cream together the butter, sugar and brown sugar with an electric mixer in a large bowl, for about 3 minutes. The mixture will be light and fluffy and have lightened in color.
Add in the egg and mix until just combined.
Mix in the vanilla extract and food coloring until well disbursed.
Add in the dry mixture until just combined. Cover and chill the bowl for 15-20 minutes.
While the cookie dough is chilling, line two baking sheets with parchment paper and preheat the oven to 350°F/177°C. You can also prepare the filling while you wait.
Use a spoon or cookie scooper, drop 1 tablespoon balls onto the tray. It is ideal to use the scooper so that the cookies are uniform in size for the sandwiches. Allow about 2 inches between the dough balls to allow for spreading. Bake for about 8-10 minutes (the tops should look dry) on the middle rack.
Let the cookies sit on the pans for about 10 minutes, then transfer to a wire rack to cool completely before frosting.