postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

Issue #76

Closed nihiluis closed 7 years ago

nihiluis commented 7 years ago

Nvm: my code editor sucks sometimes

In my setup the comment breaks the variables. Variables will become undefined.

Also: ⚠ Custom property ignored: not scoped to the top-level :root element (// breaks

:root {
    --standard-text: #31393f;
    --medium-text: #646b75;
    --highlight-text: #1a3851;
    --highlight-text-2: #1c4b72;
    --light-text: #ffffff;
    --highlight-light-text: #8797a5;
}
// breaks
:root {
    --standard-bg: #ffffff;
    --diff-bg: #e6f2ff;
    --light-bg: #646b75;
    --medium-bg: #3a3f47;
    --dark-bg: #14171a;
    --focus-bg: #14171a;
}