Skip to content

Commit d23f4be

Browse files
author
segfault0x61
committed
feat: 🎸 add ui fonts
1 parent 1a8cc12 commit d23f4be

16 files changed

+25
-2
lines changed
13.8 KB
Binary file not shown.
28.1 KB
Binary file not shown.
27.2 KB
Binary file not shown.

public/assets/fonts/TN Light.woff2

36.5 KB
Binary file not shown.

public/assets/fonts/TN Medium.woff2

37.1 KB
Binary file not shown.

public/assets/fonts/TN Regular.woff2

35.9 KB
Binary file not shown.
Binary file not shown.
13.8 KB
Binary file not shown.
28.1 KB
Binary file not shown.
27.2 KB
Binary file not shown.

src/assets/fonts/TN Light.woff2

36.5 KB
Binary file not shown.

src/assets/fonts/TN Medium.woff2

37.1 KB
Binary file not shown.

src/assets/fonts/TN Regular.woff2

35.9 KB
Binary file not shown.
Binary file not shown.

src/styles.css

+18-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@layer base {
6+
@font-face {
7+
font-family: Writter;
8+
src: url("./assets/fonts/iA Writter Quattro S Regular.woff2")
9+
format("woff2");
10+
}
11+
@font-face {
12+
font-family: Agrandir;
13+
src: url("./assets/fonts/PP Agrandir Regular.woff2") format("woff2");
14+
}
15+
@font-face {
16+
font-family: TN;
17+
src: url("./assets/fonts/TN Medium.woff2") format("woff2");
18+
}
19+
}
20+
521
body {
6-
@apply text-slate-600;
22+
@apply text-slate-600 font-writter;
723
}
824

925
p {
@@ -15,7 +31,7 @@ h1 {
1531
}
1632

1733
h2 {
18-
@apply text-4xl font-bold dark:text-white mb-2 mt-3 text-slate-600;
34+
@apply text-5xl font-bold dark:text-white mb-2 mt-3 text-slate-600;
1935
}
2036

2137
h3 {

tailwind.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
/** @type {import('tailwindcss').Config} */
2+
import defaultTheme from "tailwindcss/defaultTheme";
3+
24
module.exports = {
35
content: ["./src/**/*.{html,ts}", "./node_modules/flowbite/**/*.js"],
46
theme: {
57
extend: {
68
height: {
79
"100vh-h-7": "calc(100vh - 12rem)",
810
},
11+
fontFamily: {
12+
writter: ["Writter", ...defaultTheme.fontFamily.sans],
13+
agrandir: ["Agrandir", ...defaultTheme.fontFamily.sans],
14+
tn: ["TN", ...defaultTheme.fontFamily.sans],
15+
},
916
},
1017
},
1118
plugins: [require("@tailwindcss/typography"), require("flowbite/plugin")],

0 commit comments

Comments
 (0)