afc163
2 years ago
committed by
GitHub
6 changed files with 6 additions and 58 deletions
@ -1,13 +0,0 @@ |
|||
const fs = require('fs'); |
|||
const path = require('path'); |
|||
const lessToJs = require('less-vars-to-js'); |
|||
|
|||
const stylePath = path.join(__dirname, '..', 'components', 'style'); |
|||
const compactLess = fs.readFileSync(path.join(stylePath, 'themes', 'compact.less'), 'utf8'); |
|||
|
|||
const compactPaletteLess = lessToJs(compactLess, { |
|||
stripPrefix: true, |
|||
resolveVariables: false, |
|||
}); |
|||
|
|||
module.exports = compactPaletteLess; |
@ -1,19 +0,0 @@ |
|||
/** |
|||
* Convert dark.less into js vars |
|||
* |
|||
* @example |
|||
* const darkVars = require('./dark-vars'); |
|||
*/ |
|||
const fs = require('fs'); |
|||
const path = require('path'); |
|||
const lessToJs = require('less-vars-to-js'); |
|||
|
|||
const stylePath = path.join(__dirname, '..', 'components', 'style'); |
|||
const darkLess = fs.readFileSync(path.join(stylePath, 'themes', 'dark.less'), 'utf8'); |
|||
|
|||
const darkPaletteLess = lessToJs(darkLess, { |
|||
stripPrefix: true, |
|||
resolveVariables: false, |
|||
}); |
|||
|
|||
module.exports = darkPaletteLess; |
@ -1,20 +0,0 @@ |
|||
/** |
|||
* Convert default.less into js vars |
|||
* |
|||
* @example |
|||
* const darkVars = require('./default-vars'); |
|||
*/ |
|||
const fs = require('fs'); |
|||
const path = require('path'); |
|||
const lessToJs = require('less-vars-to-js'); |
|||
|
|||
const stylePath = path.join(__dirname, '..', 'components', 'style'); |
|||
const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8'); |
|||
const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8'); |
|||
|
|||
const defaultPaletteLess = lessToJs(`${colorLess}${defaultLess}`, { |
|||
stripPrefix: true, |
|||
resolveVariables: false, |
|||
}); |
|||
|
|||
module.exports = defaultPaletteLess; |
Loading…
Reference in new issue