Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to excluding CSS variable when transfrom px to rem? #96

Open
wmo123 opened this issue Feb 15, 2023 · 2 comments
Open

Comments

@wmo123
Copy link

wmo123 commented Feb 15, 2023

No description provided.

@mikstime
Copy link

Hi! You can use PX instead of px

@Sapphire2k
Copy link

// px is converted to rem
.convert {
font-size: 16px; // converted to 1rem
}

// Px or PX is ignored by postcss-pxtorem but still accepted by browsers
.ignore {
border: 1Px solid; // ignored
border-width: 2PX; // ignored
}

Is there any possible to support this, not auto change unit but transform the value?? just like the old plugin i used px2rem-postcss

.ignore {
border: 1px solid; /px/
border-width: 2px; /px/
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants