vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
607 B
19 lines
607 B
/** |
|
* convert default.less into js vars |
|
* |
|
* 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;
|
|
|