Browse Source

全局应用小米字体

lifanagju_citu 1 month ago
parent
commit
7a6cff2085

BIN
src/assets/fonts/MiSans-Bold.woff2


BIN
src/assets/fonts/MiSans-Demibold.woff2


BIN
src/assets/fonts/MiSans-Medium.woff2


BIN
src/assets/fonts/MiSans-Normal.woff2


BIN
src/assets/fonts/MiSans-Semibold.woff2


+ 45 - 0
src/styles/fonts.scss

@@ -0,0 +1,45 @@
+/* assets/fonts.css */
+
+@font-face {
+  font-family: 'MiSans';
+  src: url('../assets/fonts/MiSans-Normal.woff2') format('woff2');
+  // font-weight: 400;
+  font-style: normal;
+  font-display: swap;
+}
+
+@font-face {
+  font-family: 'MiSans-Medium';
+  src: url('../assets/fonts/MiSans-Medium.woff2') format('woff2');
+  // font-weight: 500;
+  font-style: normal;
+  font-display: swap;
+}
+
+@font-face {
+  font-family: 'MiSans-Demibold';
+  src: url('../assets/fonts/MiSans-Demibold.woff2') format('woff2');
+  // font-weight: 600;
+  font-style: normal;
+  font-display: swap;
+}
+
+@font-face {
+  font-family: 'MiSans-Semibold';
+  src: url('../assets/fonts/MiSans-Semibold.woff2') format('woff2');
+  // font-weight: 700;
+  font-style: normal;
+  font-display: swap;
+}
+
+@font-face {
+  font-family: 'MiSans-Bold';
+  src: url('../assets/fonts/MiSans-Bold.woff2') format('woff2');
+  // font-weight: 800;
+  font-style: normal;
+  font-display: swap;
+}
+
+body {
+  font-family: 'MiSans', sans-serif;
+}

+ 1 - 0
src/styles/index.scss

@@ -1,4 +1,5 @@
 @charset "UTF-8";
+@import './fonts.scss';
 :root {
   --zIndex-dialog: 999;
   --default-bgc: #f2f4f7;