| | |

Slice and Bake Rainbow Heart Cookies

Last Updated on March 28, 2026 by becky

Featuring a colorful heart suprise in the middle, these slice and bake rainbow heart cookies are the perfect rainbow dessert for Pride month, or any month at all.

Rainbow Slice and Bake Heart Cookies with striped rainbow ribbon and a cookie stack in the background, surrounded by nonpareil sprinkles

What Inspired These Slice and Bake Rainbow Heart Cookies?

I always love being in New York City during Pride Month. It’s such a fun, vibrant, and uplifting time to be in the city. And the celebrations always overlap with Broadway Bares, a charity event benefiting Broadway Cares to which I’ve donated my time to for more than a decade, designing costumes for hundreds of scantily clad dancers from Broadway and beyond.

Featuring a rainbow heart surprise in the center, these classic ‘slice and bake’ style sugar cookies provide a colorful addition to any Pride month party or celebration, but they’re equally fun to make at other times, too. The way I see it, it’s always a good time to celebrate love. And besides, who doesn’t love a rainbow cookie, any day of the year?

Rainbow Slice and Bake Heart Cookies scattered on a white surface

Rainbow heart cookie with a tall stack of cookies in the background

Rainbow Heart Cookie Ingredients

To make these rainbow heart cookies, you’ll need the following ingredients:

  • Flour – You’ll need 415 grams (about 3 1/4 cups) of all purpose flour, or plain flour in the UK.
  • Baking Powder – Baking powder gives the cookies their lift.
  • Kosher Salt – A small amount of kosher salt (or fine sea salt) cuts the sweetness of the sugar.
  • Butter – Start with unsalted butter, and allow it to soften before mixing. Skip the kosher salt if using salted butter. 
  • Granulated SugarGranulated sugar adds sweetness and moisture. If using caster sugar, I recommend measuring by weight rather than volume. 
Ingredients for making slice and bake rainbow cookies
  • Eggs – You’ll need two large eggs, at room temperature.
  • Vanilla Bean Paste – I recommend using a good-quality vanilla bean paste from a brand like Nielsen-Massey or Taylor & Colledge. If you don’t have vanilla bean paste, vanilla extract will also work.
  • Rainbow Nonpareils – You can coat your dough log in rainbow nonpareils or rainbow sprinkles, or skip the sprinkles for a more natural look.
  • Gel Food Coloring – A must for this recipe! You’ll need red, orange, yellow, green, blue, and purple, for tinting the dough that you’ll roll and cut into the heart-shaped centers. Opt for gel colors (Chefmaster is my go-to brand) rather than water-based.
A rainbow of gel food coloring

How to Make Rainbow Heart Cookies

Tools for Making Rainbow Heart Cookies

You’ll need a few special tools and ingredients to make these slice and bake cookies. I suggest gathering the following:

  • Chef’s Knife – Use a very sharp knife when slicing your cookie log. A dull knife will produce ragged-looking cookies with misshapen hearts. Clean the knife periodically, but keep it dry—a wet knife can cause the colors to run and smear.

  • Heart Cutter – You can choose any size heart cutter you’d like, but remember that the bigger the cutter, the bigger your cookies will be. On the flip side, a tiny cutter will provide less definition and your hearts might end up looking more like circles or blobs. So, somewhere in the middle (1 1/2 to 2 1/2 inches) works best.

  • Rolling Pin – To roll the mosaic of rainbow dough between sheets of parchment.

Rainbow Heart Cookie Tips and Tricks

Though tempting, do not skip any of the chilling steps in this recipe! If at any point your dough starts to feel warm or soft, pop it back into the fridge or freezer for a few minutes. Keeping the dough firm is the key to retaining the pretty heart shape.

In contrast, if the dough feels too firm to slice following an overnight chill, allow the log to stand at room temperature for 3-5 minutes before slicing. A hot, dry knife can also make slicing easier.

Clean slices cut with a sharp knife

