From 4501b4b71a2d2d3802abc32f6d97a7c28eec8fc0 Mon Sep 17 00:00:00 2001 From: ysthakur <45539777+ysthakur@users.noreply.github.com> Date: Wed, 1 Jan 2025 19:00:05 -0500 Subject: [PATCH] Use white foreground for copy code button --- .vuepress/styles/index.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vuepress/styles/index.scss b/.vuepress/styles/index.scss index 9d9ac73bc7e..763cf630094 100755 --- a/.vuepress/styles/index.scss +++ b/.vuepress/styles/index.scss @@ -85,3 +85,12 @@ html[data-theme='dark'] { text-decoration: underline; } } + +:root, +html[data-theme='light'] { + .vp-copy-code-button { + // Make the copy code button white for good contrast with the + // dark background in code blocks + color: white !important; + } +}