Spread the pecans or walnuts on a baking sheet in a single layer. Toast for 6-8 minutes at 350ºF, until fragrant and lightly golden. Let cool completely.
Finely chop the cooled nuts with a knife or pulse briefly in a food processor. They should be very fine, but not turn into a paste.
Make the dough:
In a large bowl, using a hand mixer on medium speed beat the softened vegan butter with the powdered sugar for 2-3 minutes, until light and fluffy.
Mix in the vanilla extract, almond extract if using, and salt.
Add the flour and mix on low speed just until a soft dough forms. The dough should look slightly crumbly but hold together when pressed.
Fold in the chopped nuts until evenly distributed.
Cover and refrigerate the dough for 30 minutes.
Bake the cookies:
Preheat the oven to 350°F (175°C) and line a baking sheet with parchment paper. Scoop about 1 tablespoon (15 grams) of dough and roll into smooth balls. Place them about 1 inch (2.5 centimeters) apart on the baking sheet.
Bake for 14-16 minutes, until the bottoms are lightly golden and the tops stay pale.
Let the cookies cool on the baking sheet for 5 minutes. While still warm, gently roll them in powdered sugar and transfer to a wire rack.
Once fully cooled, roll them again in powdered sugar for a thicker coat.
Notes
Use powdered sugar. Other sugars won’t work the same way! If you don’t have powdered sugar, you can make it yourself!
Chill the dough. To minimize spreading and to keep the cookies tender.
Double coat. The first layer of powdered sugar will melt into the cookies a bit, so be sure to double coat for that snowy finish.
Storage. Store Mexican wedding cookies in an airtight container on the counter for up to 5 days, or in the freezer for up to 2 months. You can also freeze the cookie dough balls for up to 3 months and then bake them from frozen (add a couple of minutes to the baking time).