This French-American fusion combines the deep, savory sweetness of slowly caramelized onions with the indulgent creaminess of classic mac and cheese. The dish features a velvety sauce made with whole milk, cream, and a trio of Gruyère, sharp cheddar, and Parmesan cheeses. Each forkful delivers layers of flavor from the wine-infused onions, aromatic thyme, and optional Worcestershire sauce. The golden panko topping adds satisfying crunch while fresh parsley brightens the rich finish.
The smell of onions caramelizing hits differently when it is raining outside. I first made this on a gray Sunday when a friend canceled dinner plans, leaving me with three onions and an unexpected evening alone. Something about slow cooking onions feels meditative, almost therapeutic. This dish became my go to comfort meal.
I served this at a small dinner party last winter, and the conversation completely stopped when everyone took their first bite. One friend literally put her fork down and said, wait, what did you put in this. That is the moment I knew this recipe was special.
Ingredients
- 2 large yellow onions, thinly sliced: Yellow onions develop the best sweetness and flavor when slow cooked, and patience here is everything
- 2 cloves garlic, minced: Fresh garlic adds that aromatic undertone that complements the sweet onions perfectly
- 300 g elbow macaroni or short pasta: Short pasta shapes hold onto the cheese sauce better, creating perfect bites in every spoonful
- 3 tbsp unsalted butter: Butter creates the base for both caramelizing onions and making the roux for the sauce
- 1 tbsp olive oil: This prevents the butter from burning while giving you enough fat to properly caramelize the onions
- 2 tbsp all purpose flour: Flour creates the roux that thickens the cheese sauce into that velvety consistency we crave
- 500 ml whole milk: Whole milk gives the sauce the richness and creaminess that makes mac and cheese so comforting
- 120 ml heavy cream: Just a touch of cream takes the texture from good to absolutely luxurious
- 130 g Gruyère cheese, grated: Gruyère melts beautifully and adds that nutty, sophisticated flavor that defines this dish
- 60 g sharp cheddar cheese, grated: Sharp cheddar brings the familiar, comforting flavor we all associate with mac and cheese
- 30 g Parmesan cheese, grated: Parmesan adds a salty, umami punch that balances the sweetness of the onions
- 120 ml dry white wine: Wine deglazes the pan and adds acidity that cuts through all that rich cheese
- 1 tsp fresh thyme leaves: Thyme pairs naturally with caramelized onions and adds an earthy, aromatic note
- 1/2 tsp salt, plus more to taste: Salt throughout the cooking process, especially when caramelizing onions, builds layers of flavor
- 1/4 tsp black pepper: Fresh cracked pepper adds just enough warmth and spice to balance the rich, sweet elements
- 1 tsp Worcestershire sauce: This secret ingredient adds incredible depth and umami that makes people wonder what makes it so good
- 60 g panko breadcrumbs: Panko creates a lighter, crispier topping than traditional breadcrumbs
- 2 tbsp unsalted butter, melted: Melted butter coats the panko, helping it achieve that golden, crunchy crust we all love
- 20 g Gruyère cheese, grated: Extra Gruyère on top means more of that nutty, bubbly, browned cheese goodness
- 1 tbsp chopped fresh parsley: Fresh parsley adds a bright, herbaceous pop of color and freshness against all the rich, golden tones
Instructions
- Get your oven ready:
- Preheat your oven to 200°C (400°F) and grease a 2 L baking dish with butter or cooking spray so nothing sticks later.
- Caramelize the onions:
- Heat 3 tbsp butter and 1 tbsp olive oil in a large skillet over medium heat. Add sliced onions, thyme, and 1/2 tsp salt, then cook for 20 to 25 minutes, stirring frequently, until onions are deeply golden and sweet. Lower the heat if they are browning too fast you want them to cook slowly and evenly.
- Build the flavor base:
- Stir in garlic and cook for just 1 minute until fragrant. Pour in white wine and Worcestershire sauce, then scrape up all those brown bits from the bottom of the pan. Let it simmer for about 3 minutes until most of the liquid has evaporated.
- Cook the pasta:
- Boil the pasta in salted water until just al dente according to package directions, then drain and set aside. Do not overcook it here since it will bake later.
- Make the cheese sauce:
- In the same skillet, melt 2 tbsp butter over medium heat, whisk in flour, and cook for 1 to 2 minutes to remove the raw flour taste. Gradually whisk in milk and cream, stirring constantly until the sauce thickens, about 3 to 5 minutes.
- Add the cheeses:
- Reduce heat to low and stir in Gruyère, cheddar, and Parmesan until melted and completely smooth. Season with pepper.
- Combine everything:
- Fold in the caramelized onions and drained pasta, mixing well so every piece of pasta is coated in that cheesy, oniony goodness.
- Transfer to baking dish:
- Pour the mixture into your prepared baking dish and spread it evenly.
- Make the crispy topping:
- In a small bowl, combine panko, melted butter, and extra Gruyère. Sprinkle this mixture evenly over the pasta.
- Bake until golden:
- Bake for 20 minutes until the topping is golden brown and the cheese is bubbling up around the edges. Let it rest for 5 minutes before garnishing with parsley and serving.
My roommate walked in while this was baking and immediately asked what smelled so incredible. The combination of bubbling cheese and sweet onions filled our entire apartment. We ended up eating straight from the dish standing by the counter.
Make It Your Own
Once you have mastered the basic recipe, try swapping in different cheeses like fontina for extra meltiness or smoked gouda for a subtle smoky flavor that pairs beautifully with the sweet onions.
Perfect Pairings
A crisp green salad with vinaigrette cuts through the richness of this dish perfectly. I also love serving it with a glass of the same white wine I used in the recipe it ties everything together beautifully.
Make Ahead Magic
You can assemble this entire dish up to a day ahead, cover it tightly, and store it in the refrigerator. When you are ready to bake, add an extra 5 to 10 minutes to the baking time if it is cold from the fridge.
- The flavors actually develop and get better overnight, making this an excellent dish for meal prep
- Leftovers reheat surprisingly well in the microwave or oven, though the topping will lose some of its crispness
- This recipe doubles easily and freezes well before baking, so consider making two pans and freezing one for later
This recipe has become my answer to every question about what to bring to potlucks, dinner parties, or nights when comfort food is the only thing that will do. Hope it becomes a favorite in your kitchen too.
Questions & Answers
- → What makes this different from regular mac and cheese?
-
The addition of slowly caramelized onions cooked with white wine creates a deep, savory sweetness that transforms the classic creamy pasta into something extraordinary. The three-cheese blend and crispy breadcrumb topping add extra layers of texture and flavor.
- → Can I prepare this ahead of time?
-
Yes, assemble the dish completely through step 8, cover tightly, and refrigerate for up to 24 hours. Add an extra 10-15 minutes to the baking time if cooking from cold. The topping can be added just before baking.
- → What cheese substitutions work best?
-
Swiss or Emmental makes excellent substitutes for Gruyère. Gouda adds wonderful smokiness, while Fontina provides exceptional melt. For sharper flavor, try aged Gouda or extra sharp cheddar in place of regular sharp cheddar.
- → How do I get perfectly caramelized onions?
-
Cook them slowly over medium heat for the full 20-25 minutes, stirring frequently. Don't rush—this process develops the deep brown color and sweet flavor. Lower the heat if they start browning too quickly. The white wine helps deglaze and intensifies the flavor.
- → What should I serve with this?
-
A crisp green salad with vinaigrette cuts through the richness beautifully. Roasted vegetables like broccoli or asparagus also complement the creamy pasta. For wine pairing, try a dry white like Sauvignon Blanc or a light red such as Pinot Noir.
- → Can I freeze leftovers?
-
Leftovers freeze well for up to 3 months. Portion into airtight containers and thaw overnight in the refrigerator. Reheat covered with a splash of milk at 180°C (350°F) until heated through, then uncover briefly to recrisp the topping.