Cream the softened butter with the granulated sugar until light and fluffy. Add vanilla, then mix in the flour just until the dough forms. Roll between sheets of parchment and refrigerate until very firm.
Heat the oven to 350°F. Cut the chilled dough with a small flower cutter and transfer to parchment-lined baking sheets. Bake for about 12 minutes and cool completely.
Beat the frosting butter and shortening until smooth. Gradually add the powdered sugar and both extracts. Beat in a little heavy cream at a time until the buttercream is firm enough to pipe.
Cook the sliced almonds, water, and sugar in a skillet over low heat, stirring gently, until the liquid is gone and the almonds are coated. Spread on parchment, cool, and separate any clusters.
Pipe raspberry filling onto each cooled base, leaving a narrow border. Pipe almond buttercream over the filling and top with cooled candied almonds.