Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ollm/OpenComic
/ getTokensColor
Function
getTokensColor
scripts/theme.js:11–16 ·
view source on GitHub ↗
(tokens, theme, key)
Source
from the content-addressed store, hash-verified
9
}
10
11
function
getTokensColor(tokens, theme, key)
12
{
13
let
color = extract(
new
RegExp(
'(?:color|palette)-'
+key+
'-'
+theme+
':\\s*([a-z0-9#]+)'
,
'iu'
), tokens, 1);
14
15
return
color;
16
}
17
18
function
setColor(color)
19
{
Callers
1
start
Function · 0.85
Calls
1
extract
Function · 0.70
Tested by
no test coverage detected