Skip to content

Commit 8ad38a2

Browse files
committed
Add removeMedia option docs
1 parent a80e446 commit 8ad38a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,18 @@ Selector for node for CSS Custom properties and dark/light theme classes.
232232
Type: `boolean`. Default: `true`.
233233

234234
Should plugin wrap added selector to `:where()` to keep origin specificity.
235+
236+
237+
## `removeMedia`
238+
239+
Type: `boolean`. Default: `false`.
240+
241+
Should plugin remove origin `@media` and keep only classes. It could be useful
242+
when only JS is responsible for theme switching.
243+
244+
If you are using this option, don’t forget:
245+
1. That theme should have 3 values: light, system, dark.
246+
2. To subscribe for system theme switching in JS.
247+
248+
We do not recommend this option for most of the cases, because of light flash
249+
when user visit your app with dark system theme and until JS will be loaded.

0 commit comments

Comments
 (0)