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

Function isVariable

src/inject/dynamic-theme/variables.ts:744–746  ·  view source on GitHub ↗
(property: string)

Source from the content-addressed store, hash-verified

742}
743
744function isVariable(property: string) {
745 return property.startsWith('--');
746}
747
748function isVarDependant(value: string) {
749 return value.includes('var(');

Callers 4

collectRootVariablesMethod · 0.85
inspectVarDependantMethod · 0.85
putRootVarsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected