web/src/styles/typography.css
128 lines · 2608 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
89code {
90 font-family: var(--font-code);
91}
92
93.heading,
94h1 {
95 font-family: var(--font-heading);
96 font-optical-sizing: auto;
97 font-weight: 800;
98 font-style: normal;
99}
100
101.subtitle,
102h2,
103h3,
104h4,
105h5,
106h6 {
107 font-family: var(--font-subtitle);
108 font-weight: 700;
109 font-style: normal;
110}
111
112html,
113body,
114p,
115a,
116ul,
117ol,
118li,
119blockquote,
120pre,
121strong,
122i {
123 font-family: var(--font-body);
124}
125
126a {
127 color: var(--accent-text);
128}