web/src/styles/typography.css
125 lines · 2295 bytes
1/* Fallback to Google Fonts for specific weights and styles */
2@import url('https://fonts.googleapis.com/css2?family=Lekton:wght@700&family=Libre+Franklin:wght@800&family=Rubik:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');
3
4/* Rubik Font Faces */
5@font-face {
6 font-family: 'Rubik';
7 font-style: normal;
8 font-weight: 400;
9 src:
10 local('Rubik'),
11 url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype');
12}
13@font-face {
14 font-family: 'Rubik';
15 font-style: italic;
16 font-weight: 400;
17 src:
18 local('Rubik Italic'),
19 url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype');
20}
21@font-face {
22 font-family: 'Rubik';
23 font-style: normal;
24 font-weight: 500;
25 src:
26 local('Rubik Medium'),
27 url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype');
28}
29@font-face {
30 font-family: 'Rubik';
31 font-style: italic;
32 font-weight: 500;
33 src:
34 local('Rubik Medium Italic'),
35 url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype');
36}
37@font-face {
38 font-family: 'Rubik';
39 font-style: normal;
40 font-weight: 600;
41 src:
42 local('Rubik SemiBold'),
43 url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype');
44}
45@font-face {
46 font-family: 'Rubik';
47 font-style: italic;
48 font-weight: 600;
49 src:
50 local('Rubik SemiBold Italic'),
51 url('/fonts/Rubik/Rubik-SemiBoldItalic.ttf') format('truetype');
52}
53
54/* Libre Franklin Font Faces */
55@font-face {
56 font-family: 'Libre Franklin';
57 font-style: normal;
58 font-weight: 500;
59 src:
60 local('Libre Franklin Bold'),
61 url('/fonts/Libre_Franklin/LibreFranklin-Bold.ttf') format('truetype');
62}
63
64/* Lekton Font Faces */
65@font-face {
66 font-family: 'Lekton';
67 font-style: normal;
68 font-weight: 700;
69 src:
70 local('Lekton Bold'),
71 url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype');
72}
73
74html {
75 font-family: system-ui, sans-serif;
76}
77
78code {
79 font-family:
80 Menlo,
81 Monaco,
82 Lucida Console,
83 Liberation Mono,
84 DejaVu Sans Mono,
85 Bitstream Vera Sans Mono,
86 Courier New,
87 monospace;
88}
89
90.heading,
91h1 {
92 font-family: 'Libre Franklin', sans-serif;
93 font-optical-sizing: auto;
94 font-weight: 800;
95 font-style: normal;
96}
97
98.subtitle,
99h2,
100h3,
101h4,
102h5,
103h6 {
104 font-family: 'Lekton', sans-serif;
105 font-weight: 700;
106 font-style: normal;
107}
108
109html,
110body,
111p,
112a,
113ul,
114ol,
115li,
116blockquote,
117pre,
118strong,
119i {
120 font-family: 'Rubik', sans-serif;
121}
122
123a {
124 color: var(--accent);
125}