Skip to content

Commit

Permalink
docs: added troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
designcise committed Nov 26, 2023
1 parent 66f48f2 commit 7bbd94b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,38 @@ $ yarn test
## Issues
### Reporting
https://github.com/designcise/next-theme-toggle/issues
### Troubleshooting Common Issues
#### Tailwind not updating dark mode styling
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`:
```js
// ...
content: [
'./pages/**/*.{js,jsx}',
'./components/**/*.{js,jsx}',
'./app/**/*.{js,jsx}',
'./src/**/*.{js,jsx}',
],
// ...
```
To fix this, you can add the folder where your CSS or SASS file is located. For example:
```js
// ...
content: [
// ...
'./src/styles/**/*.css',
],
// ...
```
## Contributing
https://github.com/designcise/next-theme-toggle/blob/main/CONTRIBUTING.md
Expand Down

0 comments on commit 7bbd94b

Please sign in to comment.