vant.config.js 1.26 KB
/*
 * @Date: 2025-03-24 13:44:27
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-04-16 18:28:45
 * @FilePath: /mlaj/src/vant.config.js
 * @Description: 文件描述
 */
// vant.config.js
export const themeVars = {
  // 主题色
  primaryColor: '#22c55e',
  successColor: '#22c55e',
  warningColor: '#f59e0b',
  dangerColor: '#ef4444',
  infoColor: '#3b82f6',

  // 圆角
  borderRadiusSm: '2px',
  borderRadiusMd: '4px',
  borderRadiusLg: '8px',
  borderRadiusMax: '999px',

  // 字体
  fontSizeXs: '10px',
  fontSizeSm: '12px',
  fontSizeMd: '14px',
  fontSizeLg: '16px',

  // 按钮
  buttonPrimaryBackground: '#22c55e',
  buttonPrimaryBorderColor: '#22c55e',
  buttonBorderRadius: 'var(--van-border-radius-lg)',

  // 输入框
  fieldLabelColor: '#374151',
  fieldInputTextColor: '#111827',
  fieldPlaceholderTextColor: '#9ca3af',
  fieldErrorMessageColor: '#ef4444',

  // Cell
  cellBackgroundColor: 'transparent',
  cellBorderColor: '#e5e7eb',
  cellActiveColor: '#f3f4f6',
  cellRequiredColor: '#ef4444',
  cellLabelColor: '#374151',
  cellValueColor: '#111827',

  // 弹出层
  popupBackgroundColor: '#ffffff',
  popupCloseIconColor: '#9ca3af',
  popupCloseIconActiveColor: '#6b7280',

  // Picker 选择器
  pickerConfirmActionColor: '#22c55e',
};