Skip to content

Commit 982a268

Browse files
committed
Incorporate two new fonts in tailwind.config.mjs and global.css
1 parent d6f1d22 commit 982a268

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

src/assets/fonts/Gabarito.ttf

155 KB
Binary file not shown.

src/assets/fonts/Montserrat.ttf

672 KB
Binary file not shown.

src/styles/globals.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
5+
6+
@font-face {
7+
font-family: 'montserrat';
8+
src: url("../assets/fonts/Montserrat.ttf") format('truetype')
9+
/* font-weight: 400;
10+
font-style: normal; */
11+
}
12+
13+
@font-face {
14+
font-family: 'gabarito';
15+
src: url('../assets/fonts/Gabarito.ttf') format('truetype')
16+
/* font-weight: 400;
17+
font-style: normal; */
18+
}
19+
20+
@layer {
21+
h1{
22+
@apply font-montserrat
23+
}
24+
25+
}

tailwind.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
export default {
33
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
44
theme: {
5-
extend: {},
5+
extend: {
6+
fontFamily: {
7+
montserrat: ['Montserrat', 'sans-serif'],
8+
gabarito: ['Gabarito', 'sans-serif'],
9+
},
10+
},
611
},
712
plugins: [],
813
}

0 commit comments

Comments
 (0)