forked from Mirrors/elk
perf: serve fonts from app (#382)
This commit is contained in:
parent
b0dae4fc9e
commit
31820c6265
6 changed files with 30 additions and 0 deletions
BIN
public/fonts/DM-mono-v10.ttf
Normal file
BIN
public/fonts/DM-mono-v10.ttf
Normal file
Binary file not shown.
BIN
public/fonts/DM-sans-v11.ttf
Normal file
BIN
public/fonts/DM-sans-v11.ttf
Normal file
Binary file not shown.
BIN
public/fonts/DM-serif-display-v10.ttf
Normal file
BIN
public/fonts/DM-serif-display-v10.ttf
Normal file
Binary file not shown.
BIN
public/fonts/homemade-apple-v18.ttf
Normal file
BIN
public/fonts/homemade-apple-v18.ttf
Normal file
Binary file not shown.
|
@ -1,3 +1,32 @@
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: "DM Mono";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(/fonts/DM-mono-v10.ttf) format("truetype");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: "DM Sans";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(/fonts/DM-sans-v11.ttf) format("truetype");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: "DM Serif Display";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(/fonts/DM-serif-display-v10.ttf) format("truetype");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: "Homemade Apple";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(/fonts/homemade-apple-v18.ttf) format("truetype");
|
||||||
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
scrollbar-color: #8885 var(--c-border);
|
scrollbar-color: #8885 var(--c-border);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@ export default defineConfig({
|
||||||
}),
|
}),
|
||||||
presetTypography(),
|
presetTypography(),
|
||||||
presetWebFonts({
|
presetWebFonts({
|
||||||
|
provider: 'none',
|
||||||
fonts: {
|
fonts: {
|
||||||
sans: 'DM Sans',
|
sans: 'DM Sans',
|
||||||
serif: 'DM Serif Display',
|
serif: 'DM Serif Display',
|
||||||
|
|
Loading…
Reference in a new issue