Skip to content

Commit 9ffb703

Browse files
authored
feat: update example config to use .ns-dark for dark mode
1 parent 5e7c6bc commit 9ffb703

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ Adjust `content`, `darkMode`, `corePlugins` plus any other settings you need, he
3434
```js
3535
// tailwind.config.js
3636

37+
/** @type {import('tailwindcss').Config} */
3738
module.exports = {
3839
content: [
3940
'./app/**/*.{css,xml,html,vue,svelte,ts,tsx}'
4041
],
41-
// use .dark to toggle dark mode - since 'media' (default) does not work in NativeScript
42-
darkMode: 'class',
42+
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
43+
darkMode: ['class', '.ns-dark'],
4344
theme: {
4445
extend: {},
4546
},

0 commit comments

Comments
 (0)