GoogleChromeLabs / GoogleChromeLabs/postcss-jit-props
Optimization
Open
- Dominant language
- JavaScript
- Stars
- 237
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] should check if `:root` is in the stylesheet already or not
- [ ] should check if that existing `:root` has props already before injecting
```css
:root {
--red: red;
}
p {
color: var(--blue);
}
```
should be:
```css
:root {
--red: red;
--blue: blue;
}
p {
color: var(--blue);
}
```
not:
```css
:root {
--red: red;
}
:root {
--blue: blue;
}
p {
color: var(--blue);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.