MCPcopy Create free account
hub / github.com/darkreader/darkreader / getThemeKey

Function getThemeKey

src/inject/dynamic-theme/stylesheet-modifier.ts:13–19  ·  view source on GitHub ↗
(theme: Theme)

Source from the content-addressed store, hash-verified

11import type {CSSVariableModifier} from './variables';
12
13function getThemeKey(theme: Theme) {
14 let resultKey = '';
15 themeCacheKeys.forEach((key) => {
16 resultKey += `${key}:${theme[key]};`;
17 });
18 return resultKey;
19}
20
21const asyncQueue = createAsyncTasksQueue();
22

Callers 1

modifySheetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…