I added the lines below in the Row() function in checklist.js, just before calling $div.append($label);:
var backgroundColor = "";
switch (coffeeOrder.flavor) {
case 'caramel': backgroundColor = '#F5F5DC'; break;
case 'almond': backgroundColor = '#DEB887'; break;
case 'mocha': backgroundColor = '#D2691E'; break;
}
if (backgroundColor) {
$label.css('background', backgroundColor);
}
The colors came from https://www.w3schools.com/cssref/css_colors.asp; they are labeled as “Beige”, “BurlyWood”, and “Chocolate”, respectively.