From cf54c60a75dd8f65a88ffab2493f4e1541135930 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomi=20Valentov=C3=A1?= <git@imaniti.org>
Date: Sat, 13 Jul 2024 22:43:25 +0200
Subject: [PATCH] fix color classes

---
 shared/const.py | 36 +++++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)

diff --git a/shared/const.py b/shared/const.py
index 908a5d1f..22a8f102 100644
--- a/shared/const.py
+++ b/shared/const.py
@@ -55,9 +55,39 @@ COLOR_CHOICES = (
 
 # TODO
 COLOR_CSS = {
-    BLACK_ON_WHITE: ["text-black", "[&_p]:!text-black", "bg-white"],
-    BLACK_ON_YELLOW: ["text-black", "[&_p]:!text-black", "bg-pirati-yellow"],
-    WHITE_ON_BLACK: ["text-white", "[&_p]:!text-white", "bg-black"],
+    BLACK_ON_WHITE: [
+        "text-black",
+        "[&_p]:!text-black",
+        "[&_h1]:!text-black",
+        "[&_h2]:!text-black",
+        "[&_h3]:!text-black",
+        "[&_h4]:!text-black",
+        "[&_h5]:!text-black",
+        "[&_h6]:!text-black",
+        "bg-white"
+    ],
+    BLACK_ON_YELLOW: [
+        "text-black",
+        "[&_p]:!text-black",
+        "[&_h1]:!text-black",
+        "[&_h2]:!text-black",
+        "[&_h3]:!text-black",
+        "[&_h4]:!text-black",
+        "[&_h5]:!text-black",
+        "[&_h6]:!text-black",
+        "bg-pirati-yellow"
+    ],
+    WHITE_ON_BLACK: [
+        "text-white",
+        "[&_p]:!text-white",
+        "[&_h1]:!text-white",
+        "[&_h2]:!text-white",
+        "[&_h3]:!text-white",
+        "[&_h4]:!text-white",
+        "[&_h5]:!text-white",
+        "[&_h6]:!text-white",
+        "bg-black"
+    ],
 }
 
 ALIGN_CHOICES = (
-- 
GitLab