mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
15 lines
521 B
JavaScript
15 lines
521 B
JavaScript
#!/usr/bin/env node
|
|
const path = require('path');
|
|
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'),
|
|
};
|
|
|
|
generateTheme(options);
|