Closed ghost closed 2 years ago
Hi @mycodedig
postcss-color-mod
was deprecated because the specification died.
This means that browsers will never add support for it.
This might help you get unstuck :
https://github.com/romainmenke/postcss-preset-env-migrations
It has two pieces :
The npm package will never be updated and is only intended to be used temporarily.
This makes it possible to update postcss-preset-env
today and then take the next few weeks to update your source code.
Closing as user was deleted.
What is the alternative to color-mod
?
These have become color-mix
and relative color syntax
We hope to have PostCSS plugins for these at some point
Reproduction link
No response
Bug description
Hi there, I am new to postcss plugins. I have to migrate
postcss-preset-env
from v6.7.0 to the latest v7.4.1 My postcss plugins stack for v6.7.0 looks like :-When I bumped the version of
postcss-preset-env
to v7.4.1, I got to know that the color-mod-function support is removed. Could someone please suggest what should we use in place of it so that browser will recognizecolor-mod
function.i tried to have
color-function
in place of it but it is not workingActual Behavior
No response
Expected Behavior
browser should recognize
color-mod
functionCan you reproduce it with
npx @csstools/csstools-cli <plugin-name> minimal-example.css
?No response
npx
OutputNo response
Extra config
No response
What plugin are you experiencing this issue on?
PostCSS Preset Env
Plugin version
7.4.1
What OS are you experiencing this on?
macOS
Node Version
12
Validations
Would you like to open a PR for this bug?