Skip to content

Commit

Permalink
client: add font nunito
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasSchaut committed Sep 29, 2024
1 parent a86e292 commit 2abe1c0
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
<LayoutFooter />
</div>
</template>

<style scoped>
* {
font-family: Nunito, 'sans-serif';
}
</style>
48 changes: 48 additions & 0 deletions client/public/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./nunito/Nunito-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('./nunito/Nunito-Italic.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('./nunito/Nunito-Medium.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url('./nunito/Nunito-MediumItalic.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('./nunito/Nunito-SemiBold.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('./nunito/Nunito-Bold.ttf') format('truetype');
}
}
Binary file added client/public/fonts/nunito/Nunito-Bold.ttf
Binary file not shown.
Binary file added client/public/fonts/nunito/Nunito-Italic.ttf
Binary file not shown.
Binary file added client/public/fonts/nunito/Nunito-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file added client/public/fonts/nunito/Nunito-Regular.ttf
Binary file not shown.
Binary file added client/public/fonts/nunito/Nunito-SemiBold.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default <Partial<Config>>{
primary: colors.indigo,
secondary: colors.gray,
},
fontFamily: {
nunito: 'Nunito, sans-serif',
},
},
},
plugins: [require('@tailwindcss/forms')],
Expand Down

0 comments on commit 2abe1c0

Please sign in to comment.