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

When I start webpack compilation, Terminal prompts the error shown in the following image. An error means that CSS variables are not defined. How can I deal with this problem...

Changes in file e.g. vars.css passed to Options.importFrom option does not trigger rebuild. How to solve it? Im wondered that I did not find anything about this problem on the...

**Background** Hi, first of all thanks for the library, has proven very helpful with rectifying some IE11 issues related to css variables taken from node-sass parsed sass files. Unfortunately, since...

Hello, thanks for the awesome package and the great work. I have found an issue when you have a Custom Property defined as Fallback of a Custom Property. Given the...

version: 8.0.9 ```scss :root{ --green: var(--customGreen, #08cb6a); --primary: var(--customPrimary, var(--green)); } .test { background: color(var(--primary) shade(5%)); //output background: var(--green); background: var(--primary); // expect background: #08cb6a; background: var(--primary); } ```

```js const postcss = require("postcss"); const postcssCustomProperties = require("postcss-custom-properties"); const testStr = ` :root { ---first-color: 255, 255, 0; --second-color: rgba(var(---first-color), .5); } h1 { color: var(--second-color); } `; postcss([...

bug

I can make a PR to allow other file extensions like `.sss` which I'm using, `.sass`, `.scss` or `.less`. All that is needed is to copy `getCustomPropertiesFromCSSFile` function and just...

This would be a great postcss plugin if it could handle CSS vars that are not in the `:root` element like https://github.com/nuxodin/ie11CustomProperties/issues can (but not client-side, obviously)

1.) Is sync way available? I see in source code in index.cjs.js that it should return sync function when there is no import and export in options `const canReturnSyncFunction =...

Somewhat related to https://github.com/postcss/postcss-custom-properties/issues/101. Would it be possible to disable preserve on a single variable? I'm thinking maybe ```var()``` could be wrapped in another function that forces it to always...