mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
styles(fonts): refactor the implementation of default font
This commit is contained in:
parent
9e629189c7
commit
3006954b2b
@ -1,5 +1,5 @@
|
||||
@font-face {
|
||||
font-family: 'FiraCode';
|
||||
font-family: 'naive-ui-mono';
|
||||
font-weight: 400;
|
||||
src: url('../resources/fonts/FiraCode-Regular.woff2');
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user