Of the sugar you've just added. Onion caramelization is a complex process, a prime example of the Maillard reaction. It involves several chains of chemical transformations, while the added sugar is only a step away from caramel.
> help things along with a little bit of sugar. In science speak, caramelization is the oxidation of sugars. Here, those sugars are the natural sugars in the onions, but the addition of a small amount of white sugar adds an extra caramelization boost.
https://liptouchfoods.com/why-do-onions-get-caramelized/