Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit f60c140

Browse files
jayenasharjonathantneal
authored andcommitted
specify what variable names this plugin accepts
1 parent 306e3bb commit f60c140

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ postcssCustomProperties({
121121
```
122122

123123
See example imports written in [JS](test/import-variables.js) and
124-
[JSON](test/import-variables.json).
124+
[JSON](test/import-variables.json). Currently only valid [custom property names] (beginning with `--`) are accepted. Not all valid [declaration value names] are accepted.
125125

126126
[cli-img]: https://img.shields.io/travis/csstools/postcss-env-function/master.svg
127127
[cli-url]: https://travis-ci.org/csstools/postcss-env-function
@@ -135,3 +135,6 @@ See example imports written in [JS](test/import-variables.js) and
135135
[CSS Environment Variables]: https://drafts.csswg.org/css-env-1/
136136
[PostCSS]: https://github.com/postcss/postcss
137137
[PostCSS Environment Variables]: https://github.com/csstools/postcss-env-function
138+
139+
[custom property names]: https://drafts.csswg.org/css-variables-1/#typedef-custom-property-name
140+
[declaration value names]: https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value

0 commit comments

Comments
 (0)