Skip to content

Commit 8af7c75

Browse files
committed
New logo and typography
1 parent 373581e commit 8af7c75

File tree

10 files changed

+234
-17
lines changed

10 files changed

+234
-17
lines changed

docusaurus.config.ts

Lines changed: 86 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type * as Preset from "@docusaurus/preset-classic";
44

55
const config: Config = {
66
title: "Plane",
7-
tagline: "An easy, flexible project management software",
7+
tagline: "A modern project management tool",
88
favicon: "https://media.docs.plane.so/favicon-32x32.png",
99
trailingSlash: false,
1010
// Set the production url of your site here
@@ -63,13 +63,6 @@ const config: Config = {
6363
],
6464
],
6565

66-
stylesheets: [
67-
{
68-
href: "https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=National+Park:[email protected]&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap",
69-
type: "text/css",
70-
},
71-
],
72-
7366
scripts: [
7467
{
7568
src: "https://plausible.io/js/script.js",
@@ -99,6 +92,89 @@ const config: Config = {
9992
],
10093
],
10194

95+
headTags: [
96+
{
97+
tagName: "link",
98+
attributes: {
99+
rel: "preload",
100+
href: "/fonts/Nacelle/Nacelle-Light.otf",
101+
as: "font",
102+
type: "font/otf",
103+
crossorigin: "anonymous",
104+
},
105+
},
106+
{
107+
tagName: "link",
108+
attributes: {
109+
rel: "preload",
110+
href: "/fonts/Nacelle/Nacelle-Regular.otf",
111+
as: "font",
112+
type: "font/otf",
113+
crossorigin: "anonymous",
114+
},
115+
},
116+
{
117+
tagName: "link",
118+
attributes: {
119+
rel: "preload",
120+
href: "/fonts/Nacelle/Nacelle-SemiBold.otf",
121+
as: "font",
122+
type: "font/otf",
123+
crossorigin: "anonymous",
124+
},
125+
},
126+
{
127+
tagName: "link",
128+
attributes: {
129+
rel: "preload",
130+
href: "/fonts/Nacelle/Nacelle-Bold.otf",
131+
as: "font",
132+
type: "font/otf",
133+
crossorigin: "anonymous",
134+
},
135+
},
136+
{
137+
tagName: "link",
138+
attributes: {
139+
rel: "preload",
140+
href: "/fonts/IBM/IBMPlexMono-Light.otf",
141+
as: "font",
142+
type: "font/ttf",
143+
crossorigin: "anonymous",
144+
},
145+
},
146+
{
147+
tagName: "link",
148+
attributes: {
149+
rel: "preload",
150+
href: "/fonts/IBM/IBMPlexMono-Regular.otf",
151+
as: "font",
152+
type: "font/ttf",
153+
crossorigin: "anonymous",
154+
},
155+
},
156+
{
157+
tagName: "link",
158+
attributes: {
159+
rel: "preload",
160+
href: "/fonts/IBM/IBMPlexMono-SemiBold.otf",
161+
as: "font",
162+
type: "font/ttf",
163+
crossorigin: "anonymous",
164+
},
165+
},
166+
{
167+
tagName: "link",
168+
attributes: {
169+
rel: "preload",
170+
href: "/fonts/IBM/IBMPlexMono-Bold.otf",
171+
as: "font",
172+
type: "font/ttf",
173+
crossorigin: "anonymous",
174+
},
175+
},
176+
],
177+
102178
themeConfig: {
103179
metadata: [
104180
{
@@ -136,8 +212,8 @@ const config: Config = {
136212
title: "",
137213
logo: {
138214
alt: "Plane",
139-
src: "https://media.docs.plane.so/logo/Plane.svg",
140-
srcDark: "https://media.docs.plane.so/logo/Plane-white.svg",
215+
src: "https://media.docs.plane.so/logo/new-logo-white.png",
216+
srcDark: "https://media.docs.plane.so/logo/new-logo-dark.png",
141217
},
142218
items: [
143219
{

src/css/custom.css

Lines changed: 148 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}
3131

3232
.navbar__logo img {
33-
width: 100px;
33+
width: 150px;
34+
height: auto;
3435
}
3536

3637
@media (min-width: 1536px) {
@@ -266,16 +267,30 @@
266267

267268
h1 {
268269
font-size: 2rem;
270+
line-height: 120%;
269271
}
270272
h2 {
271273
font-size: 1.5rem;
272-
line-height: 1.25;
274+
line-height: 140%;
273275
}
274276
h3 {
275277
font-size: 1.25rem;
276-
line-height: 1;
278+
line-height: 140%;
277279
}
278280

281+
h4{
282+
line-height: 140%;
283+
}
284+
285+
h5{
286+
line-height: 140%;
287+
}
288+
289+
h6{
290+
line-height: 140%;
291+
}
292+
293+
279294
#__docusaurus > nav > div.navbar__inner > div.navbar__items.navbar__items--right > a:nth-child(3) {
280295
background-color: #004eff;
281296
border-radius: var(--rounded-full, 9999px);
@@ -475,11 +490,67 @@ html[data-theme="dark"] .one {
475490

476491
html {
477492
color: #213547;
478-
font-family: "Instrument Sans", sans-serif;
493+
font-family: var(--ifm-font-family-base);
494+
}
495+
496+
body {
497+
font-family: var(--ifm-font-family-base);
498+
}
499+
500+
.navbar {
501+
font-family: var(--ifm-font-family-base);
502+
}
503+
504+
.navbar__title {
505+
font-family: var(--ifm-font-family-base);
506+
font-weight: 600;
507+
}
508+
509+
.menu__link {
510+
font-family: var(--ifm-font-family-base);
511+
}
512+
513+
.markdown {
514+
font-family: var(--ifm-font-family-base);
515+
}
516+
517+
* {
518+
font-family: var(--ifm-font-family-base);
519+
}
520+
521+
.theme-doc-markdown {
522+
font-family: var(--ifm-font-family-base);
479523
}
480524

481525
code {
482526
color: #213547;
527+
font-family: var(--ifm-font-family-monospace);
528+
}
529+
530+
pre {
531+
font-family: var(--ifm-font-family-monospace);
532+
}
533+
534+
pre code {
535+
font-family: var(--ifm-font-family-monospace);
536+
}
537+
538+
/* Inline code */
539+
.markdown code {
540+
font-family: var(--ifm-font-family-monospace);
541+
}
542+
543+
/* Code blocks in different contexts */
544+
.prism-code {
545+
font-family: var(--ifm-font-family-monospace);
546+
}
547+
548+
.codeBlockContainer_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Container-styles-module {
549+
font-family: var(--ifm-font-family-monospace);
550+
}
551+
552+
code, kbd, pre, samp {
553+
font-family: var(--ifm-font-family-monospace) !important;
483554
}
484555

485556
strong {
@@ -492,7 +563,7 @@ h3,
492563
h4,
493564
h5,
494565
h6 {
495-
font-family: "Instrument Sans", sans-serif;
566+
font-family: var(--ifm-heading-font-family);
496567
color: rgb(18 27 46);
497568
}
498569

@@ -502,7 +573,7 @@ h6 {
502573
[data-theme="dark"] h4,
503574
[data-theme="dark"] h5,
504575
[data-theme="dark"] h6 {
505-
font-family: "Roboto", sans-serif;
576+
font-family: var(--ifm-heading-font-family);
506577
color: rgb(224 228 236);
507578
}
508579

@@ -707,7 +778,7 @@ html:not([data-theme]) .themedComponent--light_NVdE {
707778
p,
708779
table,
709780
.menu__link {
710-
font-family: "Instrument Sans", sans-serif;
781+
font-family: "Nacelle";
711782
}
712783

713784
.menu__caret:hover {
@@ -727,3 +798,73 @@ table,
727798
box-sizing: border-box;
728799
}
729800
}
801+
802+
@font-face {
803+
font-family: 'Nacelle';
804+
src: url('/fonts/Nacelle/Nacelle-Light.otf') format('opentype');
805+
font-weight: 300;
806+
font-style: normal;
807+
font-display: swap;
808+
}
809+
810+
@font-face {
811+
font-family: 'Nacelle';
812+
src: url('/fonts/Nacelle/Nacelle-Regular.otf') format('opentype');
813+
font-weight: 400;
814+
font-style: normal;
815+
font-display: swap;
816+
}
817+
818+
@font-face {
819+
font-family: 'Nacelle';
820+
src: url('/fonts/Nacelle/Nacelle-SemiBold.otf') format('opentype');
821+
font-weight: 500;
822+
font-style: normal;
823+
font-display: swap;
824+
}
825+
826+
@font-face {
827+
font-family: 'Nacelle';
828+
src: url('/fonts/Nacelle/Nacelle-Bold.otf') format('opentype');
829+
font-weight: 600;
830+
font-style: normal;
831+
font-display: swap;
832+
}
833+
834+
@font-face {
835+
font-family: 'IBM Mono';
836+
src: url('/fonts/IBM/IBMPlexMono-Light.ttf') format('truetype');
837+
font-weight: 300;
838+
font-style: normal;
839+
font-display: swap;
840+
}
841+
842+
@font-face {
843+
font-family: 'IBM Mono';
844+
src: url('/fonts/IBM/IBMPlexMono-Regular.ttf') format('truetype');
845+
font-weight: 400;
846+
font-style: normal;
847+
font-display: swap;
848+
}
849+
850+
@font-face {
851+
font-family: 'IBM Mono';
852+
src: url('/fonts/IBM/IBMPlexMono-SemiBold.ttf') format('truetype');
853+
font-weight: 500;
854+
font-style: normal;
855+
font-display: swap;
856+
}
857+
858+
@font-face {
859+
font-family: 'IBM Mono';
860+
src: url('/fonts/IBM/IBMPlexMono-Bold.ttf') format('truetype');
861+
font-weight: 600;
862+
font-style: normal;
863+
font-display: swap;
864+
}
865+
866+
:root {
867+
--ifm-font-family-base: 'Nacelle';
868+
--ifm-heading-font-family: 'Nacelle';
869+
--ifm-font-family-monospace: 'IBM Mono';
870+
}
133 KB
Binary file not shown.
130 KB
Binary file not shown.
131 KB
Binary file not shown.
135 KB
Binary file not shown.
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.

0 commit comments

Comments
 (0)