GoogleChromeLabs / GoogleChromeLabs/postcss-jit-props

Optimization

Open
#16 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.