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