소스 검색

el主題色

CzRger 2 달 전
부모
커밋
7dd8926d61
3개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main.ts
  2. 8 0
      src/style/element-plus.scss
  3. 1 0
      src/style/index.scss

+ 1 - 1
src/main.ts

@@ -2,7 +2,6 @@ import { createApp } from 'vue'
 import App from './App.vue'
 import router, {beforeInit} from './router'
 import './style/tailwindcss.css'
-import './style/index.scss'
 import 'virtual:svg-icons-register'    // 【svg-icons相关】
 import initComponent from '@/plugins/initComponent'
 import initProperties from '@/plugins/initProperties'
@@ -14,6 +13,7 @@ import 'element-plus/dist/index.css'
 import 'highlight.js/styles/github-dark.css';
 import Antd from 'ant-design-vue';
 import 'ant-design-vue/dist/reset.css';
+import './style/index.scss'
 
 
 const app = createApp(App)

+ 8 - 0
src/style/element-plus.scss

@@ -0,0 +1,8 @@
+@forward 'element-plus/theme-chalk/src/common/var.scss' with (
+  $colors: (
+    'primary': (
+      'base': #2f82ff,
+    ),
+  ),
+);
+ @use "element-plus/theme-chalk/src/index.scss" as *;

+ 1 - 0
src/style/index.scss

@@ -2,6 +2,7 @@
 @use './czr';
 @use './font/font';
 @use './manage';
+@use "element-plus";
 
 * {
   outline: none;  // dom元素选中带边框