The project used Tailwind CSS, but the color palette in Tailwind CSS 4.0 changed from rgb (red, green and blue) to oklch (Oklab Color Space), resulting in the following error when using html2canvas:
Error: Attempting to parse an unsupported color function "oklch"