Line the tray. Line a large baking tray or rimmed sheet pan with parchment paper, leaving a little overhang on the sides so you can lift the bark out later.
Crush the candy canes. Put the candy canes in a zip-top bag and tap them with a rolling pin until they are in small pieces — a mix of fine crumbs and pea-sized bits is perfect. Chop the pistachios and set the toppings aside in small bowls.
Melt the dark chocolate. Melt the dark chocolate with the coconut oil in a microwave-safe bowl in 30-second bursts, stirring between each, until smooth and glossy. Stir in the vanilla extract.
Melt the white chocolate. Melt the white chocolate the same way in a separate bowl, taking care not to overheat it — white chocolate melts quickly and seizes if it gets too hot.
Spread and swirl. Pour the dark chocolate onto the lined tray and spread it into an even layer about a quarter inch thick. Drizzle spoonfuls of white chocolate over the top, then drag a knife or skewer through both chocolates in gentle S-shaped lines to make the marble pattern. Do not over-swirl or the colors will muddy.
Add the toppings. While the chocolate is still wet, sprinkle over the crushed candy canes, dried cranberries and chopped pistachios, then finish with a pinch of flaky sea salt. Press the toppings down very gently so they stick.
Chill until set. Refrigerate for 45 minutes, or until the bark is completely firm and snaps cleanly when you lift an edge.
Break and serve. Lift the bark out by the parchment, place it on a board and break it into rough shards with your hands or a sharp knife. Serve right away or pack it into tins.