Stained Glass Cake

Annie Lampella @ Ketofocus

By Annie Lampella, Pharm.D.

Published July 6, 2025 • Updated March 13, 2026

This post may contain affiliate links. See my disclosure policy.

This stained glass cake is a nearly zero-carb, sugar-free dessert that looks like a slice of art. Made with agar instead of gelatin, it's a colorful, no-bake treat with cubes of broken glass suspended in a creamy vanilla base.

I originally made this as my keto version of the classic broken glass Jello cake, but I didn’t use Jello here (save that for my Jello whip recipe). Instead, I used agar agar powder, which gives that same gelatin-like set without the sugar, carbs, or animal products. If you’ve made my raindrop cakes before, this is a similar concept, just with a lot more color and flair. I wanted a dessert that looked impressive but stayed completely clean on macros, and this is what I came up with.

Close-up of three vibrant stained glass cake slices showing clear layers of gelatin and cream.

The colored cubes are made with water, agar, and a powdered sugar-free sweetener. Once set and cut, they get layered over a creamy vanilla base (also agar and heavy cream) to create that broken prism effect. A final clear agar pour seals everything so it slices cleanly into wedges or squares. I use a 6-inch springform pan because the taller cross-section really shows off the color pattern. Each piece looks completely different depending on where the cubes landed.

I’ve made this at least a dozen times now, and the thing I keep coming back to is how agar works better than gelatin here. Agar sets at room temperature in about 15 minutes, no waiting around for hours with your fingers crossed. The cubes hold their shape when you slice, and the whole thing stays firm even sitting out at a party for a couple hours. Gelatin would go soft and saggy in that same situation. If you like my keto panna cotta, you’ll recognize that same clean, smooth set that agar gives you.

The whole dessert is no-bake, zero-carb, and basically zero calorie, which makes it perfect for warm weather when I don’t want the oven on. I’ve brought this to summer get-togethers and holiday parties, and people genuinely don’t believe it’s low-carb. It looks too fancy for something that takes 30 minutes of active work and zero baking. For holidays, I swap the food coloring to match (red and green for Christmas, red and blue for July 4th). For more no-bake ideas, try my keto cheesecake fluff or raspberry no-bake cheesecake.

The first time I sliced into this, I just stared at it. Every piece had a different pattern of color cubes running through it, like looking through a kaleidoscope. You don’t need any decorating skills for that. No piping, no fondant, no tempering. You pour, chill, and slice, and the art happens inside the cake on its own.

Tips for working with agar

The biggest thing to know about agar is that it sets at room temperature, fast. Once your colored mixture comes off the heat, you have maybe 10-15 minutes before it starts firming up. I pour into bowls and add food coloring right away. If you try to do it slowly, you’ll end up with uneven distribution in your finished slices. Have your bowls, food coloring, and extracts all ready before you start heating. If the mixture starts getting thick in the pan, put it back on low heat for 30 seconds to re-melt.

For colors that actually taste like something, match your extracts to your colors: raspberry for red, lemon for yellow, and leave the third batch clear with vanilla. Agar has zero flavor on its own, so without the extract you’re just eating pretty shapes. I’ve also done orange extract with orange coloring for a fall version, and peppermint with green for Christmas.

You can make the colored cubes and cream base up to 2 days ahead. Keep them covered in the fridge, then assemble and pour the clear seal when you’re ready. I do this for parties so the day-of work takes about 10 minutes. If you like colorful no-bake projects, my bomb pops have a similar vibe in popsicle form.

Youtube
640K+ subscribers
Discover More Keto Recipes on Our Channel

Explore 683+ keto recipe videos with step-by-step instructions, tips, and tricks to make keto easy.

Recipe
Print Pin

Stained Glass Cake

4.7 (3) Prep 20m Cook 15m Total 35m 8 servings

Ingredients

Step by Step Instructions

Step by Step Instructions

1
Make agar solution

Combine 2/3 cup water, 1 ¼ teaspoons agar powder and 1/4 cup powdered sugar-free sweetener into a small saucepan. Heat over medium high heat until boiling. Remove from heat.

A saucepan of agar agar mixture being heated on the stovetop until dissolved.
Ingredients for this step
  • 2/3 cup water
  • 1 ¼ teaspoons agar powder
  • 1/4 cup powdered sugar-free sweetener
2
Cream base

Stir in nut milk or heavy cream into the agar mixture. Pour into a parchment lined 6 inch springform pan and refrigerate for 30 minutes or until set.

The creamy white agar base layer being poured into a springform pan.
Tip Only need to line the bottom of the pan with parchment paper.
Ingredients for this step
  • 1 ⅓ cup nut milk or heavy cream
3
Make more agar solution

In a clean saucepan, combine 1 ⅓ cup water, 2 ½ teaspoons agar powder and 1/2 cup powdered sugar-free sweetener. Heat over medium high heat until boiling. Remove from heat.

A second batch of agar agar being heated to create the clear gelatin layer.
Ingredients for this step
  • 1 ⅓ cup water
  • 2 ½ teaspoons agar powder
  • 1/2 cup powdered sugar-free sweetener
