MCPcopy Index your code
hub / github.com/darkreader/darkreader / getColorSchemeModifier

Function getColorSchemeModifier

src/inject/dynamic-theme/modify-css.ts:745–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

743}
744
745export function getColorSchemeModifier(): CSSValueModifier {
746 return (theme: Theme) => theme.mode === 0 ? 'dark light' : 'dark';
747}
748
749function getVariableModifier(
750 variablesStore: VariablesStore,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected