Skip to content

Commit bae11a3

Browse files
authored
Updated font to Satoshi (#350)
1 parent 27e3869 commit bae11a3

File tree

7 files changed

+16
-64
lines changed

7 files changed

+16
-64
lines changed

docusaurus.config.ts

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -98,39 +98,9 @@ const config: Config = {
9898
tagName: "link",
9999
attributes: {
100100
rel: "preload",
101-
href: "/fonts/Nacelle/Nacelle-Light.otf",
101+
href: "/fonts/Satoshi/Satoshi-Variable.ttf",
102102
as: "font",
103-
type: "font/otf",
104-
crossorigin: "anonymous",
105-
},
106-
},
107-
{
108-
tagName: "link",
109-
attributes: {
110-
rel: "preload",
111-
href: "/fonts/Nacelle/Nacelle-Regular.otf",
112-
as: "font",
113-
type: "font/otf",
114-
crossorigin: "anonymous",
115-
},
116-
},
117-
{
118-
tagName: "link",
119-
attributes: {
120-
rel: "preload",
121-
href: "/fonts/Nacelle/Nacelle-SemiBold.otf",
122-
as: "font",
123-
type: "font/otf",
124-
crossorigin: "anonymous",
125-
},
126-
},
127-
{
128-
tagName: "link",
129-
attributes: {
130-
rel: "preload",
131-
href: "/fonts/Nacelle/Nacelle-Bold.otf",
132-
as: "font",
133-
type: "font/otf",
103+
type: "font/ttf",
134104
crossorigin: "anonymous",
135105
},
136106
},

src/css/custom.css

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link--sublist {
7777
margin-bottom: 6px;
78-
font-size: 13px;
78+
font-size: 14px !important;
7979
font-weight: 600;
8080
line-height: 20px;
8181
color: #213547;
@@ -531,6 +531,7 @@ html {
531531

532532
body {
533533
font-family: var(--ifm-font-family-base);
534+
letter-spacing: 0.02em;
534535
}
535536

536537
.navbar {
@@ -539,11 +540,11 @@ body {
539540

540541
.navbar__title {
541542
font-family: var(--ifm-font-family-base);
542-
font-weight: 600;
543543
}
544544

545545
.menu__link {
546546
font-family: var(--ifm-font-family-base);
547+
font-variation-settings: 'wght' 600;
547548
}
548549

549550
.markdown {
@@ -835,35 +836,11 @@ table,
835836
}
836837
}
837838

838-
@font-face {
839-
font-family: 'Nacelle';
840-
src: url('/fonts/Nacelle/Nacelle-Light.otf') format('opentype');
841-
font-weight: 300;
842-
font-style: normal;
843-
font-display: swap;
844-
}
845-
846-
@font-face {
847-
font-family: 'Nacelle';
848-
src: url('/fonts/Nacelle/Nacelle-Regular.otf') format('opentype');
849-
font-weight: 400;
850-
font-style: normal;
851-
font-display: swap;
852-
}
853-
854839
@font-face {
855-
font-family: 'Nacelle';
856-
src: url('/fonts/Nacelle/Nacelle-SemiBold.otf') format('opentype');
857-
font-weight: 500;
858-
font-style: normal;
859-
font-display: swap;
860-
}
861-
862-
@font-face {
863-
font-family: 'Nacelle';
864-
src: url('/fonts/Nacelle/Nacelle-Bold.otf') format('opentype');
865-
font-weight: 600;
866-
font-style: normal;
840+
font-family: 'Satoshi';
841+
src: url('/fonts/Satoshi/Satoshi-Variable.ttf') format('truetype');
842+
font-weight: 400 680;
843+
font-style: normal italic;
867844
font-display: swap;
868845
}
869846

@@ -900,7 +877,12 @@ table,
900877
}
901878

902879
:root {
903-
--ifm-font-family-base: 'Nacelle';
904-
--ifm-heading-font-family: 'Nacelle';
880+
--ifm-font-family-base: 'Satoshi';
881+
--ifm-heading-font-family: 'Satoshi';
905882
--ifm-font-family-monospace: 'IBM Mono';
883+
--font-weight-light: 400;
884+
--font-weight-regular: 480;
885+
--font-weight-medium: 560;
886+
--font-weight-semibold: 640;
887+
--font-weight-bold: 680;
906888
}
-63.6 KB
Binary file not shown.
-62.2 KB
Binary file not shown.
-62.6 KB
Binary file not shown.
-63.4 KB
Binary file not shown.
124 KB
Binary file not shown.

0 commit comments

Comments
 (0)