Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use fontsource to provide Inter #767

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"dependencies": {
"@docsearch/css": "^3.0.0",
"@docsearch/js": "^3.0.0",
"@fontsource/inter": "^4.5.11",
"@vitejs/plugin-vue": "^2.3.2",
"@vue/devtools-api": "^6.1.4",
"@vueuse/core": "^8.5.0",
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file removed src/client/theme-default/fonts/inter-cyrillic.woff2
Binary file not shown.
Binary file removed src/client/theme-default/fonts/inter-greek-ext.woff2
Binary file not shown.
Binary file removed src/client/theme-default/fonts/inter-greek.woff2
Binary file not shown.
Binary file removed src/client/theme-default/fonts/inter-latin-ext.woff2
Binary file not shown.
Binary file removed src/client/theme-default/fonts/inter-latin.woff2
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/client/theme-default/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './styles/fonts.css'
import '@fontsource/inter/variable-full.css'
import './styles/vars.css'
import './styles/base.css'
import './styles/utils.css'
Expand Down
2 changes: 1 addition & 1 deletion src/client/theme-default/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ textarea {

button {
padding: 0;
font-family: inherit;;
font-family: inherit;
background-color: transparent;
background-image: none;
}
Expand Down
67 changes: 0 additions & 67 deletions src/client/theme-default/styles/fonts.css

This file was deleted.

8 changes: 4 additions & 4 deletions src/client/theme-default/styles/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
* -------------------------------------------------------------------------- */

:root {
--vp-font-family-base: Inter, -apple-system,
BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
--vp-font-family-base: 'InterVariable', -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
--vp-font-family-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
}

Expand Down Expand Up @@ -179,7 +179,7 @@
* Icons
* -------------------------------------------------------------------------- */

:root {
:root {
--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' class='h-6 w-6' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");
--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' class='h-6 w-6' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E");
}
Expand Down