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.
18 lines
480 B
18 lines
480 B
/** |
|
* convert dark.less into js vars |
|
* |
|
* 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;
|
|
|