01 - Preheat oven to 350°F (175°C). Grease and flour three 8-inch (20 cm) round cake pans. Line the bottoms with parchment paper.
02 - In a medium bowl, whisk together the flour, baking powder, baking soda, and salt.
03 - In a large bowl, beat the butter and sugar with an electric mixer until light and fluffy, approximately 3–4 minutes.
04 - Beat in eggs one at a time, ensuring thorough mixing after each addition. Stir in vanilla extract until just combined.
05 - Gradually add the dry ingredients and milk to the creamed mixture in alternating additions. Begin and end with the dry ingredients. Mix until just combined; avoid overmixing.
06 - Divide the batter evenly among the prepared pans. Smooth the tops and bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean.
07 - Allow the cakes to cool in their pans for 10 minutes before inverting them onto wire racks to cool completely.
08 - For the buttercream, beat the butter until creamy and pale, approximately 2–3 minutes. Gradually add the sifted powdered sugar, beating on low speed until incorporated.
09 - Incorporate the pickle juice, minced pickles, lemon zest, and a pinch of salt. Beat on medium-high speed until the mixture is fluffy. Add milk as needed to achieve a smooth, spreadable consistency. Mix in green food coloring, if desired.
10 - Place one cake layer on a serving plate. Apply a generous layer of the pickle buttercream. Repeat this process with the remaining cake layers.
11 - Frost the top and sides of the assembled cake with the remaining buttercream. Garnish with thinly sliced dill pickles and sprinkles or edible glitter, if using.
12 - Chill the cake for at least 30 minutes before slicing to ensure neat layers.