Skip to content

Commit

Permalink
perf: remove unused fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 18, 2023
1 parent cce467a commit da2f19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 2 additions & 16 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ html {
width: 100vw;
}

@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 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';
Expand Down Expand Up @@ -153,7 +139,7 @@ em-emoji-picker {
--at-apply: pl-2;
}
.code-block {
--at-apply: font-mono bg-code text-0.875em p3 mt-2 rounded overflow-auto
--at-apply: bg-code text-0.875em p3 mt-2 rounded overflow-auto
leading-1.6em;

.shiki {
Expand Down Expand Up @@ -275,4 +261,4 @@ allows controlling them individually
[data-mode="grayscale"] img:hover,
[data-mode="grayscale"] video:hover {
filter: grayscale(0);
}
}
2 changes: 0 additions & 2 deletions unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export default defineConfig({
presetWebFonts({
provider: 'none',
fonts: {
serif: 'DM Serif Display',
mono: 'DM Mono',
script: 'Homemade Apple',
},
}),
Expand Down

0 comments on commit da2f19f

Please sign in to comment.