Preheat your oven to 350°F.
Using a hand mixer, cream together the salted butter, white granulated sugar, and salt until just combined (approx. 1-2 minutes). Add the two egg yolks, vanilla extract, and almond extract. Mix on low/medium speed until well combined. Optional- If you would like to make an entire batch of cookies using one food dye color, you can add the dye to the wet ingredients now. Keep in mind that the color will become duller after you add the flour. If you'd like to make multiple colors of cookies out of one batch, you'll follow step 4 below. 1 cup salted butter, ¾ cup white granulated sugar, ¼ tsp salt, 2 egg yolks, 1 tsp vanilla extract, 1 tsp almond extract
Add the flour to your wet ingredients and mix on medium speed until combined. The dough will initially look shaggy/crumbly but will become smoother and begin to clump together as you mix it. Make sure to scrape your bowl with a spatula spoon.
2¼ cups all-purpose flour
Optional- If you want to make cookies of various colors out of one batch of dough, split your dough into a few separate bowls. Add your desired amount of food coloring into each and mix until just combined with the hand mixer. If you'd like to make marble-looking cookies, grab a portion of your cookie dough and flatten it into a small rectangle. Add four to five drops of food coloring onto the dough and fold it 4-5 times to work the dye into the dough without fully mixing it in. You should be able to see some streaks of the dye peeking through as you fold it in. Roll the dough into a log shape and load it into your cookie press- and you should end up with marble-like cookies! Food dye
Place the plate for your desired spritz design into your cookie press and secure it. Load the press with dough and then press your cookies onto an ungreased half sheet pan, leaving about 1½" - 2" between cookies. You must use an ungreased pan (no parchment or silicone baking mats) in order for the cookies to stick. Depending on the size and shape of the cookies, I typically fit anywhere between 15-20 cookies on the pan at once. Bake the spritz cookies at 350° for 8 minutes. When the cookies are done, they should no longer look shiny and the outer edges should just barely be turning a very light shade of golden brown. You do NOT want the cookies to brown very much at all, as this is a sign they are overbaked and will turn out crispy.
Allow the cookies to cool on the sheet pan for 5-10 minutes before transferring them to a cooling rack using a thin spatula. Let them cool completely before serving. Store the cookies in an airtight container, taking extra care when stacking them if you use a delicate spritz design.