Heat the oven to 375°F. Line a baking sheet with parchment if desired.
Beat the sugar, salt, shortening, and softened butter until fluffy. Beat in the egg and both extracts until the mixture thickens.
Stir in the cake flour just until a dough forms. Roll the dough into 3/4-ounce balls.
Coat each ball in sprinkles or finely chopped walnuts. Press a hollow in the middle and chill the shaped cookies for 10 minutes.
Bake for about 12 minutes, until lightly golden underneath. Transfer the cookies to a rack and let them cool completely.
For the suggested buttercream, beat the softened butter until creamy. Gradually add the confectioners’ sugar, vanilla, and salt, then add just enough milk or cream to make the frosting pipeable.
Pipe a swirl of the suggested buttercream into each cooled cookie.