Skip to content

Commit

Permalink
Merge branch 'feature/update-fonts' into feature/update
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrankowska committed Aug 13, 2021
2 parents 56ba307 + 8115c23 commit 82c18b2
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 4 deletions.
Binary file added assets/fonts/FrankRuhlLibre-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/FrankRuhlLibre-Bold.woff
Binary file not shown.
Binary file added assets/fonts/FrankRuhlLibre-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/PublicSans-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/PublicSans-Bold.woff
Binary file not shown.
Binary file added assets/fonts/PublicSans-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/PublicSans-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/PublicSans-Regular.woff
Binary file not shown.
Binary file added assets/fonts/PublicSans-Regular.woff2
Binary file not shown.
23 changes: 23 additions & 0 deletions assets/styles/_fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@font-face {
font-weight: 700;
font-family: 'Frank Ruhl Libre';
font-style: normal;
src: url(/assets/fonts/FrankRuhlLibre-Bold.woff2) format('woff2'), url(/assets/fonts/FrankRuhlLibre-Bold.woff) format('woff'), url(/assets/fonts/FrankRuhlLibre-Bold.ttf) format('ttf');
font-display: swap;
}

@font-face {
font-weight: 400;
font-family: 'Public Sans';
font-style: normal;
src: url(/assets/fonts/PublicSans-Regular.woff2) format('woff2'), url(/assets/fonts/PublicSans-Regular.woff) format('woff'), url(/assets/fonts/PublicSans-Regular.ttf) format('ttf');
font-display: swap;
}

@font-face {
font-weight: 700;
font-family: 'Public Sans';
font-style: normal;
src: url(/assets/fonts/PublicSans-Bold.woff2) format('woff2'), url(/assets/fonts/PublicSans-Bold.woff) format('woff'), url(/assets/fonts/PublicSans-Bold.ttf) format('ttf');
font-display: swap;
}
3 changes: 1 addition & 2 deletions assets/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Not the prettiest way, but I need it to work now */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Work+Sans:wght@400;500;700&display=swap');
@import './_fonts.css';

@tailwind base;
@tailwind components;
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ module.exports = {
xxl: '1600px'
},
fontFamily: {
serif: ['Playfair Display', 'serif'],
sans: ['Work Sans', 'sans-serif'],
serif: ['Frank Ruhl Libre', 'serif'],
sans: ['Public Sans', 'sans-serif'],
mono: ['menlo', 'monaco', 'consolas', 'Liberation Mono', 'Courier New', 'monospace']
},
backgroundColor: theme => ({
Expand Down

0 comments on commit 82c18b2

Please sign in to comment.