File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -232,3 +232,18 @@ Selector for node for CSS Custom properties and dark/light theme classes.
232232Type: ` boolean ` . Default: ` true ` .
233233
234234Should 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.
You can’t perform that action at this time.
0 commit comments