Skip to content

Commit a5973e0

Browse files
OnatcerBijanProgrammer
authored andcommitted
Update README.md
1 parent b8a6684 commit a5973e0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ Configures what state of the toggle button should be shown to the user.
7878
- `currentState` - Shows the state that is currently applied to the website.
7979
- `newState` - Shows the state that will be applied when the user clicks the button.
8080

81+
## Customize Dark Mode
82+
83+
You can exclude elements from being inverted in dark mode using the `.nightowl-daylight` CSS class. Just add it to an element and it will show the element in the same way as the light mode.
84+
85+
```html
86+
<div>
87+
<p>I'm inverted in Dark Mode</p>
88+
<p class="nightowl-daylight">I'm not inverted in Dark Mode</p>
89+
</div>
90+
```
91+
8192
## Contribution Guidelines
8293

8394
Please open an issue and wait for one of the Maintainers to approve it until you open a merge request.

0 commit comments

Comments
 (0)