Skip to content

Commit df85056

Browse files
committed
Add Programmer Network link to navbar and enable respect for user color scheme preference
1 parent 1c4588f commit df85056

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docusaurus/docusaurus.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ const config: Config = {
5656
label: 'YouTube',
5757
position: 'right',
5858
},
59+
{
60+
href: 'https://programmer.network',
61+
label: 'Programmer Network',
62+
position: 'right',
63+
},
5964
],
6065
},
6166
prism: {
@@ -65,7 +70,7 @@ const config: Config = {
6570
colorMode: {
6671
defaultMode: 'dark', // Set dark mode as the default
6772
disableSwitch: false, // Keep the theme switcher toggle (optional)
68-
respectPrefersColorScheme: false, // Ignore the user's system preference
73+
respectPrefersColorScheme: true, // Ignore the user's system preference
6974
},
7075
} satisfies Preset.ThemeConfig,
7176
};

docusaurus/src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
--ifm-color-primary-lightest: #c7d2fe;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18+
19+
1820
}
1921

2022
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -27,4 +29,7 @@
2729
--ifm-color-primary-lighter: #a5b4fc;
2830
--ifm-color-primary-lightest: #c7d2fe;
2931
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
32+
--ifm-background-color: #1b1f23 !important;
33+
--ifm-navbar-background-color: #1b1f23 !important;
34+
3035
}

0 commit comments

Comments
 (0)