A green synthetic approach to synthesizing diverse 2-pyridones for their exceptional UV shielding functions