You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use tailwind v4 which uses oklch by default, i get the following error .
html2pdf__js.js?v=9bcbb486:16524 Uncaught (in promise) Error: Attempting to parse an unsupported color function "oklch"
at Object.parse (html2pdf__js.js?v=9bcbb486:16524:21)
at parseColor (html2pdf__js.js?v=9bcbb486:16641:24)
at parseBackgroundColor (html2pdf__js.js?v=9bcbb486:22626:71)
at html2pdf__js.js?v=9bcbb486:22582:36
at step (html2pdf__js.js?v=9bcbb486:14970:23)
at Object.next (html2pdf__js.js?v=9bcbb486:14922:20)
at fulfilled (html2pdf__js.js?v=9bcbb486:14894:30)
sorry for later reply. i moved my focus to another project. if you find anything, please update me 🙏. in my free time, i will look at the problem and try to find a solution to it.
sorry for later reply. i moved my focus to another project. if you find anything, please update me 🙏. in my free time, i will look at the problem and try to find a solution to it.
@FerventFrost have a look at #688 - the change to the html2canvas-pro dependency addresses this issue.
Activity
gensysweb6 commentedon Nov 6, 2025
any update on oklch support?
nacaratti commentedon Nov 8, 2025
i'm facing this problem too
Baher-Adel commentedon Nov 11, 2025
@gensysweb6 @nacaratti. no, no update sadly.
sorry for later reply. i moved my focus to another project. if you find anything, please update me 🙏. in my free time, i will look at the problem and try to find a solution to it.
chrispage1 commentedon Nov 27, 2025
@FerventFrost have a look at #688 - the change to the html2canvas-pro dependency addresses this issue.
SalahAdDin commentedon Apr 4, 2026
No solution yet?
SalahAdDin commentedon Apr 4, 2026
We did it by:
But it should be solved out-of-the-box.