In a large bowl, beat the butter and granulated sugar together using an electric mixer or a stand mixer until light and fluffy, about 5 minutes. Beat in the 2 eggs one at a time; add the 1 teaspoon pure vanilla extract.
In another large bowl, whisk together the flour, baking powder and fine sea salt. With the mixer on low, add half the flour mixture to the butter and egg mixture and beat until just combined. Add the buttermilk and mix well to combine. Add the remaining flour mixture and beat until just combined, scraping down the bowl as necessary. Fold in the sprinkles.
Divide the batter equally between the prepared cups. Preheat the oven to 350 and rest the batter while the oven heats.
Bake for 30-35 minutes, until a tester inserted in the middle of the cake comes out clean. Remove from oven and place on a rack to cool for 15 minutes, then turn the cake out onto the rack to cool completely.
Make the Frosting
In a large bowl, beat the butter until light and fluffy. Sift in the powdered sugar, then add the vanilla, and beat well to combine. Add a teaspoon or 2 of milk if needed. You can beat in the sprinkles or sprinkle them on top.
Frost each cupcake with a generous swirl of frosting and top with more sprinkles if desired.
Notes
Rest the batter: Make sure to let the gluten-free cake batter rest for at least 15 minutes so that the flour can hydrate. You will thank me later when you sink your teeth into that amazing fluffy crumb.
Let the cupcakes sit before serving. A little bit before you plan to serve the cake, bring it out on the counter to warm up to room temperature for about 20 minutes. This will help the crumb to relax and the frosting to soften; it tastes so much better if you have time to do this step.
DIY buttermilk: If you don't have buttermilk, mix 1 cup of milk with 1 tablespoon of white vinegar or apple cider vinegar, let it sit for 10 minutes, then use it in the cake.
Dairy-free substitutions: For the buttermilk, add 1 tablespoon of vinegar to 1 cup of dairy-free milk. For the butter, substitute non-dairy butter.
Color thefrosting: Want to make these cupcakes even cuter? You can add your choice of food coloring to the frosting. Don't forget to finish with sprinkles, though!