From 9df67861c9fbe688a7de9da2069c4af90bc212c8 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Tue, 5 Apr 2022 11:30:55 -0500 Subject: [PATCH] Dark mode CSS fix --- theme/overrides/home.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theme/overrides/home.css b/theme/overrides/home.css index f2528ec6..8b89e1bb 100644 --- a/theme/overrides/home.css +++ b/theme/overrides/home.css @@ -53,6 +53,9 @@ .mdx-hero .md-button { color: var(--md-primary-bg-color); } +[data-md-color-scheme="slate"] .mdx-hero .md-button--primary { + color: var(--md-primary-fg-color); +} .mdx-hero .md-button--primary { color: var(--md-primary-fg-color); background-color: var(--md-primary-bg-color); @@ -60,7 +63,6 @@ margin-right: 0.5rem; margin-top: 0.5rem; } - .mdx-hero .md-button--primary:is(:focus, :hover) { color: white; }