Skip to content

Commit

Permalink
Use Inter 4 and proper italic
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Jun 9, 2024
1 parent 4ace83b commit 0daa433
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 29 deletions.
Binary file removed src/fonts/inter-bold.woff
Binary file not shown.
Binary file modified src/fonts/inter-bold.woff2
Binary file not shown.
Binary file removed src/fonts/inter-italic.woff
Binary file not shown.
Binary file modified src/fonts/inter-italic.woff2
Binary file not shown.
Binary file removed src/fonts/inter-regular.woff
Binary file not shown.
Binary file modified src/fonts/inter-regular.woff2
Binary file not shown.
Binary file modified src/fonts/inter-variable.woff2
Binary file not shown.
Binary file removed src/fonts/jetbrains-mono.woff
Binary file not shown.
Binary file removed src/fonts/neue-machina.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion src/styles/blocks/content-block/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
blockquote {
margin: 0;
padding-inline-start: 24px;
font-variation-settings: 'slnt' -10;
font-style: italic;
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/styles/blocks/content-inline/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@

.content-inline {
em {
font-style: normal;
font-variation-settings: 'slnt' -10;
font-style: italic;
}

strong {
Expand Down
50 changes: 24 additions & 26 deletions src/styles/global/fonts.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
/* Inter Variable */

@font-face {
font-weight: 100 900;
font-family: 'Inter Variable';
font-style: oblique 0deg 10deg;
font-display: swap;
src: url('/fonts/inter-variable.woff2') format('woff2');
}

/* Inter Static */
/* Inter */

@font-face {
font-weight: 400;
font-family: 'Inter';
font-style: normal;
font-display: swap;
src:
url('/fonts/inter-regular.woff2') format('woff2'),
url('/fonts/inter-regular.woff') format('woff');
src: url('/fonts/inter-regular.woff2') format('woff2');
}

@font-face {
font-weight: 400;
font-family: 'Inter';
font-style: italic;
font-display: swap;
src:
url('/fonts/inter-italic.woff2') format('woff2'),
url('/fonts/inter-italic.woff') format('woff');
src: url('/fonts/inter-italic.woff2') format('woff2');
}

@font-face {
font-weight: 700;
font-family: 'Inter';
font-style: normal;
font-display: swap;
src:
url('/fonts/inter-bold.woff2') format('woff2'),
url('/fonts/inter-bold.woff') format('woff');
src: url('/fonts/inter-bold.woff2') format('woff2');
}

/* Inter Variable */

@font-face {
font-weight: 100 900;
font-family: 'Inter Variable';
font-style: normal;
font-display: swap;
src: url('/fonts/inter-variable.woff2') format('woff2');
}

@font-face {
font-weight: 400;
font-family: 'Inter Variable';
font-style: italic;
font-display: swap;
src: url('/fonts/inter-italic.woff2') format('woff2');
}

/* Neue Machina */
Expand All @@ -47,9 +49,7 @@
font-family: 'Neue Machina';
font-style: normal;
font-display: swap;
src:
url('/fonts/neue-machina.woff2') format('woff2'),
url('/fonts/neue-machina.woff') format('woff');
src: url('/fonts/neue-machina.woff2') format('woff2');
}

/* JetBrains Mono */
Expand All @@ -59,9 +59,7 @@
font-family: 'JetBrains Mono';
font-style: normal;
font-display: swap;
src:
url('/fonts/jetbrains-mono.woff2') format('woff2'),
url('/fonts/jetbrains-mono.woff') format('woff');
src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}

/* Variables */
Expand Down

0 comments on commit 0daa433

Please sign in to comment.