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

Function modifyBorderColor

src/inject/dynamic-theme/modify-colors.ts:307–312  ·  view source on GitHub ↗
(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true)

Source from the content-addressed store, hash-verified

305}
306
307export function modifyBorderColor(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true): string {
308 if (!shouldRegisterColorVariable) {
309 return _modifyBorderColor(rgb, theme);
310 }
311 return modifyAndRegisterColor('border', rgb, theme, _modifyBorderColor);
312}
313
314export function modifyShadowColor(rgb: RGBA, theme: Theme): string {
315 return modifyBackgroundColor(rgb, theme);

Callers 4

defaultFallbackFactoryFunction · 0.90
getColorModifierFunction · 0.90

Calls 2

_modifyBorderColorFunction · 0.85
modifyAndRegisterColorFunction · 0.85

Tested by

no test coverage detected