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

Function getShadowModifier

src/inject/dynamic-theme/modify-css.ts:721–727  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

719}
720
721export function getShadowModifier(value: string): CSSValueModifier | null {
722 const shadowModifier = getShadowModifierWithInfo(value);
723 if (!shadowModifier) {
724 return null;
725 }
726 return (theme: Theme) => shadowModifier(theme).result;
727}
728
729export function getScrollbarColorModifier(value: string): string | CSSValueModifier | null {
730 const colorsMatch = value.match(/^\s*([a-z]+(\(.*\))?)\s+([a-z]+(\(.*\))?)\s*$/);

Callers 1

Calls 1

Tested by

no test coverage detected