web/src/styles/typography.css

93 lines · 2322 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: local('Rubik'), url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype');
10}
11@font-face {
12  font-family: 'Rubik';
13  font-style: italic;
14  font-weight: 400;
15  src: local('Rubik Italic'), url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype');
16}
17@font-face {
18  font-family: 'Rubik';
19  font-style: normal;
20  font-weight: 500;
21  src: local('Rubik Medium'), url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype');
22}
23@font-face {
24  font-family: 'Rubik';
25  font-style: italic;
26  font-weight: 500;
27  src: local('Rubik Medium Italic'), url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype');
28}
29@font-face {
30  font-family: 'Rubik';
31  font-style: normal;
32  font-weight: 600;
33  src: local('Rubik SemiBold'), url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype');
34}
35@font-face {
36  font-family: 'Rubik';
37  font-style: italic;
38  font-weight: 600;
39  src: local('Rubik SemiBold Italic'), url('/fonts/Rubik/Rubik-SemiBoldItalic.ttf') format('truetype');
40}
41
42/* Libre Franklin Font Faces */
43@font-face {
44  font-family: 'Libre Franklin';
45  font-style: normal;
46  font-weight: 500;
47  src: local('Libre Franklin Bold'), url('/fonts/Libre_Franklin/LibreFranklin-Bold.ttf') format('truetype');
48}
49
50/* Lekton Font Faces */
51@font-face {
52  font-family: 'Lekton';
53  font-style: normal;
54  font-weight: 700;
55  src: local('Lekton Bold'), url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype');
56}
57
58html {
59  font-family: system-ui, sans-serif;
60}
61
62code {
63  font-family:
64    Menlo,
65    Monaco,
66    Lucida Console,
67    Liberation Mono,
68    DejaVu Sans Mono,
69    Bitstream Vera Sans Mono,
70    Courier New,
71    monospace;
72}
73
74.heading, h1 {
75  font-family: "Libre Franklin", sans-serif;
76  font-optical-sizing: auto;
77  font-weight: 800;
78  font-style: normal;
79}
80
81.subtitle, h2, h3, h4, h5, h6 {
82  font-family: "Lekton", sans-serif;
83  font-weight: 700;
84  font-style: normal;
85}
86
87html, body, p, a, ul, ol, li, blockquote, pre, strong, i {
88  font-family: "Rubik", sans-serif;
89}
90
91a {
92  color: var(--accent);
93}