From 34bbf5f1b3a2f3ed5d40c718db86d856d3fa1491 Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Fri, 20 Sep 2024 10:56:01 -0400 Subject: [PATCH 1/2] Add white links with underlines in dark mode --- styles/tailwind.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/styles/tailwind.css b/styles/tailwind.css index 6afb3f7..39467b5 100644 --- a/styles/tailwind.css +++ b/styles/tailwind.css @@ -149,3 +149,9 @@ h1, h2, h3, h4, h5, h6 { font-weight: 500 !important; } } + +/* White links with underline in dark mode */ +[data-theme="dark"] .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + @apply text-white; + @apply border-b-2 border-white; +} From c6a1b0b10a5cbc872a49896b03e713ddbcd2c25b Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Fri, 20 Sep 2024 11:00:52 -0400 Subject: [PATCH 2/2] Fix em/strong --- styles/tailwind.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/styles/tailwind.css b/styles/tailwind.css index 39467b5..54cbbce 100644 --- a/styles/tailwind.css +++ b/styles/tailwind.css @@ -155,3 +155,7 @@ h1, h2, h3, h4, h5, h6 { @apply text-white; @apply border-b-2 border-white; } + +[data-theme="dark"] .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + @apply text-gray-300; +}