Caramelized Onion and Gruyère Mini Tartlets with Thyme

Caramelized Onion and Gruyère Mini Tartlets with Thyme

The onions start out piled high in the skillet, then slowly soften and shrink until they’re deep golden and sweet. Rushing that part is the easiest way to miss what…

By Julia • • Reading time: 9 min
Tip: save now, cook later.
Serves 4–6

The onions start out piled high in the skillet, then slowly soften and shrink until they’re deep golden and sweet. Rushing that part is the easiest way to miss what makes these caramelized onion and Gruyère mini tartlets with thyme work: the onion should taste rich and mellow, not sharp or browned only at the edges.

I like the contrast between the buttery, crisp pastry and the soft egg-and-cream filling, with Gruyère bringing a nutty, savory note. The shells get a short bake before they’re filled, so the pastry has a head start instead of trying to puff beneath a wet custard. Baked in a mini muffin pan, each tartlet comes out with a flaky edge and a tender center.

Caramelized onion and Gruyère mini tartlets with thyme, golden flaky pastry
“

Kitchen Note

Keep the thawed puff pastry cold while you cut and fit the rounds. If it turns soft and sticky on the counter, it’s harder to handle neatly and won’t hold its shape as well in the muffin cups.

Save these caramelized onion and Gruyère mini tartlets for a party appetizer with crisp pastry, sweet onions, and thyme in every bite.

Save to Pinterest

Why These Tartlets Need Onions Cooked Past Soft

Soft onions and caramelized onions aren’t quite the same thing. The first stage takes away their raw bite, but the deeper golden color brings the rounded sweetness that keeps Gruyère from dominating each little tart. Since the filling is divided among many pastry shells, each bite needs a concentrated onion flavor rather than a few barely softened slices.

Keep the skillet over medium-low heat and give the onions time. They’ll release moisture, turn translucent, and gradually deepen in color; stirring every few minutes keeps the edges from catching while the rest cooks down. If they’re still pale and sharp, they need more time, not a higher flame. The full 30–40 minutes is useful here because the onions have to become very soft and deep golden before the thyme goes in. A little patience in the skillet gives the finished filling its sweet-savory balance.

What Gruyère, Thyme, and Puff Pastry Each Bring

Caramelized onion and Gruyère mini tartlets with thyme, crisp golden bites
  • Yellow onion — A medium yellow onion softens into a sweet, savory base without overpowering the small portions. Slice it thinly so it cooks evenly; thick pieces take longer to turn tender. There isn’t a direct replacement among the other listed ingredients, so keep the onion if you want the tartlets’ characteristic filling.
  • Fresh thyme — Chopped leaves bring a gently woodsy note that suits both the onion and Gruyère. Use the leaves, not the tougher stems, and chop them just before cooking. Dried thyme has a more concentrated, different texture, so it isn’t a like-for-like swap in this recipe.
  • Gruyère — Its nutty, savory taste holds up against the sweet onion, and it melts smoothly into the egg mixture. Shredding it finely helps distribute it among the small shells. A different cheese would change the balance, and none of the remaining ingredients gives the same flavor.
  • Frozen puff pastry — The two thawed sheets create crisp, buttery shells without mixing a separate dough. The useful texture cue is thawed but still cold: pastry that has become warm and floppy is much harder to cut and press into the cups cleanly. All-purpose flour keeps the rounds from sticking as you roll and cut.
  • Eggs and heavy cream — Together they make the savory custard that holds the onion and cheese in place. Whisk them until the pepper is evenly dispersed, then spoon the mixture into the shells so every tartlet gets a similar amount. There isn’t a tested dairy- or egg-free substitute within this ingredient list.

From Slow-Sweet Onions to Set Custard Centers

Cook the onions until deep golden

Melt the butter in a 10-inch skillet over medium-low heat, then add the thinly sliced onion and kosher salt. Stir every few minutes for 30–40 minutes, until the pieces are very soft and deep golden rather than merely translucent. Stir in the chopped thyme and cook for 1 minute; adding it at the end keeps its aroma distinct. Set the onions aside while you prepare the pastry.

Cut and fit the pastry rounds

Heat the oven to 400°F and coat the cups of a 24-cup mini muffin pan with nonstick cooking spray. Lightly flour the work surface, unfold the thawed pastry, and cut 24 rounds that are 2 1/2 inches across, rerolling scraps once if needed. Press one round into each cup without stretching it, since stretched pastry pulls back as it bakes. Prick each base once or twice with a fork to help limit large air pockets.

Give the shells a head start

Bake the empty pastry shells for 8–10 minutes, until they’re puffed and set. They’ll rise in the oven, which is expected; gently press down the centers with the back of a spoon to make room for filling. Work carefully so you flatten the middle without crushing the delicate sides. The shells should look baked and hold their cup shape before the custard goes in.

Fill, bake, and let them settle

Divide the Gruyère and caramelized onions among the pastry shells. Whisk the eggs, heavy cream, and black pepper together, then spoon the mixture evenly into the cups. Bake for 10–14 minutes, until the pastry is golden, the filling is set, and the centers reach 160°F; if the middle still looks liquid, give it more time in the oven. Cool the tartlets in the pan for 5 minutes before carefully lifting them out.

