Skip to content

Commit 9d22950

Browse files
eschaeferjxnblk
andauthored
More neutral description of useLocalStorage
Co-Authored-By: Brent Jackson <[email protected]>
1 parent a1b4749 commit 9d22950

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/docs/src/pages/color-modes.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ If you do not have a color mode named `dark` or `light`, this will have no effec
150150

151151
### Disable persisting color mode on `localStorage`
152152

153-
In some cases, it is not desirable to have the color mode set as a `localStorage` value.
154-
The common use-case being that disconnected slices of your app use different color
155-
modes on the same domain.
153+
To disable `localStorage` add the `useLocalStorage: false` flag to your theme.
156154

157155
```js
158156
{
@@ -169,4 +167,3 @@ modes on the same domain.
169167
}
170168
}
171169
```
172-

0 commit comments

Comments
 (0)