Skip to content

Commit ceb9eeb

Browse files
committed
add logo and use custom color
1 parent 30207d7 commit ceb9eeb

4 files changed

Lines changed: 32 additions & 25 deletions

File tree

docusaurus.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type * as Preset from '@docusaurus/preset-classic';
77
const config: Config = {
88
title: 'OpenEmber',
99
tagline: 'An Embedded Linux Distributed Application Framework',
10-
favicon: 'img/favicon.ico',
10+
favicon: 'img/logo.png',
1111

1212
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
1313
future: {
@@ -77,8 +77,8 @@ const config: Config = {
7777
navbar: {
7878
title: 'OpenEmber',
7979
logo: {
80-
alt: 'My Site Logo',
81-
src: 'img/logo.svg',
80+
alt: 'OpenEmber Logo',
81+
src: 'img/logo.png',
8282
},
8383
items: [
8484
{
@@ -89,7 +89,7 @@ const config: Config = {
8989
},
9090
{to: '/blog', label: 'Blog', position: 'left'},
9191
{
92-
href: 'https://github.com/facebook/docusaurus',
92+
href: 'https://github.com/openember/openember',
9393
label: 'GitHub',
9494
position: 'right',
9595
},
@@ -133,12 +133,12 @@ const config: Config = {
133133
},
134134
{
135135
label: 'GitHub',
136-
href: 'https://github.com/facebook/docusaurus',
136+
href: 'https://github.com/openember/openember',
137137
},
138138
],
139139
},
140140
],
141-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
141+
copyright: `Copyright © ${new Date().getFullYear()} GeekAt, Inc. Built with Docusaurus.`,
142142
},
143143
prism: {
144144
theme: prismThemes.github,

src/css/custom.css

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,36 @@
22
* Any CSS included here will be global. The classic template
33
* bundles Infima by default. Infima is a CSS framework designed to
44
* work well for content-centric websites.
5+
*
6+
* OpenEmber 配色:与 logo 火焰暖色(红/橙/琥珀)保持一致
57
*/
68

7-
/* You can override the default Infima variables here. */
9+
/* ========== 白天模式:暖橙红主色(对应 logo 火焰中层~外层) ========== */
810
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
11+
--ifm-color-primary: #c2410c;
12+
--ifm-color-primary-dark: #a33609;
13+
--ifm-color-primary-darker: #8b2e07;
14+
--ifm-color-primary-darkest: #6d2406;
15+
--ifm-color-primary-light: #d35400;
16+
--ifm-color-primary-lighter: #e67e22;
17+
--ifm-color-primary-lightest: #eb984e;
1618
--ifm-code-font-size: 95%;
17-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
19+
--docusaurus-highlighted-code-line-bg: rgba(194, 65, 12, 0.12);
20+
/* 链接与强调色与主色统一 */
21+
--ifm-link-color: #c2410c;
22+
--ifm-link-hover-color: #a33609;
1823
}
1924

20-
/* For readability concerns, you should choose a lighter palette in dark mode. */
25+
/* ========== 黑夜模式:更亮的琥珀/橙,在深色背景上更易读 ========== */
2126
[data-theme='dark'] {
22-
--ifm-color-primary: #25c2a0;
23-
--ifm-color-primary-dark: #21af90;
24-
--ifm-color-primary-darker: #1fa588;
25-
--ifm-color-primary-darkest: #1a8870;
26-
--ifm-color-primary-light: #29d5b0;
27-
--ifm-color-primary-lighter: #32d8b4;
28-
--ifm-color-primary-lightest: #4fddbf;
29-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
27+
--ifm-color-primary: #e67e22;
28+
--ifm-color-primary-dark: #d35400;
29+
--ifm-color-primary-darker: #c2410c;
30+
--ifm-color-primary-darkest: #a33609;
31+
--ifm-color-primary-light: #eb984e;
32+
--ifm-color-primary-lighter: #f0b429;
33+
--ifm-color-primary-lightest: #f5c942;
34+
--docusaurus-highlighted-code-line-bg: rgba(230, 126, 34, 0.2);
35+
--ifm-link-color: #eb984e;
36+
--ifm-link-hover-color: #f0b429;
3037
}

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function HomepageHeader() {
2121
<Link
2222
className="button button--secondary button--lg"
2323
to="/docs/intro">
24-
Docusaurus Tutorial - 5min ⏱️
24+
Quick Start
2525
</Link>
2626
</div>
2727
</div>

static/img/logo.png

8.96 KB
Loading

0 commit comments

Comments
 (0)