Skip to content

Commit a3470a5

Browse files
committed
Fix link styling and remove dark mode switcher
1 parent cafac01 commit a3470a5

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

docusaurus.config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ const config: Config = {
2323
onBrokenLinks: 'throw',
2424
onBrokenMarkdownLinks: 'warn',
2525

26-
// Disable dark mode
27-
themeConfig: {
28-
colorMode: {
29-
disableSwitch: true,
30-
defaultMode: 'light',
31-
},
32-
},
33-
3426
// Even if you don't use internationalization, you can use this field to set
3527
// useful metadata like html lang. For example, if your site is Chinese, you
3628
// may want to replace "en" with "zh-Hans".
@@ -109,6 +101,10 @@ const config: Config = {
109101
themeConfig: {
110102
// Replace with your project's social card
111103
image: 'img/docusaurus-social-card.jpg',
104+
colorMode: {
105+
disableSwitch: true,
106+
defaultMode: 'light',
107+
},
112108
navbar: {
113109
title: 'MyCoder Docs',
114110
items: [

src/css/custom.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #000000;
10-
--ifm-color-primary-dark: #000000;
11-
--ifm-color-primary-darker: #000000;
12-
--ifm-color-primary-darkest: #000000;
13-
--ifm-color-primary-light: #333333;
14-
--ifm-color-primary-lighter: #555555;
15-
--ifm-color-primary-lightest: #777777;
9+
--ifm-color-primary: #0066cc;
10+
--ifm-color-primary-dark: #005cb8;
11+
--ifm-color-primary-darker: #0057ad;
12+
--ifm-color-primary-darkest: #00478f;
13+
--ifm-color-primary-light: #0070e0;
14+
--ifm-color-primary-lighter: #0075eb;
15+
--ifm-color-primary-lightest: #0e85ff;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18+
--ifm-link-color: #0066cc;
19+
--ifm-link-hover-color: #0057ad;
20+
--ifm-link-decoration: underline;
1821
}

0 commit comments

Comments
 (0)