cuth / cuth/postcss-pxtorem

Transform within default variables

Open
#79 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

Transforming px values to rem is not working inside default values in custom properties.

CSS below would be sufficient to reproduce the issue.

```css
body {
padding: var(--site-padding, 16px)
}
```

Desired outcome should be:

```css
body {
padding: var(--site-padding, 1rem)
}
```

Nonetheless, such piece of code is not transformed. Is this a flaw possible to fix or design choice?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.