We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80e446 commit 8ad38a2Copy full SHA for 8ad38a2
1 file changed
README.md
@@ -232,3 +232,18 @@ Selector for node for CSS Custom properties and dark/light theme classes.
232
Type: `boolean`. Default: `true`.
233
234
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