Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix(design-system): make inline <code> visible in prose dark mode (#1625)

Guillem Arias Faustef45c7b33fdb0
diff --git a/app/assets/tailwind/sure-design-system/prose.css b/app/assets/tailwind/sure-design-system/prose.css
index 85b7892c0f..68f6ad482d 100644
--- a/app/assets/tailwind/sure-design-system/prose.css
+++ b/app/assets/tailwind/sure-design-system/prose.css
@@ -14,3 +14,11 @@
.prose:where([data-theme=dark], [data-theme=dark] *) thead th {
color: theme(colors.white) !important;
}
+
+/* Inline code in prose under dark mode. Without this the Tailwind Typography
+ plugin's default near-black foreground falls through and disappears against
+ the dark page background. */
+.prose:where([data-theme=dark], [data-theme=dark] *) code {
+ color: theme(colors.white) !important;
+ background-color: theme(colors.gray.800) !important;
+}