Skip to content

Commit 461b632

Browse files
authored
Adding a section to load antd variables in scope.
1 parent 8492e79 commit 461b632

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,16 @@ const Button = styled.button`
169169
}
170170
]
171171
```
172+
- Can this be used to load variable sheets such as Antd.
173+
Yes, in `.babelrc`, add the following or see https://stackoverflow.com/a/59472390/3666615 for more detals.
174+
```
175+
[
176+
"styless",
177+
{
178+
"import": "~antd/lib/style/themes/default.less",
179+
"lessOptions": {
180+
"javascriptEnabled": true
181+
}
182+
}
183+
]
184+
```

0 commit comments

Comments
 (0)