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

Function modifyLightSchemeColor

src/inject/dynamic-theme/modify-colors.ts:110–114  ·  view source on GitHub ↗
(rgb: RGBA, theme: Theme)

Source from the content-addressed store, hash-verified

108}
109
110function modifyLightSchemeColor(rgb: RGBA, theme: Theme): string {
111 const poleBg = getBgPole(theme);
112 const poleFg = getFgPole(theme);
113 return modifyColorWithCache(rgb, theme, modifyLightModeHSL, poleFg, poleBg);
114}
115
116function modifyLightModeHSL({h, s, l, a}: HSLA, poleFg: HSLA, poleBg: HSLA): HSLA {
117 const isDark = l < 0.5;

Callers 3

_modifyBackgroundColorFunction · 0.85
_modifyForegroundColorFunction · 0.85
_modifyBorderColorFunction · 0.85

Calls 3

getBgPoleFunction · 0.85
getFgPoleFunction · 0.85
modifyColorWithCacheFunction · 0.85

Tested by

no test coverage detected