2017-09-18 17:31:48 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const path = require('path');
|
2018-05-18 12:01:32 +08:00
|
|
|
const { generateTheme } = require('antd-theme-generator');
|
|
|
|
|
|
|
|
const options = {
|
|
|
|
stylesDir: path.join(__dirname, '../site/theme/static'),
|
|
|
|
antdStylesDir: path.join(__dirname, '../components'),
|
|
|
|
varFile: path.join(__dirname, '../components/style/themes/default.less'),
|
|
|
|
mainLessFile: path.join(__dirname, '../site/theme/static/index.less'),
|
|
|
|
themeVariables: [
|
|
|
|
'@primary-color',
|
|
|
|
],
|
|
|
|
outputFilePath: path.join(__dirname, '../_site/color.less'),
|
2017-09-18 17:31:48 +08:00
|
|
|
};
|
|
|
|
|
2018-05-18 12:01:32 +08:00
|
|
|
generateTheme(options);
|