postcss-custom-properties icon indicating copy to clipboard operation
postcss-custom-properties copied to clipboard

Use Custom Properties in CSS

Results 43 postcss-custom-properties issues
Sort by recently updated
recently updated
newest added

Hi, `preserve: false` dosen't work with css @import, however `preserve: true` works great. If index.css looks like ``` :root { --some-color: red; } body { color: var(--some-color); } ``` then...

Hi, `importFrom` behaviour differs from deprecated `variables`. `importFrom` does not take effect when using with `postcss-import`. My usecase: colors.css ```css :root { --button-label-color: green; } ``` theme.css ```css @import '../colors.css';...

Hi, I am in a situation where the css library I am using exports root variables, as well as declarations using `color(var(--x) a(--y))`. I need to provide the consuming application...

Trying to access custom properties set in :root does not seem to work on IE11: `getComputedStyle(document.documentElement).getPropertyValue('--my-var')` returns empty string despite confirming `--my-var` is properly set. Works as expected on Edge...

Without any options specified, with `[email protected]`, `[email protected]` and `[email protected]` ```css :root { --font-family: 'Courier New', Courier, monospace; } div { font-family: var(--font-family); } ``` becomes: ```css :root { --font-family: 'Courier...

I'm currently trying to add this plugin with Webpack. I have no errors on build but there is no change on output css. postcss.config.js ``` module.exports = { plugins: {...

I'm having an issue related to comments that are deleted when those are typed right after the property. In my case, I need to use comments in order to use...

This is a question, not an issue, but I really want to know why it behaves like that and I think it could be useful as reference for other people....

I was poking around here hoping to find some possibility for doing something I'd like to accomplish and while reading #138 and thought, "Hmm, we have a lot of cases...

According to CSS vars draft, if I import a file with `:root` variables, it should work, right? But it doesn't with postcss-custom-properties. vars.css: ```css :root { --some-color: red; } ```...