I chose to make rainbow hearts for Pride month, but you can use this same technique with any cutter and any color(s) of dough. The possibilities are endless. (Green shamrocks for Saint Patrick’s Day, pumpkins for Halloween, Santa hats for Christmas, you name it.) For recipe inspiration, see my slice and bake lemon daisy cookies!

Before rolling the dough log in sprinkles, you might find it helpful to lightly spritz the log with cooking spray to help the rainbow sprinkles stick to the dough.

Rainbow Slice and Bake Heart Cookies with a rainbow striped ribbon and stack of cookies in the background

Make-Ahead and Storage Suggestions

To work ahead: You can prepare the dough log, wrap in clingfilm/plastic wrap, and refrigerate it overnight. I suggest popping the chilled log into the freezer for 30 minutes prior to slicing, to ensure a clean cut. .

To store: Layer baked rainbow heart cookies between sheets of parchment or wax paper and store in an airtight container at room temperature for up to five days.

To freeze: Layer between sheets of parchment or wax paper and freeze in an airtight container for up to three months. Thaw at room temperature when ready to serve.

Hand holding a rainbow heart cookie

Other rainbow recipes you might enjoy:

Funfetti Slice and Bake Shortbread
Rainbow Whoopie Pies
Funfetti Scones
Rainbow Buttercream Frosting
Rainbow Cake Roll
Rainbow Cookies

And if you do make these, or any of my recipes, don’t forget to tag me @bastecutfold or use the hashtag #bastecutfold on Instagram. I always love to see what you’re making!

Print
clockclock iconcutlerycutlery iconflagflag iconfolderfolder iconinstagraminstagram iconpinterestpinterest iconfacebookfacebook iconprintprint iconsquaressquares iconheartheart iconheart solidheart solid icon
Rainbow Slice and Bake Heart Cookies

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

5 from 3 reviews

Slice and Bake Rainbow Heart Cookies

Recipe by becky

  • Total Time4 hours
  • Yield24-28 3-inch round cookies 1x

A classic ‘slice and bake’ sugar cookie, with a fun rainbow heart suprise in the middle!

Ingredients

Scale

415 grams all purpose flour (3 1/4 cups; 14 2/3 ounces)
3/4 teaspoon baking powder
1/2 teaspoon kosher salt
225 grams unsalted butter, softened (1 cup; 2 sticks)
225 grams granulated sugar (1 cup + 2 tablespoons; 8 ounces)
2 large eggs, at room temperature
1 teaspoon vanilla bean paste
Gel food coloring
Rainbow sprinkles or rainbow nonpareils, for coating the log


Instructions

Line 2 half-sheet rimmed baking trays with parchment or silicone baking mats. Set aside.

In a large mixing bowl, whisk all purpose flour, baking powder, and kosher salt.

Dry ingredients in a bowl with a whisk

In a separate bowl or the bowl of a stand mixer, whip butter on high speed until creamy, about 30 seconds. Add the granulated sugar and mix on high speed until light and fluffy, about 1 minute more. Mix in the eggs, followed by the vanilla bean paste.

Mixing butter with a hand mixer

Add the dry ingredients in 2 additions and mix on low speed until just combined.

Cookie dough in a metal bowl

With a kitchen scale, divide the dough into 3 equal portions, about 300 grams each.

Weighing cookie dough on a kitchen scale

Wrap 2 portions in clingfilm/plastic wrap and refrigerate until ready to use.

Three balls of cookie dough arranged on a marble countertop

Divide the remaining portion into 6 smaller balls, about 50 grams each. Knead in gel food coloring to create red, orange, yellow, green, blue, and purple doughs.

Six balls of rainbow colored dough arranged on a marble surface

With a sharp chef’s knife, chop all of the colored doughs into small pieces.*

Pieces of colored cookie dough on a marble surface with a knife

On a sheet of baking parchment, arrange the rainbow dough pieces to create a mosaic pattern. Use your fingers to push the pieces together, making sure there are no gaps or holes in the dough.

