From b79e7da0386d2e7a1b4f4e338990e6d516d5dc0a Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 12 Mar 2024 14:56:06 -0700 Subject: [PATCH] fix vitepress colors, again --- docs/.vitepress/theme/custom.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 8f6a3edd9f0e0..b5b61ac3eba46 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -1,12 +1,21 @@ :root { - --vp-c-brand: hsl(20 85% 57%); - --vp-c-brand-light: hsl(20 85% 70%); - --vp-c-brand-lighter: hsl(20 85% 80%); - --vp-c-brand-dark: hsl(20 85% 57%); - --vp-c-brand-darker: hsl(20 85% 40%); + --vp-c-orange-1: #e04600; + --vp-c-orange-2: #e85d14; + --vp-c-orange-3: #ef7234; + --vp-c-orange-soft: rgba(239, 114, 52, 0.16); + --vp-c-brand-1: var(--vp-c-orange-1); + --vp-c-brand-2: var(--vp-c-orange-2); + --vp-c-brand-3: var(--vp-c-orange-3); + --vp-c-brand-soft: var(--vp-c-orange-soft); + --vp-c-brand: var(--vp-c-brand-3); --vp-font-family-base: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif; } +:root.dark { + --vp-c-orange-1: #ff9852; + --vp-c-orange-2: #ff823e; +} + .vp-doc figcaption { line-height: 20px; font-size: 12px;