Skip to content

Commit 622a568

Browse files
committed
Add a note about custom properties
Close postcss#3
1 parent e076592 commit 622a568

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ whatever {
9595

9696
No we cannot do that. `currentcolor` depends on the cascade (so the DOM) and we can't handle that in a simple preprocessing step. You need to handle that with polyfills.
9797

98+
### Can we use CSS custom properties so we can do `color(var(--mainColor) adjuster())`?
99+
100+
By using [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) before this plugin, you can do that (sort of).
101+
You have some examples in [cssnext playground](http://cssnext.github.io/cssnext-playground/).
102+
98103
---
99104

100105
## Contributing

0 commit comments

Comments
 (0)