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
Discover More Keto Recipes on Our Channel

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

Recipe
Print Pin

Stained Glass Cake

4.8 (13) 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.7 Stars (48 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.7 Stars (24 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
A slice of coconut cream pie placed on a white plate with a pie spatula.
75 Mins
Keto Coconut Cream Pie
4.6 Stars (19 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.7 Stars (22 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
star piped pink and white cheesecake fluff in a small bowl topped with white, red and purple sprinkles
5 Mins
Keto Cheesecake Fluff
4.8 Stars (18 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
creamy ice cream dripping from a cone
35 Mins
Keto Vanilla Ice Cream
4.8 Stars (26 Reviews)

I perfected this 5-ingredient, egg-free recipe so it stays soft and scoopable straight from the freezer. No custard, no tempering. Just whisk, chill,...

See the Recipe
Reviews 34
4.8 Stars (13 Reviews)
  1. B
    Brett Jun 8, 2026

    Added a drop of raspberry extract to the red layer and a little lime juice to the green, just to see. When the color and flavor actually match it feels intentional, like you meant it instead of just making it look pretty. Subtle, but it makes a difference. Doing this every time now.

  2. J
    Jordan May 30, 2026

    Making this for a birthday dinner Saturday. Can the whole thing be assembled and refrigerated overnight, or do the agar layers need to stay separate until closer to serving?

    1. Annie Lampella
      Annie Lampella May 31, 2026

      Both parts are fine 2 days ahead, refrigerated separately. Day-of assembly keeps the cross-section sharp when you slice.

  3. G
    Gina May 27, 2026

    I made this last weekend and it looked pretty, but the colored agar squares wouldn't stay put once I poured the cream base over them. Most floated to the top before everything set, so the bottom half ended up almost entirely white. I did let the cream cool before pouring, just not sure I waited long enough. Is there a visual cue for when it's ready, like the edges starting to look slightly thicker? And does square size affect how well they hold position? Really hoping to nail the suspended look on round two.

    1. Annie Lampella
      Annie Lampella May 28, 2026

      Yeah, edge-thickening is the cue. I also tilt the bowl - if it runs like water, not ready yet. Bigger squares do hold better, the small ones float up before the base sets around them.

  4. H
    Hannah Apr 30, 2026

    Made this over the weekend and the agar pieces came out really firm, almost rubbery. Not sure if I used too much agar or if that's just how it is compared to gelatin. Do they soften once set in the cream, or should I scale back next time?

    1. Annie Lampella
      Annie Lampella May 2, 2026

      Agar is just firmer than gelatin, so some of that is normal. If it felt rubbery though, scale back to 3/4 teaspoon per color batch. They won't soften up once they hit the cream.

  5. C
    Chris Apr 28, 2026

    Swapped in full-fat coconut milk for the nut milk and the base set way firmer. Cubes stayed put when I sliced it instead of sliding around. Worth it if you care how it looks.

    1. Annie Lampella
      Annie Lampella May 1, 2026

      Coconut milk runs way higher fat than most nut milks so that tracks. Coconut cream is even denser if you want max hold on the base.

  6. L
    Lauren Z. Apr 27, 2026

    Never bought agar before and spent an embarrassing amount of time in the store staring at the package. It worked though. When I sliced it and saw those colored squares suspended in the white base, I genuinely didn't believe I'd made it myself.

    1. Annie Lampella
      Annie Lampella Apr 29, 2026

      That first slice is the whole payoff. Agar shows up in different spots depending on the store, usually Asian foods or baking, sometimes near supplements.

  7. M
    Maria Apr 25, 2026

    My daughter walked in while I was unmolding this and genuinely asked who brought the fancy dessert (she had no idea I made it). The colored cubes suspended in that cream base look so striking in person, way more impressive than I expected from just agar and food coloring. We almost didn't want to cut into it. Almost. She's fifteen and has zero interest in keto, so her stopping to actually comment on how it looked told me everything I needed to know about whether this one works.

    1. Annie Lampella
      Annie Lampella Apr 29, 2026

      A teenager with zero interest in keto stopping to ask where it came from is basically the whole test for this one. The 'almost' made me laugh.

  8. R
    Renee Apr 23, 2026

    Made a full batch Sunday night and I keep opening the fridge just to look at it before actually eating any. The colored agar squares look almost too good to cut, but every slice comes out clean. Four days in and the texture is the same as day one. Exactly the make-ahead dessert I've been looking for.

    1. Annie Lampella
      Annie Lampella Apr 27, 2026

      I still hesitate before the first slice every time. Agar locks that texture in for days.

  9. A
    Alex Apr 16, 2026

    Making this for Easter. I tracked down agar at my grocery store, but it only came in strip form, not powder. I've seen the 3x-by-weight rule but wasn't sure if it applies to no-bake recipes. Would strips work if I adjust the amount, or does the texture really depend on using powder?

    1. Annie Lampella
      Annie Lampella Apr 18, 2026

      Strips work. Triple the weight and give them more time on the heat, they're slower to dissolve than powder. Check for any bits still floating before you pour.

  10. M
    Mark Apr 13, 2026

    My grandmother used to make a jello mold version of this every Christmas and I thought those colorful desserts were just behind me on keto. That vanilla cream base with the colored cubes looks exactly like what I remember sitting on her counter as a kid, and for basically zero carbs. Easter is going to be so good.

  11. W
    Wendy Apr 12, 2026

    Warm your knife under hot water before cutting the colored agar pieces and the edges come out SO sharp they actually look like real stained glass instead of just random blobs.

    1. Annie Lampella
      Annie Lampella Apr 16, 2026

      Cold blade drags through the agar and you lose the edge. Run mine under the tap now before every cut.

  12. S
    Sarah Apr 10, 2026

    Served this Saturday and two guests were already Googling bakeries before I admitted it was agar powder and 16 calories a slice.

    1. Annie Lampella
      Annie Lampella Apr 14, 2026

      Ha, the pre-reveal bakery search. That's the best version of the compliment.

  13. T
    Tara Apr 7, 2026

    Third time making this and I finally cracked the color issue. First two attempts came out kind of muted, figured out I was adding the food coloring too early before the agar had cooled enough. Letting it get to just barely warm before stirring the color in is the fix, the colors actually pop the way they do in the photos. Also swapped nut milk for heavy cream and the texture shifted completely, way more set and almost silky when it slices. The way those colored cubes look suspended in the white layer still gets me every time. Making a double batch for Easter this weekend and not mentioning it's zero carbs until after.

    1. Annie Lampella
      Annie Lampella Apr 9, 2026

      That color window is so small. I've turned my back for 30 seconds and it's already too thick to mix. The Easter reveal is going to be good.

  14. J
    Jennifer Mar 21, 2026

    Used heavy cream instead of nut milk and the base came out SO much richer. The slices actually look like stained glass when you hold them up to the light. Lesson learned the hard way: let each colored layer fully set before cutting the cubes. Rushed it the first time and they were soft, kind of mushed together once I dropped them in. Worth the wait.

    1. Annie Lampella
      Annie Lampella Mar 24, 2026

      Cream gives you a richer base. I listed nut milk to keep it flexible but cream is better if dairy's not an issue. And soft cubes are the worst - they just blur into the base instead of holding their shape.

  15. 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?

    1. Annie Lampella
      Annie Lampella Mar 15, 2026

      The base needs to be slightly thickened before the cubes go in, otherwise they sink. I let mine cool until it's just starting to gel at the edges (5-6 minutes off the heat) then fold the cubes in fast and pour. Some variation is normal. All the way to the bottom means the base was still too warm.

Leave a Review