Skip to content

Commit

Permalink
Add a note about custom properties
Browse files Browse the repository at this point in the history
Close #3
  • Loading branch information
MoOx committed Jan 20, 2015
1 parent e076592 commit 622a568
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ whatever {

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.

### Can we use CSS custom properties so we can do `color(var(--mainColor) adjuster())`?

By using [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) before this plugin, you can do that (sort of).
You have some examples in [cssnext playground](http://cssnext.github.io/cssnext-playground/).

---

## Contributing
Expand Down

0 comments on commit 622a568

Please sign in to comment.