styles(fonts): refactor the implementation of default font

This commit is contained in:
07akioni 2020-06-01 13:01:32 +08:00
parent 9e629189c7
commit 3006954b2b
4 changed files with 7 additions and 23 deletions

View File

@ -1,5 +1,5 @@
@font-face {
font-family: 'FiraCode';
font-family: 'naive-ui-mono';
font-weight: 400;
src: url('../resources/fonts/FiraCode-Regular.woff2');
}

View File

@ -1,21 +1,13 @@
@import '../themes/common.scss';
@font-face {
font-family: 'FiraSans';
font-family: 'naive-ui';
font-weight: 400;
src: url('../resources/fonts/FiraSans-Regular.woff2');
}
@font-face {
font-family: 'FiraSans';
font-family: 'naive-ui';
font-weight: 500;
src: url('../resources/fonts/FiraSans-Medium.woff2');
}
body {
font-family: 'FiraSans', $--n-font-family;
}
input {
font-family: 'FiraSans', $--n-font-family;
}

View File

@ -1,21 +1,13 @@
@import '../themes/common.scss';
@font-face {
font-family: 'Lato';
font-family: 'naive-ui';
font-weight: 400;
src: url('../resources/fonts/LatoLatin-Regular.woff2');
}
@font-face {
font-family: 'Lato';
font-family: 'naive-ui';
font-weight: 500;
src: url('../resources/fonts/LatoLatin-Semibold.woff2');
}
body {
font-family: 'Lato', $--n-font-family;
}
input {
font-family: 'Lato', $--n-font-family;
}

View File

@ -1,5 +1,5 @@
$--n-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$--n-mono-font-family: FiraCode, SFMono-Regular, Menlo, Consolas, Courier, monospace;
$--n-font-family: naive-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$--n-mono-font-family: naive-ui-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace;
$--n-strong-weight: 500;