Preheat oven to 350°F. Grease and line a 20cm cake tin with parchment paper.
In a large bowl, mix together sugar, coconut oil, eggs, milk, and vanilla extract.
In a separate medium bowl, combine flour, baking powder, cardamom, ginger, cinnamon, and salt.
In three parts, carefully fold dry ingredients into wet ingredients until mostly combined.
Fold in carrots, shredded coconut, and raisins until well combined but do not overmix.
Pour batter into a prepared cake tin.
Bake for 40-45 minutes (use a toothpick test to ensure the cake comes out clean).
Cool completely before frosting.