4
Make the stained glass

Stir in vanilla extract and 1 ⅓ cup water. Separate mixture equally into three bowls. Add two different colors of food coloring to only two bowls and mix to combine. Pour each bowl into a small baking dish or plastic container. Refrigerate for 30 minutes or until set.

Three containers filled with green, clear, and red colored agar gelatin cooling to set.
Tip The third bowl will be clear.
Ingredients for this step
  • 1 teaspoon vanilla extract
  • 1 ⅓ cup water
5
Layering the stained glass

Once hardened, cut the three colored mixtures into small squares and place on top of the cream layer, alternating the colors as you cover the entire surface.

Cubes of red, green, and clear gelatin scattered on top of the set white layer in the pan.
6
Seal the cake

To create an even cake and to help seal the layers together, prepare one final mixture of agar solution. Heat 1/3 cup water and 1 ¼ teaspoon agar powder in a saucepan until boiling. Remove from heat, add in 1 cup water. Let cool for a couple of minutes. Pour agar mixture over the cake until it covers the entire cake. Refrigerate for 30 minutes or until set.

Clear liquid agar mixture being poured over the colored cubes to form the top layer of the cake.
Tip Once set, you can serve. Topped with whipped cream if desired.
Ingredients for this step
  • 1/3 cup water
  • 1 ¼ teaspoon agar powder
  • 1 cup water
Nutrition Per Serving 1 slice
16 Calories
0.5g Fat
1.3g Protein
0.2g Net Carbs
2.5g Total Carbs
8 Servings
Nutrition disclaimer

The nutrition information provided is an estimate and is for informational purposes only. I am a Doctor of Pharmacy (Pharm.D.); however, this content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always consult your physician or other qualified health provider before making any lifestyle changes or beginning a new nutrition program.

Your Macros. Your Recipes. Calculated in 60 Seconds.

Get personalized keto macros and instantly see which recipes fit your targets. No more guessing what to eat.

Get My Macros + Recipes →

Get weekly keto recipes from Annie.

Join the list and get new recipes delivered to your inbox every week.

Stained Glass Cake

Frequently Asked Questions

Can I use gelatin instead of agar agar powder?

I've tried both, and they're different experiences. Gelatin sets softer, needs hours in the fridge, and the cubes come out jigglier. Agar sets firm at room temperature in about 15 minutes, and the cubes hold their edges when you slice. If you go with gelatin, you'll need roughly 3 times the amount by weight to get similar firmness, and the whole recipe takes much longer. I prefer agar here because the cubes stay crisp and the slices look clean. The result also won't be vegan or as low-carb as the original.

Can I use different flavors and colors?

I mix and match all the time. My go-to is raspberry extract for red, lemon for yellow, and plain vanilla for the clear batch. Agar has zero flavor on its own, so without extract you're just eating colored shapes. I've also used orange extract with orange coloring for a fall version, and peppermint with green for Christmas. Pick flavors you actually want to taste and match the colors to them. You can also use sugar-free drink mixes or flavored water if you don't have extracts on hand.

How far in advance can I make this?

I prep the colored cubes and the cream base layer up to 2 days ahead. They keep their shape in the fridge with no issues. Then on the day I'm serving, I assemble the cubes on the cream base and pour the clear seal, which takes about 10 minutes. The fully assembled cake lasts 3-4 days in the fridge, so you could also make the whole thing the day before and it'll hold up perfectly.

Can I make this dairy-free?

I've made this with full-fat coconut cream instead of heavy cream for the base layer, and it works well. The coconut adds a slight flavor that I actually like with the fruit extracts. Use canned coconut cream (the thick stuff), not the carton coconut milk, or your base won't set firm enough. With coconut cream and agar, the whole dessert is fully vegan too. If you like coconut-based keto desserts, my dairy free ice cream uses a similar swap.

Why did my agar start setting before I finished pouring?

This is the most common issue I hear about, and it happened to me the first time too. Agar sets at room temperature, so it starts firming up the second it comes off the heat. I've learned to have my bowls, food coloring, and extracts all ready before I even start heating. Once it's off the stove, I pour into bowls and stir in color immediately. The whole pour-and-color process should take under 2 minutes. If you notice it getting thick in the saucepan, put it back on low heat for 30 seconds to re-melt.

Can I double this for a larger pan?

I've doubled it using a 9-inch springform pan and it works, but the slices won't be as tall so the prism effect is less dramatic. If you want that tall, impressive cross-section, I'd make two separate 6-inch cakes instead of one big one. The proportions stay the same either way. I've also made half batches in a small loaf pan for just my husband and me, and that works fine too.

Is this vegan?

The agar version is plant-based since agar comes from seaweed. If you also swap the heavy cream for full-fat coconut cream in the base layer, the whole thing is completely vegan. I've done this a few times for friends who are dairy-free and they couldn't tell the difference in texture. The set is the same, and the coconut flavor is subtle enough that it doesn't take over.

Browse by Ingredient
Similar Recipes

Others looking for “Stained Glass Cake” also liked:

Three triangular slices of stained glass cake with strawberries on a white tray and purple background.