Three Ways to Shift the Tartlets Without Changing the Ingredients

Put the thyme in the custard

For a more even herbal note, stir the chopped thyme into the egg-and-cream mixture instead of cooking it with the onions. Keep the same ingredients and amounts; the thyme will taste fresher and more spread through the filling.

Make a Gruyère-topped version

Place the onion filling in each shell first, spoon in the custard, then finish with the Gruyère on top. The same cheese gets a little more direct heat and forms a savory top layer, while the original assembly gives you cheese distributed through each bite.

Make some bites more onion-forward

Keep the total filling unchanged but divide the onions and Gruyère unevenly among the shells: use more onion in some and more cheese in others. The tartlets will have slightly different savory-sweet balances, which is handy when you want a varied platter without changing the shopping list.

Storage and Reheating

  • Refrigerator: Refrigerate within 2 hours and keep the baked tartlets covered for up to 3 days. The pastry softens a little as it sits.
  • Freezer: They freeze well after baking and cooling. Freeze them in a single layer, then transfer to an airtight container for up to 2 months.
  • Reheating: Warm refrigerated or frozen tartlets in a 350°F oven until heated through and the pastry has crisped again. The microwave warms the filling, but it leaves the puff pastry soft.

Questions That Come Up While Making These Mini Tartlets

Can I make the caramelized onions ahead?+

Yes. Cook the onions and thyme ahead, cool them, and keep them refrigerated in a covered container. Bring them back to room temperature before filling the shells so they don’t cool the custard unevenly.

Can I assemble the tartlets and bake them later?+

It’s better to bake them soon after adding the egg mixture. If the filled pastry sits, the custard can soak into the shells before they finish baking; prepare the onions ahead instead and assemble close to oven time.

Can I reroll the pastry scraps more than once?+

Reroll them once if you need to, but don’t keep gathering and rolling the scraps. Extra handling presses the pastry layers together, so the later rounds are less likely to puff into flaky shells.

Can I bake these in a regular muffin pan instead?+

These pastry rounds and filling portions are sized for a 24-cup mini muffin pan. A regular muffin pan has larger cups, so the same rounds won’t fit properly and the filling depth and baking time would change.

Caramelized Onion and Gruyère Mini Tartlets with Thyme

Caramelized onion and Gruyère mini tartlets bake in puff pastry shells until golden, with soft sweet onions, creamy filling, and fresh thyme. These bite-size appetizers are baked in a mini muffin pan and served warm or at room temperature.
Prep Time 20 minutes
Cook Time 57 minutes
Cooling 5 minutes
Total Time 1 hour 22 minutes
Servings: 24 servings
Course: Appetizer
Cuisine: French
Calories: 95

Ingredients
  

For the caramelized onions
  • 1 tbsp unsalted butter
  • 1 yellow onion medium (about 8 ounces), thinly sliced
  • 0.25 tsp kosher salt
  • 1 tsp fresh thyme leaves chopped
For the tartlets
  • 1 nonstick cooking spray for coating the muffin cups
  • 1 package (17.3 oz) frozen puff pastry 2 sheets, thawed but cold
  • 1 tbsp all-purpose flour for rolling
  • 0.5 cup Gruyère cheese shredded
  • 2 eggs large
  • 0.25 cup heavy cream
  • 0.125 tsp black pepper

Equipment

  • 1 10-inch skillet
  • 1 24-cup mini muffin pan

Method
 

Make the onions
  1. Melt the butter in a 10-inch skillet over medium-low heat.
  2. Add the onion and salt; cook for 30–40 minutes, stirring every few minutes, until very soft and deep golden.
  3. Stir in the thyme and cook for 1 minute.
Prepare the pastry
  1. Heat the oven to 400°F and coat the cups of a 24-cup mini muffin pan with nonstick cooking spray.
  2. Lightly flour the work surface, unfold the pastry, and cut 24 rounds 2 1/2 inches across, rerolling scraps once if needed.
  3. Press one round into each muffin cup without stretching the pastry, then prick each base once or twice with a fork.
  4. Bake the shells for 8–10 minutes, until puffed and set.
  5. Gently press down the centers with the back of a spoon.
Assemble and bake
  1. Divide the Gruyère and caramelized onions among the shells.
  2. Whisk the eggs, heavy cream, and pepper together, then spoon the mixture evenly into the shells.
  3. Bake for 10–14 minutes, until the pastry is golden, the filling is set, and the centers reach 160°F.
  4. Cool the tartlets in the pan for 5 minutes before carefully lifting them out.

Notes

Keep the puff pastry cold while shaping for the best flaky shells. Store covered in the refrigerator for up to 3 days; baked tartlets can be frozen. Swiss cheese can replace Gruyère for a milder flavor.

Join our weekly recipe email

Slow-cooked comfort, easy weeknights, and seasonal bakes—straight to your inbox.

Unsubscribe anytime. We respect your inbox.

Leave a Comment

Recipe Rating