Skip to content

Commit

Permalink
Use local font
Browse files Browse the repository at this point in the history
  • Loading branch information
LeBenLeBen committed Dec 6, 2023
1 parent 23fb063 commit df36e74
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
5 changes: 0 additions & 5 deletions packages/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookr</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap"
rel="stylesheet"
/>
</head>
<body class="bg-alt-100 text-alt-800">
<div id="app"></div>
Expand Down
6 changes: 6 additions & 0 deletions packages/frontend/src/assets/css/base/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@font-face {
font-family: 'Fredoka';
src: url('../../fonts/Fredoka-SemiBold.woff2') format('woff2');
font-weight: bold;
font-display: swap;
}
2 changes: 2 additions & 0 deletions packages/frontend/src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

@import './preflight/defaults.css';

@import './base/fonts.css';

@import 'tailwindcss/components';

@import './components/headings.css';
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
theme: {
extend: {
fontFamily: {
display: ['Fredoka One', 'sans-serif'],
display: ['Fredoka', 'sans-serif'],
},
colors: {
primary: {
Expand Down

0 comments on commit df36e74

Please sign in to comment.