Why I use agar instead of gelatin

I’ve tested both, and they’re not interchangeable. Agar comes from seaweed, sets firm at room temperature, and holds its shape when you cut it. Gelatin comes from animal collagen, needs hours in the fridge, and gives you a softer, jigglier result. For this recipe, agar is the better choice because the cubes stay crisp and defined when you slice through the cake. If you prefer working with gelatin, try my keto gummy worms where that softer set actually works in your favor. Agar is also vegan and keeps the whole dessert in keto territory with zero carbs.

How to store it

I keep mine in the refrigerator and it stays fresh for 3-4 days. You don’t need to cover it unless you’re storing it next to something with a strong smell (onions, garlic, that kind of thing). The agar holds its texture in the fridge without breaking down, which is one of the reasons I prefer it over gelatin for make-ahead desserts. If you’re prepping for a party, I make the cubes and cream base a day or two out, then do the final assembly and clear seal the morning of.

About the Author
Annie Lampella, Pharm.D.

Annie Lampella, Pharm.D.

Annie is a Doctor of Pharmacy, mom, and the recipe creator behind KetoFocus. With a B.S. in Genetics from UC Davis, she has over 14 years of experience developing family-friendly keto recipes based on the science of human metabolism.

More Dessert Recipes

keto chocolate chip cookie stack
145 Mins
Keto Almond Flour Chocolate Chip Cookies
4.8 Stars (36 Reviews)

I accidentally invented these while making butter bars, and they turned out to be the chewiest almond flour chocolate chip cookies I've ever baked....

See the Recipe
creamy chocolate mousse in a small dish topped with sprinkles and strawberries
3 Mins
Keto Chocolate Mousse
4.9 Stars (13 Reviews)

When a chocolate craving hits, this 3-ingredient mousse saves the day. No cooking, no eggs, and I can have it ready in under 10 minutes.

See the Recipe
star piped pink and white cheesecake fluff in a small bowl topped with white, red and purple sprinkles
5 Mins
Keto Cheesecake Fluff
4.9 Stars (8 Reviews)

I make this low carb cheesecake filling in about five minutes with four ingredients. Creamy, mousse-like texture you can scoop straight from the bowl...

See the Recipe
A slice of coconut cream pie placed on a white plate with a pie spatula.
75 Mins
Keto Coconut Cream Pie
4.7 Stars (9 Reviews)

I've made a lot of low carb pies, and this keto coconut cream pie is the one I keep coming back to. Flaky almond flour crust, silky coconut custard,...

See the Recipe
A stack of four no bake chocolate cookies next to slices almonds.
6 Mins
Keto No Bake Cookies
4.8 Stars (12 Reviews)

I make these keto no bake cookies almost every week. Five minutes, no oven, and the oat fiber gives them that real oat flavor and crunch without a...

See the Recipe
A stacked pile of rich keto fudge squares with chopped walnuts visible inside each piece.
60 Mins
Keto Fudge
4.8 Stars (9 Reviews)

Homemade sugar-free condensed milk, chocolate chips, butter, vanilla, salt. 1.2g net carbs per piece. Smooth enough that no one guesses it's keto.

See the Recipe
Reviews 6
4.7 Stars (3 Reviews)
  1. D
    Danielle Miller Mar 14, 2026

    Never worked with agar before so I was watching those colored layers like a hawk while they set, and honestly the texture came out cleaner than any gelatin I've used (no wobble, just sharp clean cuts when I sliced into the springform). Is there a trick to keeping the glass cubes evenly distributed in the cream base, or is some settling toward the bottom just part of it?

  2. D
    Dana Mar 11, 2026

    The presentation on this is honestly beautiful, and mine came out looking almost exactly like the photos, which almost never happens for me with fancy no-bake projects. The agar was more temperature-sensitive than I expected though, and that's where I ran into trouble. My colored pieces started setting before I finished pouring them into separate bowls, so the distribution in my final slice was a little uneven compared to what I was going for. The cream base is lighter than you'd expect for something with zero sugar. Four stars because the concept is perfect and the flavor is there, but a note about working fast once the colored agar comes off the heat would have saved me a lot of scrambling. Next time I'm doing smaller batches so I can stay ahead of it.

  3. C
    Christine Feb 26, 2026

    Matched the extracts to the colors (raspberry for red, lemon for yellow) and it finally made sense. Agar is so neutral that without them you're just eating pretty shapes.

    1. Annie Lampella
      Annie Lampella Feb 28, 2026

      Raspberry for red, lemon for yellow is exactly what I do. Agar has zero flavor by itself, so without extract you've got nothing but color.

  4. E
    Elaine Feb 16, 2026

    Do I need to use agar powder specifically or would gelatin work the same way? I've never used agar before and not sure if it's worth ordering online or if I can just grab gelatin at the grocery store.

    1. Annie Lampella
      Annie Lampella Feb 16, 2026

      You can use gelatin but it sets softer and takes longer to firm up. Agar sets at room temp in like 15 minutes, gelatin needs fridge time. The cubes won't be as firm either, more jiggly. I like agar for this one because the cubes hold their shape when you slice it.

Leave a Review