Preheat your oven to 375 degrees F.
In a large bowl, cream together the butter and sugar until light and fluffy.
Add in the egg yolk and vanilla extract, and mix until well combined.
Gradually add in the flour, mixing until a dough forms.
If you want to make colored cookies, you can add a few drops of food coloring or a little red gel food coloring. Gel food coloring is a lot more vibrant so you won’t need much.
Take the spritz cookie dough and fill the cookie press tube.
Press the trigger to create your cookies onto a non greased cookie sheet.
Bake them for 8-10 minutes, or until they are lightly golden brown.
Remove the heart cookies from the oven and let them cool on the baking sheet for a few minutes before transferring them to a wire rack to cool completely.