mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
b07190e13d
* chore: update style * chore: add dark css build * test: update snapshot * chore: remove compact var * chore: update style * test: update snapshot
20 lines
607 B
JavaScript
20 lines
607 B
JavaScript
/**
|
|
* 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;
|