MCPcopy Create free account
hub / github.com/ollm/OpenComic / getColorTokens

Function getColorTokens

scripts/theme.js:3–9  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

1const allColors = require(p.join(appDir, 'themes/material-design/colors/all-colors.js'));
2
3function getColorTokens(color)
4{
5 let tokens = fs.readFileSync(p.join(appDir, 'themes/material-design/colors', color, 'tokens.css'), 'utf8');
6 tokens += fs.readFileSync(p.join(appDir, 'themes/material-design/colors', color, 'tokens.missing.css'), 'utf8');
7
8 return tokens;
9}
10
11function getTokensColor(tokens, theme, key)
12{

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected