Skip to content

Commit

Permalink
Update font
Browse files Browse the repository at this point in the history
  • Loading branch information
muuvmuuv committed Feb 3, 2020
1 parent a6f21ba commit acf0feb
Show file tree
Hide file tree
Showing 43 changed files with 16 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/JetBrainsMono/JetBrainsMono-Bold.ttf
Binary file not shown.
Binary file added src/fonts/JetBrainsMono/JetBrainsMono-Bold.woff
Binary file not shown.
Binary file added src/fonts/JetBrainsMono/JetBrainsMono-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/JetBrainsMono/JetBrainsMono-ExtraBold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/JetBrainsMono/JetBrainsMono-Italic.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/JetBrainsMono/JetBrainsMono-Medium.ttf
Binary file not shown.
Binary file added src/fonts/JetBrainsMono/JetBrainsMono-Medium.woff
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/JetBrainsMono/JetBrainsMono-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/fonts/PlayfairDisplay/PlayfairDisplay.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions src/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
'Noto Color Emoji';
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, Arial,
'Segoe UI', 'Noto Sans', sans-serif, var(--font-emoji);
--font-serif: 'Playfair Display', -webkit-pictograph, serif, var(--font-emoji);
--font-mono: 'JetBrains Mono', 'mononoki', Menlo, Monaco, Consolas, 'Liberation Mono',
'Courier New', monospace, var(--font-emoji);
--font-serif: 'Playfair Display', serif, var(--font-emoji);
--font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'mononoki', Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace, var(--font-emoji);

--font-extra-light: 100;
--font-light: 200;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/fonts/_inter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $font-slug: 'Inter';
$font-path: '../fonts/#{$font-slug}';
$font-display: swap;

// https://github.com/rsms/inter/

@font-face {
font-family: $font-name;
font-style: normal;
Expand Down
5 changes: 4 additions & 1 deletion src/styles/fonts/_jetbrains-mono.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ $font-slug: 'JetBrainsMono';
$font-path: '../fonts/#{$font-slug}';
$font-display: fallback;

// https://www.jetbrains.com/lp/mono/#intro

@font-face {
font-family: $font-name;
font-style: normal;
font-weight: 400;
font-display: $font-display;
src: local($font-name), local($font-slug),
url('#{$font-path}/#{$font-slug}-Regular.ttf') format('ttf');
url('#{$font-path}/#{$font-slug}-Regular.woff2') format('woff2'),
url('#{$font-path}/#{$font-slug}-Regular.woff') format('woff');
}
5 changes: 4 additions & 1 deletion src/styles/fonts/_playfair-display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ $font-slug: 'PlayfairDisplay';
$font-path: '../fonts/#{$font-slug}';
$font-display: fallback;

// https://github.com/clauseggers/Playfair-Display

@font-face {
font-family: $font-name;
font-style: normal;
font-weight: 400;
font-display: $font-display;
src: local($font-name), local($font-slug),
url('#{$font-path}/#{$font-slug}.ttf') format('ttf');
url('#{$font-path}/#{$font-slug}-Regular.woff2') format('woff2'),
url('#{$font-path}/#{$font-slug}-Regular.woff') format('woff');
}
2 changes: 1 addition & 1 deletion src/styles/layouts/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
}

nav {
font-family: var(--font-mono);
font-size: var(--text-sm);
font-weight: var(--font-bold);
letter-spacing: 1px;
Expand Down Expand Up @@ -68,6 +67,7 @@
z-index: 22;
width: 40px;
height: 40px;
margin: -6px; // remove flickering
border: 0;
background: transparent;
cursor: pointer;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/pages/_writings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

h2 {
font-family: var(--font-serif);
font-size: var(--text-lg);
font-size: var(--text-xl);

@include breakpoint-up(lg) {
font-size: var(--text-xl);
font-size: var(--text-xxl);
}
}

Expand Down

0 comments on commit acf0feb

Please sign in to comment.