Skip to content

Commit 934757e

Browse files
authored
Add Dark Mode documentation
Add it to the README so people do not need to find tailwindlabs#69
1 parent 95bb9eb commit 934757e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,11 @@ module.exports = {
347347
},
348348
}
349349
```
350+
351+
### Supporting Dark Mode
352+
353+
If you'd like to support dark mode, you can use the configuration tools above. The [Tailwind Playground](https://play.tailwindcss.com/xTOjz3kR3m?file=config) provides one option for supporting dark mode quickly. The steps are:
354+
355+
1. Enable dark mode in Tailwind, documented here: https://tailwindcss.com/docs/dark-mode
356+
2. Add a "light" text modifier for the plugin, documented here: https://github.com/tailwindlabs/tailwindcss-typography#adding-new-modifiers
357+
3. Enable the "dark" variant for the typography plugin, documented here: https://tailwindcss.com/docs/dark-mode#enabling-for-other-utilities

0 commit comments

Comments
 (0)