Skip to content

Commit

Permalink
Apply changesets and update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 9, 2024
1 parent 4afd728 commit 2cd1fe7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ An elegant color switch to toggle color schemes:

Fully support dark mode, including system preference with `prefers-color-scheme`. The dark/light mode is synced between tabs and modifies the `className` and data-attributes on the `html` or ServerTarget element:

````css
```css
:root {
--background: white;
--foreground: black;
Expand All @@ -169,7 +169,7 @@ Fully support dark mode, including system preference with `prefers-color-scheme`
/* or */

[data-rm="dark"] {...}

```

When using `ServerTarget`, use the CSS general sibling combinator (~):

Expand All @@ -182,10 +182,12 @@ When using `ServerTarget`, use the CSS general sibling combinator (~):
}
```

#### data attributes
#### Using the data-attributes

`data-rm` -> Resolved Mode

`data-m` -> User's preference

`data-sm` -> System preference

### Images
Expand Down Expand Up @@ -335,4 +337,3 @@ Please consider enrolling in [our courses](https://mayank-chaudhari.vercel.app/c
<hr />

<p align="center" style="text-align:center">with 💖 by <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a></p>
````

0 comments on commit 2cd1fe7

Please sign in to comment.