From 1fa7bcce5a263a2421104eba9cd366bde0b2157b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CKatrinBistreck=E2=80=9D?=
 <“katrin.bistreck@tuhh.de”>
Date: Thu, 20 Feb 2025 13:53:04 +0100
Subject: [PATCH] correct colors of formulas

---
 docs/assets/css/unicado.css | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/docs/assets/css/unicado.css b/docs/assets/css/unicado.css
index 86edb4c..ff31e3d 100644
--- a/docs/assets/css/unicado.css
+++ b/docs/assets/css/unicado.css
@@ -3,6 +3,7 @@
   --primary-color: #2C3E50;      /* Primary color for headers, hero section, and cards */
   --background-color: #34495E;   /* Background color for main content areas */
   --text-color: #D1D5DB;         /* Main text color for readability on dark backgrounds */
+  --math-color: var(--text-color); /* Set the default color for equations */
   --button-bg-color: #ffffff;    /* Background color for buttons */
   --accent-color: #E74C3C;       /* Accent color for links and hover effects */
   --secondary-accent: #1ABC9C;   /* Secondary accent color for icons */
@@ -10,6 +11,10 @@
   --link-hover-color: #E74C3C;   /* Hover color for links */
 }
 
+[data-md-color-scheme=default] {
+  --math-color: #000000;         /* Set the default color for equations */
+}
+
 .md-header {
   background-color: var(--primary-color);
 }
@@ -47,10 +52,6 @@
   font-size: 1.1em;
 }
 
-/* Make all LaTeX-style math equations white */
-:root {
-  --math-color: #ffffff; /* Set the default color for equations */
-}
 
 /* MathJax equations */
 .MathJax, mjx-container, math {
@@ -58,7 +59,7 @@
 }
 
 /* KaTeX equations */
-.katex, .katex-display {
+.katex, .katex-display, .katex * {
   color: var(--math-color) !important;
 }
 
-- 
GitLab