-
I'm using tailwindcss and postcss-px-to-rem. I wonder how to migrate it to twind
postcss.config.js
|
Beta Was this translation helpful? Give feedback.
Answered by
sastan
Feb 5, 2021
Replies: 1 comment 2 replies
-
I think that maybe possible using the prefix option: import { setup, autoprefix as prefix } from 'twind'
// Or if you do not want to prefix properties
// import { setup, noprefix as prefix } from 'twind'
const pxToRem = (value) => {
// Your implementation here
return value
}
setup({
// prefix: (property: string, value: string, important?: boolean) => string
prefix: (property, value, important) => prefix(property, pxToRem(value), important),
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sastan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that maybe possible using the prefix option: