Line a deep square baking tray or freezer‑friendly container with parchment paper.
In a large bowl, combine desiccated coconut, vegan condensed milk, icing sugar, and extract (if using). Mix or knead until a soft dough forms.
Divide the mixture into two portions. Leave one plain white.
Add food coloring to the second portion and mix until evenly tinted.
Press the white layer into the tray and flatten it evenly.
Add the colored layer on top and press firmly to smooth the surface.
Cover with cling wrap and freeze for 1–2 hours (or refrigerate overnight for best results).
Remove from the tray, slice into squares, and serve.