Skip to content

Commit cfb7263

Browse files
authored
change fonts & background colors (#494)
1 parent 0b31efc commit cfb7263

File tree

1 file changed

+61
-3
lines changed

1 file changed

+61
-3
lines changed

src/css/custom.css

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,58 @@
33
* bundles Infima by default. Infima is a CSS framework designed to
44
* work well for content-centric websites.
55
*/
6+
7+
@font-face {
8+
font-family: 'Cofosansmono';
9+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c9814ffed9f88983e5203_CoFoSansMono-Regular.woff2') format('woff2');
10+
font-weight: 400;
11+
font-style: normal;
12+
font-display: swap;
13+
}
14+
15+
@font-face {
16+
font-family: 'Cofosansmono';
17+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c98d04845e5e1209b6d06_CoFoSansMono-Bold.woff2') format('woff2');
18+
font-weight: 700;
19+
font-style: normal;
20+
font-display: swap;
21+
}
22+
23+
@font-face {
24+
font-family: 'Cofosans';
25+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c9aaf5292e6602e947eb9_CoFoSans-Bold.woff2') format('woff2');
26+
font-weight: 700;
27+
font-style: normal;
28+
font-display: swap;
29+
}
30+
31+
@font-face {
32+
font-family: 'Cofosans';
33+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c9b565292e6602e950607_CoFoSans-Medium.woff2') format('woff2');
34+
font-weight: 500;
35+
font-style: normal;
36+
font-display: swap;
37+
}
38+
39+
@font-face {
40+
font-family: 'Cofosans';
41+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c9bc7c52e93faf2108982_CoFoSans-Regular.woff2') format('woff2');
42+
font-weight: 400;
43+
font-style: normal;
44+
font-display: swap;
45+
}
46+
47+
@font-face {
48+
font-family: 'Cofosans';
49+
src: url('https://cdn.prod.website-files.com/6171016af5f2c517ec1ac76c/666c9c24e79ab4d046adaf3e_CoFoSans-Italic.woff2') format('woff2');
50+
font-weight: 400;
51+
font-style: italic;
52+
font-display: swap;
53+
}
54+
655
html {
756
scroll-padding-top: 70px; /* height of sticky header */
857
}
9-
1058
/* You can override the default Infima variables here. */
1159
:root {
1260
--ifm-color-primary: #7964d3;
@@ -17,13 +65,20 @@ html {
1765
--ifm-color-primary-lighter: #7964d3;
1866
--ifm-color-primary-lightest: #7964d3;
1967
--ifm-code-font-size: 95%;
20-
--ifm-background-color: #fcfaf7;
68+
--ifm-background-color: #fff;
2169
--ifm-sidebar-border-color: var(--ifm-color-gray-200);
2270
--card-bg: #fff;
2371
--card-border: #ddd;
2472
--card-shadow: rgba(0, 0, 0, 0.1);
2573
--inline-code-bg: #f0f0f0;
2674
--inline-code-color: #171717;
75+
--ifm-font-family-base: 'Cofosans', Arial, sans-serif;
76+
--ifm-font-family-monospace: 'Cofosansmono', Menlo, monospace;
77+
--ifm-h1-font-size: 2.25 rem;
78+
--ifm-h2-font-size: 2 rem;
79+
--ifm-h3-font-size: 1.125 rem;
80+
--ifm-heading-font-weight: var(--ifm-font-weight-semibold);
81+
--ifm-menu-color: var(--ifm-color-content);
2782
}
2883

2984
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -44,7 +99,10 @@ html {
4499
}
45100

46101
[data-theme='light'] .navbar {
47-
background-color: #fcfaf7;
102+
background-color: #fff;
103+
}
104+
[data-theme='light'] .menu{
105+
background-color: #FCFAF7;
48106
}
49107

50108
.docusaurus-highlight-code-line {

0 commit comments

Comments
 (0)