Skip to content

Commit dd85535

Browse files
committed
Add notice to CSS variables guide
1 parent 4799d8b commit dd85535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/setup-css-variables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Setup CSS variables support
22

3+
_! Please make sure that you are using the latest version of Sass, LESS, or Stylus transformer before doing the setup. !_
4+
35
Using [postcss-css-variables](https://github.com/MadLittleMods/postcss-css-variables#readme) you can use most of CSS variables features, including selector cascading with some caveats, because this can only see the CSS, not the potentially dynamic HTML and DOM the CSS is applied to.
46

57
If you are already using `react-native-css-transformer`, then need to switch to use `react-native-postcss-transformer` (please refer to the setup documentation) and add a PostCSS config with [postcss-css-variables](https://github.com/MadLittleMods/postcss-css-variables#readme) plugin.

0 commit comments

Comments
 (0)