Skip to content

Commit 7bbd94b

Browse files
author
designcise
committed
docs: added troubleshooting section
1 parent 66f48f2 commit 7bbd94b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,38 @@ $ yarn test
208208
209209
## Issues
210210
211+
### Reporting
212+
211213
https://github.com/designcise/next-theme-toggle/issues
212214
215+
### Troubleshooting Common Issues
216+
217+
#### Tailwind not updating dark mode styling
218+
219+
This can happen when you have your CSS or SASS file in a sub-folder that is not listed in `content` array in the `tailwind.config.js`:
220+
221+
```js
222+
// ...
223+
content: [
224+
'./pages/**/*.{js,jsx}',
225+
'./components/**/*.{js,jsx}',
226+
'./app/**/*.{js,jsx}',
227+
'./src/**/*.{js,jsx}',
228+
],
229+
// ...
230+
```
231+
232+
To fix this, you can add the folder where your CSS or SASS file is located. For example:
233+
234+
```js
235+
// ...
236+
content: [
237+
// ...
238+
'./src/styles/**/*.css',
239+
],
240+
// ...
241+
```
242+
213243
## Contributing
214244
215245
https://github.com/designcise/next-theme-toggle/blob/main/CONTRIBUTING.md

0 commit comments

Comments
 (0)