// base color $blue: #409eff; $light-blue: #3f8cff; $red: #ef476f; $pink: #E65D6E; $green: #06d6a0; $tiffany: #4AB7BD; $yellow: #ffd166; $panGreen: #30B08F; $purple: #7209b7; // 新增渐变色和背景色 $primary-gradient: linear-gradient(45deg, $blue, $light-blue); $background-light: #f5f7fa; $background-dark: #141414; $card-background-light: #ffffff; $card-background-dark: #1f1f1f; // 默认菜单主题风格 - 浅色系 $base-menu-color: #303133; $base-menu-color-active: #409eff; $base-menu-background: #f0f2f5; $base-logo-title-color: #303133; // 保持原有的亮色配置作为备用 $base-menu-light-color: rgba(0,0,0,.70); $base-menu-light-background: #ffffff; $base-logo-light-title-color: #303133; // 子菜单颜色 $base-sub-menu-background: #e8ebf0; $base-sub-menu-hover: #dde2e9; $base-menu-hover: rgba(64, 158, 255, 0.1); $base-menu-active-background: rgba(64, 158, 255, 0.15); $base-menu-icon-color: #606266; // 菜单阴影 $menu-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); // 新增样式变量 $base-border-radius: 4px; $base-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05); $base-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); $base-sidebar-width: 240px; // the :export directive is the magic sauce for webpack // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass :export { menuColor: $base-menu-color; menuLightColor: $base-menu-light-color; menuColorActive: $base-menu-color-active; menuBackground: $base-menu-background; menuLightBackground: $base-menu-light-background; subMenuBackground: $base-sub-menu-background; subMenuHover: $base-sub-menu-hover; sideBarWidth: $base-sidebar-width; logoTitleColor: $base-logo-title-color; logoLightTitleColor: $base-logo-light-title-color; primaryColor: $blue; primaryGradient: $primary-gradient; successColor: $green; warningColor: $yellow; dangerColor: $red; accentColor: $purple; backgroundLight: $background-light; backgroundDark: $background-dark; menuBoxShadow: $menu-box-shadow; menuActiveBackground: $base-menu-active-background; }