Prep the pan and oven. Heat oven to 350°F (175°C). Line an 8-inch square pan with parchment, leaving overhang for easy lifting.
Lightly grease the parchment.
Melt the butter and chocolate. In a heatproof bowl set over a pot of barely simmering water, melt the butter and semi-sweet chocolate, stirring until smooth. Or microwave in 20–30 second bursts, stirring in between. Let cool 5 minutes so it’s warm, not hot.
Whisk in sugars. Add granulated and brown sugar to the melted chocolate.
Whisk until glossy and combined.
Add eggs and flavorings. Whisk in eggs and egg yolk one at a time until the batter looks thick and shiny. Stir in vanilla and peppermint extracts.
Fold in the dry ingredients. Sift or whisk together flour, cocoa powder, and salt. Fold into the wet mixture with a spatula until just combined.
Do not overmix. Fold in mini chocolate chips if using.
Bake. Spread batter evenly in the pan. Bake 24–28 minutes, or until the edges are set and a toothpick inserted in the center comes out with a few moist crumbs.
If it looks wet, give it another 2–3 minutes.
Cool slightly. Set the pan on a rack and cool for 30–40 minutes. The brownies should still be a bit warm, which helps the topping adhere.
Crush the candy canes. Place candy canes in a zip-top bag and crush with a rolling pin until you have a mix of small chunks and fine dust. The dust helps melt into the chocolate; the chunks add crunch.
Melt the white chocolate. Gently melt white chocolate in a heatproof bowl over barely simmering water, stirring constantly.
White chocolate scorches easily—keep heat low and avoid any water droplets. Stir in peppermint extract.
Add the topping. Pour melted white chocolate over the warm brownies and smooth into an even layer. Immediately sprinkle crushed candy canes over the top, pressing very lightly so they stick.
Set and slice. Refrigerate the pan for 30–45 minutes until the white chocolate is firm.
Lift brownies out using the parchment and cut with a warm, sharp knife. Wipe the blade between cuts for clean layers.