Small pieces of rainbow colored cookie dough arranged in a circle on a sheet of parchment

Top with a second sheet of baking parchment, then use a rolling pin to roll the rainbow dough to 1/4-inch thickness.

Pieces of rainbow cookie dough between sheets of parchment

Hands rolling cookie dough with a rolling pin

Lifting by the edges of the parchment, transfer the rolled dough to a tray. Refrigerate 1 hour, or until firm.

A mosaic of rainbow dough rolled between sheets of parchment

Peel away the top layer of parchment. Use a 1 1/2-inch heart-shaped cutter to cut the rainbow dough.

Hands cutting heart shaped rainbow cookies with a metal cutter

Push scraps together, re-roll, and cut remaining hearts.

Hands cutting heart shapes with a metal cutter

Stack the hearts on top of one another to form a log.** Freeze 30 minutes, or until very firm.

A log of rainbow cookie dough

Meanwhile, remove remaining portions of white dough from the refrigerator to soften .

Break 1 portion of white dough into small chunks, and wedge into the crevasses, and around the outside of the frozen heart log.

Two balls of cookie dough and a log of rainbow cookie dough on a marble surface

Hands forming a log of cookie dough

Hand holding a log of cookie dough

Wrap with the remaining portion of white dough, forming a log about 6-7 inches long. Roll log on the countertop to smooth.

Cookie dough log on a marble surface

Log of cookie dough on a marble surface with a metal ruler

Roll in rainbow sprinkles or rainbow nonpareils.

Scattering rainbow nonpareils across a marble surface

a log of cookie dough covered in rainbow sprinkles

Wrap log in clingfilm/plastic wrap and freeze until very firm, at least 1 hour, or overnight.

A log of rainbow cookie dough wrapped in plastic wrap

With a sharp chef’s knife, trim the rough ends of the frozen log, then cut into 1/4-inch thick slices.

Log of rainbow cookie dough and a sharp chef's knife

Knife slicing a log of cookie dough

Arrange slices on prepared trays. Freeze15 minutes.

Rainbow heart cookies arranged on a tray

Two trays of rainbow heart cookies before baking

Meanwhile, preheat the oven to 325° F / 165° C.

Bake, 1 tray at a time, in preheated oven for 13-15 minutes, or until set and very lightly golden brown.

A tray of rainbow slice and bake heart cookies after baking

Cool 10 minutes on trays, then use a flat metal spatula to transfer cookies to a wire rack to cool completely.

Rainbow slice and bake cookies cooling on a wire rack

Store slice and bake rainbow heart cookies in an airtight container at room temperature for up to 5 days, or freeze for up to 3 months.

Hand holding a slice and bake cookie with a rainbow heart in the center

 

Notes

*You can make the pieces as large or as small as you’d like, and don’t worry if they’re all a little bit different—that’s fine! If you want to keep things simple, you can use your hands to break the dough into pieces instead.

**If at any point the rainbow dough begins to feel warm or soft, return it to the freezer for a few minutes. Keeping the dough cold and firm is the key to retaining the pretty heart shape.

To watch me demonstrate the entire process from start to finish, see the video in the post above.

Similar Posts

6 Comments

  1. Can’t wait to make these, but am confused about the 2 portions of dough – are we combining to wrap around one heart stack, or making 2 heart stacks? I must be missing something

  2. These came out so beautifully and were fun to make. Not only are they beautiful but super tasty as well! I made them for our little town’s Equal Rights For All Campaign kick-off we hosted with the ACLU. Your cookies were the hit of the party! Thank you so much for sharing your creativity with us!!

    1. Thank you so much for this comment! I’m glad the cookies turned out nicely, and I’m so happy that they were able to play a small part in contributing to such a good cause.

  3. I enjoyed making these. Would definitely make again. I used a star center vs heart. Thanks for sharing. Wish I could share a pic.

    1. So glad you enjoyed making these! If you have Instagram, feel free to post a photo and tag me @bastecutfold — I’d love to see how they turned out!

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star