MCPcopy
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
11function 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
18function setColor(color)
19{

Callers 1

startFunction · 0.85

Calls 1

extractFunction · 0.70

Tested by

no test coverage detected