-
+
Book a Session
-
+
Get personalized guidance and feedback through one-on-one sessions
diff --git a/src/css/custom.css b/src/css/custom.css
index 0ca2720..7322dc8 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -34,6 +34,7 @@
--ifm-background-surface-color: #242526;
--ifm-color-content: #e3e3e3;
--ifm-color-content-secondary: rgba(255, 255, 255, 0.8);
+ --ifm-font-color-base: #e3e3e3;
/* Navigation and UI elements */
--ifm-navbar-background-color: #242526;
@@ -204,4 +205,52 @@
[data-theme='dark'] .dropdown__link:hover {
background-color: var(--ifm-menu-color-background-hover);
+}
+
+/* Ensure all text elements have proper dark mode colors */
+[data-theme='dark'] {
+ color: var(--ifm-font-color-base);
+}
+
+[data-theme='dark'] p,
+[data-theme='dark'] h1,
+[data-theme='dark'] h2,
+[data-theme='dark'] h3,
+[data-theme='dark'] h4,
+[data-theme='dark'] h5,
+[data-theme='dark'] h6,
+[data-theme='dark'] span,
+[data-theme='dark'] div {
+ color: var(--ifm-font-color-base);
+}
+
+/* Ensure header content has proper colors in dark mode */
+[data-theme='dark'] .chh__header-content p {
+ color: var(--ifm-color-content-secondary);
+}
+
+/* Ensure proper contrast for main content areas */
+[data-theme='dark'] main {
+ background-color: var(--ifm-background-color);
+ color: var(--ifm-font-color-base);
+}
+
+/* Synchronize Tailwind dark mode with Docusaurus theme */
+[data-theme='dark'] .dark\:from-gray-900 {
+ --tw-gradient-from: #111827 var(--tw-gradient-from-position);
+ --tw-gradient-to: rgb(17 24 39 / 0) var(--tw-gradient-to-position);
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
+}
+
+[data-theme='dark'] .dark\:to-gray-800 {
+ --tw-gradient-to: #1f2937 var(--tw-gradient-to-position);
+}
+
+/* Apply dark mode to html when data-theme is dark */
+html[data-theme='dark'] {
+ color-scheme: dark;
+}
+
+html[data-theme='light'] {
+ color-scheme: light;
}
\ No newline at end of file
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index b93e1cd..77363b5 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -51,7 +51,7 @@ export default function Home(): ReactNode {
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"
/>
-
+
diff --git a/src/theme/Root.tsx b/src/theme/Root.tsx
index f55c9de..0dff4d1 100644
--- a/src/theme/Root.tsx
+++ b/src/theme/Root.tsx
@@ -19,9 +19,11 @@ export default function Root({children}) {
if (theme === 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
document.documentElement.classList.add('dark');
+ document.body.classList.add('dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
document.documentElement.classList.remove('dark');
+ document.body.classList.remove('dark');
}
// Store theme if not already stored
@@ -32,6 +34,7 @@ export default function Root({children}) {
// If localStorage fails, default to dark theme
document.documentElement.setAttribute('data-theme', 'dark');
document.documentElement.classList.add('dark');
+ document.body.classList.add('dark');
}
})();
`,