Skip to content

Commit c1297e8

Browse files
committed
docs: declarationByWalk description
1 parent 76e097b commit c1297e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

readme.md

+8
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ Type: `Object`
160160
Default: `{}`
161161
Description: *Allows you to pass an object of variables for `:root`. These definitions will override any that exist in the CSS*
162162

163+
#### `declarationByWalk`
164+
165+
Type: `boolean`
166+
Default: `false`
167+
Description: *Searches for root declarations by traversing all declarations before interpolating them.*
168+
169+
> :warning: Attention, this approach is slower and carries the risk of overriding existing variables
170+
163171
[postcss-conditionals]: https://github.com/andyjansson/postcss-conditionals
164172
[postcss-each]: https://github.com/outpunk/postcss-each
165173
[postcss-for]: https://github.com/antyakushev/postcss-for

0 commit comments

Comments
 (0)