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.
31 lines
1.1 KiB
31 lines
1.1 KiB
2 years ago
|
import { getThemeVariables } from 'ant-design-vue/dist/theme';
|
||
|
|
||
|
// @primary-color: #1890ff; // 全局主色
|
||
|
// @link-color: #1890ff; // 链接色
|
||
|
// @success-color: #52c41a; // 成功色
|
||
|
// @warning-color: #faad14; // 警告色
|
||
|
// @error-color: #f5222d; // 错误色
|
||
|
// @font-size-base: 14px; // 主字号
|
||
|
// @heading-color: rgba(0, 0, 0, 0.85); // 标题色
|
||
|
// @text-color: rgba(0, 0, 0, 0.65); // 主文本色
|
||
|
// @text-color-secondary: rgba(0, 0, 0, 0.45); // 次文本色
|
||
|
// @disabled-color: rgba(0, 0, 0, 0.25); // 失效色
|
||
|
// @border-radius-base: 4px; // 组件/浮层圆角
|
||
|
// @border-color-base: #d9d9d9; // 边框色
|
||
|
// @box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15); // 浮层阴影
|
||
|
|
||
|
/**
|
||
|
* less global variable
|
||
|
*/
|
||
|
export function generateModifyVars(dark = false) {
|
||
|
const modifyVars = getThemeVariables({ dark });
|
||
|
return {
|
||
|
...modifyVars,
|
||
|
// Used for global import to avoid the need to import each style file separately
|
||
|
// reference: Avoid repeated references
|
||
|
// hack: `${modifyVars.hack} @import (reference) "${resolve('src/design/config.less')}";`,
|
||
|
'primary-color': '#3860F4',
|
||
|
'link-color': '#3860F4',
|
||
|
};
|
||
|
}
|