Ten onions are cooked slowly in butter for up to two hours until pale golden, sweet and very soft, then baked in a crisp pastry case made with ground walnuts and parmesan. A splash of sherry vinegar and a little brown sugar balance the sweetness of the onions. The tart serves eight and suits a vegetarian Christmas lunch, a Boxing Day buffet or a weekend supper with a green salad. It sits among the other vegetarian tart recipes on the site.

Why it works

Cooking the onions gently, partly covered, lets them soften and release their sugars without burning. Slicing them about 0.5cm thick helps them hold their shape rather than collapsing into a purée. Sherry vinegar adds a sharp edge. In the pastry, egg yolks bring richness, and rubbing the butter in until sandy keeps it short. Chilling and freezing the pastry case briefly before blind baking stops it shrinking in the tin.

Make it easy

Cook the onions a day ahead and chill them; they reheat well. The pastry can also be made ahead and kept wrapped in the fridge. Slice the onions by hand to the right thickness rather than in a food processor. Heat the oven to 200°C/180°C fan/gas 6 before rolling out the pastry.

Swaps

Use a vegetarian hard cheese in place of parmesan for a vegetarian tart. Pecans or hazelnuts can replace the walnuts. Red onions give a deeper colour, and balsamic vinegar works in place of sherry vinegar. Add some crumbled goat’s cheese or thyme leaves before baking. For more ideas, see the savoury tarts or browse the French recipes.