diff --git a/README.md b/README.md index 721f364..4c076f8 100644 --- a/README.md +++ b/README.md @@ -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