Page 1 of 1

CSS for cmyk output

Posted: Thu Nov 13, 2025 7:21 pm
by Leighb
I am using Oxygen 27.1 and Chemistry 27.1. I am trying to change my colors specs from rgb to cmyk but I getting an error in the editor and an immediate fail when running the pdf transformation scenario.
This is what I have for my css:

Code: Select all

article[outputclass~="domain_intro"] h1.title {
  color: -oxy-cmyk(90%,48%,0%,0%);
  font-weight: bold;
}
This is the error message: “-oxy-cmyk(90%,48%,0%,0%)” is not a “color” value : -oxy-cmyk(90%,48%,0%,0%) Context: article[outputclass~="domain_intro"] h1.title in property: color

What am I missing? Please help! (The deadline is past due and the printer is screaming!)

Thanks,
Leigh

Re: CSS for cmyk output

Posted: Fri Nov 14, 2025 10:43 am
by julien_lacour
Hello Leigh,

There is no -oxy-cmyk() function, and Oxygen PDF Chemistry also doesn’t support the device-cmyk() function (just as browsers don’t).
This function is only indicated in CSS Color Module Level 5 which is still a W3C Working Draft (last updated: 18 March 2025): https://www.w3.org/TR/css-color-5/#device-cmyk
CMYK is a print-oriented color model, but in most cases, PDFs are displayed on screens, which rely on RGB model.
However I added your vote to the feature request, when it will be available you will be notified on this thread.

Regards,
Julien