(color)
| 1 | const allColors = require(p.join(appDir, 'themes/material-design/colors/all-colors.js')); |
| 2 | |
| 3 | function 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 | |
| 11 | function getTokensColor(tokens, theme, key) |
| 12 | { |