added html2canvas to learn if the background is light or dark, and code to assign different classes based on that background luminosity