MCPcopy
hub / github.com/darkreader/darkreader / tryModifyBgColor

Function tryModifyBgColor

src/inject/dynamic-theme/variables.ts:842–844  ·  view source on GitHub ↗
(color: string, theme: Theme)

Source from the content-addressed store, hash-verified

840}
841
842function tryModifyBgColor(color: string, theme: Theme) {
843 return handleRawColorValue(color, theme, modifyBackgroundColor);
844}
845
846function tryModifyTextColor(color: string, theme: Theme) {
847 return handleRawColorValue(color, theme, modifyForegroundColor);

Callers 4

getDeclarationsMethod · 0.85
modifyMethod · 0.85
putRootVarsMethod · 0.85

Calls 1

handleRawColorValueFunction · 0.85

Tested by

no test coverage detected