Skip to content

Commit

Permalink
💄 Use Victor Mono for the font
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed Apr 16, 2024
1 parent 69326d1 commit a882265
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default defineConfig({
description: "Make & manage your own homemade portfolio easily",
srcExclude: ["**/README.md", "ortfodb/**/*.md"],
head: [
["link", { rel: "stylesheet", href: "/fonts/import.css" }],
...faviconHead(),
[
"script",
Expand Down
1 change: 1 addition & 0 deletions .vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--docsearch-logo-color: var(--vp-c-brand-1);
--vp-c-brand-2: #d16f07;
--vp-c-brand-3: #bd6d17;
--vp-font-family-mono: 'Victor Mono', 'Fira Code', 'Monaco', monospace;
}

dt {
Expand Down
Binary file added public/fonts/VictorMono-Bold.woff
Binary file not shown.
Binary file added public/fonts/VictorMono-Bold.woff2
Binary file not shown.
Binary file added public/fonts/VictorMono-BoldItalic.woff
Binary file not shown.
Binary file added public/fonts/VictorMono-BoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/VictorMono-Italic.woff
Binary file not shown.
Binary file added public/fonts/VictorMono-Italic.woff2
Binary file not shown.
Binary file added public/fonts/VictorMono-Regular.woff
Binary file not shown.
Binary file added public/fonts/VictorMono-Regular.woff2
Binary file not shown.
35 changes: 35 additions & 0 deletions public/fonts/import.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@font-face {
font-family: "Victor Mono";
src: url("VictorMono-Regular.woff2") format("woff2"),
url("VictorMono-Regular.woff") format("woff");
font-weight: 200;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("VictorMono-Italic.woff2") format("woff2"),
url("VictorMono-Italic.woff") format("woff");
font-weight: 200;
font-style: italic;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("VictorMono-Bold.woff2") format("woff2"),
url("VictorMono-Bold.woff") format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("VictorMono-BoldItalic.woff2") format("woff2"),
url("VictorMono-BoldItalic.woff") format("woff");
font-weight: 400;
font-style: italic;
font-display: swap;
}

0 comments on commit a882265

Please sign in to comment.