change font

This commit is contained in:
Qing 2023-05-13 14:05:12 +08:00
parent 0ff4681437
commit f1c09ca7d4
26 changed files with 7223 additions and 6474 deletions

View File

@ -51,6 +51,7 @@
"hacktimer": "^1.1.3", "hacktimer": "^1.1.3",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"inter-ui": "^3.19.3",
"jest": "^27.4.3", "jest": "^27.4.3",
"jest-resolve": "^27.4.2", "jest-resolve": "^27.4.2",
"jest-watch-typeahead": "^1.0.0", "jest-watch-typeahead": "^1.0.0",

File diff suppressed because it is too large Load Diff

View File

@ -31,10 +31,8 @@ const CoffeeIcon = () => {
flexDirection: 'column', flexDirection: 'column',
}} }}
> >
<h4 style={{ lineHeight: '24px' }}> Hi, if you found my project is useful, please conside buy me a coffee
Hi, if you found my project is useful, please conside buy me a to support my work. Thanks!
coffee to support my work. Thanks!
</h4>
<img <img
src={CoffeeMachineGif} src={CoffeeMachineGif}
alt="coffee machine" alt="coffee machine"

View File

@ -30,6 +30,5 @@
} }
.file-select-message { .file-select-message {
font-family: 'WorkSans';
text-align: center; text-align: center;
} }

View File

@ -6,7 +6,6 @@
column-gap: 1rem; column-gap: 1rem;
background-color: var(--page-bg); background-color: var(--page-bg);
color: var(--btn-text-color); color: var(--btn-text-color);
font-family: 'WorkSans', sans-serif;
width: max-content; width: max-content;
padding: 0.5rem; padding: 0.5rem;
place-items: center; place-items: center;

View File

@ -1,7 +1,6 @@
@mixin accented-display($bg-color) { @mixin accented-display($bg-color) {
background: $bg-color; background: $bg-color;
color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: 'WorkSans';
padding: 0.5rem; padding: 0.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
} }

View File

@ -1,19 +0,0 @@
@font-face {
font-family: 'WorkSans';
src: url('../media/fonts/Work_Sans/WorkSans-Regular.ttf');
}
@font-face {
font-family: 'WorkSans-Semibold';
src: url('../media/fonts/Work_Sans/WorkSans-SemiBold.ttf');
}
@font-face {
font-family: 'WorkSans-Bold';
src: url('../media/fonts/Work_Sans/WorkSans-Bold.ttf');
}
@font-face {
font-family: 'WorkSans-Black';
src: url('../media/fonts/Work_Sans/WorkSans-Black.ttf');
}

View File

@ -1,5 +1,13 @@
@use '~inter-ui/default' with (
$inter-font-display: swap,
$inter-font-path: '~inter-ui/Inter (web)'
);
@use '~inter-ui/variable' with (
$inter-font-display: swap,
$inter-font-path: '~inter-ui/Inter (web)'
);
// General // General
@use './Fonts';
@use './Colors'; @use './Colors';
@use './ColorsDark'; @use './ColorsDark';
@use './Animations'; @use './Animations';
@ -40,7 +48,15 @@
padding: 0; padding: 0;
} }
html, @include default.all;
body { @include variable.all;
font-family: 'WorkSans', sans-serif;
html {
font-family: 'Inter', 'system-ui';
}
@supports (font-variation-settings: normal) {
html {
font-family: 'Inter var', 'system-ui';
}
} }