Skip to content

oklch support #829

Open
Open

Description

@Baher-Adel

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)

Activity

  1. gensysweb6 commented on Nov 6, 2025

    @gensysweb6

    any update on oklch support?

  2. nacaratti commented on Nov 8, 2025

    @nacaratti

    i'm facing this problem too

  3. Baher-Adel commented on Nov 11, 2025

    @Baher-Adel
    Author

    @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.

  4. chrispage1 commented on Nov 27, 2025

    @chrispage1

    @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.

    @FerventFrost have a look at #688 - the change to the html2canvas-pro dependency addresses this issue.

  5. SalahAdDin commented on Apr 4, 2026

    @SalahAdDin

    No solution yet?

  6. SalahAdDin commented on Apr 4, 2026

    @SalahAdDin

    We did it by:

      "pnpm": {
        "overrides": {
          "html2canvas": "npm:html2canvas-pro@2.0.2"
        }
      },

    But it should be solved out-of-the-box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions