File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,38 @@ $ yarn test
208208
209209## Issues
210210
211+ ### Reporting
212+
211213https://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
215245https://github.com/designcise/next-theme-toggle/blob/main/CONTRIBUTING.md
You can’t perform that action at this time.
0 commit comments