From 90bf06aa9d5a64350c5a494216dc557072eacad3 Mon Sep 17 00:00:00 2001 From: Fangcat_Dev Date: Sat, 7 Nov 2026 08:48:10 +0000 Subject: fix: color & avatar --- .vitepress/theme/index.mjs | 1 + .vitepress/theme/style.css | 32 ++++++++++++++++++++++++++++++++ docs/img/LC.png | Bin 59899 -> 0 bytes docs/public/img/LC.png | Bin 0 -> 59899 bytes 4 files changed, 33 insertions(+) create mode 100644 .vitepress/theme/style.css delete mode 100644 docs/img/LC.png create mode 100644 docs/public/img/LC.png diff --git a/.vitepress/theme/index.mjs b/.vitepress/theme/index.mjs index 46c34c7..82140c5 100644 --- a/.vitepress/theme/index.mjs +++ b/.vitepress/theme/index.mjs @@ -1,4 +1,5 @@ import {default as VPLTheme} from '@lando/vitepress-theme-default-plus'; import './admonitions.css'; +import './style.css'; export default VPLTheme; \ No newline at end of file diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css new file mode 100644 index 0000000..ae24cf7 --- /dev/null +++ b/.vitepress/theme/style.css @@ -0,0 +1,32 @@ +:root { + --lc-brand-h: 205; + --lc-brand-s: 82%; + + --lc-brand-1: hsl(var(--lc-brand-h) var(--lc-brand-s) 42%); + --lc-brand-2: hsl(var(--lc-brand-h) var(--lc-brand-s) 50%); + --lc-brand-3: hsl(var(--lc-brand-h) var(--lc-brand-s) 50%); + --lc-brand-soft: hsl(var(--lc-brand-h) var(--lc-brand-s) 50% / 0.14); + --lc-brand-hard: hsl(var(--lc-brand-h) var(--lc-brand-s) 32%); + --lc-brand-soft-hex: hsl(var(--lc-brand-h) var(--lc-brand-s) 96%); +} + +:root { + --vp-c-brand-1: var(--lc-brand-1) !important; + --vp-c-brand-2: var(--lc-brand-2) !important; + --vp-c-brand-3: var(--lc-brand-3) !important; + --vp-c-brand-soft: var(--lc-brand-soft) !important; + --vp-c-brand-hard: var(--lc-brand-hard) !important; + --vp-c-brand-soft-hex: var(--lc-brand-soft-hex) !important; + + --vp-c-brand: var(--vp-c-brand-1) !important; + --vp-c-sponsor: var(--lc-brand-3) !important; +} + +.dark { + --lc-brand-1: hsl(var(--lc-brand-h) var(--lc-brand-s) 62%); + --lc-brand-2: hsl(var(--lc-brand-h) var(--lc-brand-s) 68%); + --lc-brand-3: hsl(var(--lc-brand-h) var(--lc-brand-s) 56%); + --lc-brand-soft: hsl(var(--lc-brand-h) var(--lc-brand-s) 60% / 0.18); + --lc-brand-hard: hsl(var(--lc-brand-h) var(--lc-brand-s) 72%); + --lc-brand-soft-hex: hsl(var(--lc-brand-h) var(--lc-brand-s) 18%); +} diff --git a/docs/img/LC.png b/docs/img/LC.png deleted file mode 100644 index ecfa1c7..0000000 Binary files a/docs/img/LC.png and /dev/null differ diff --git a/docs/public/img/LC.png b/docs/public/img/LC.png new file mode 100644 index 0000000..ecfa1c7 Binary files /dev/null and b/docs/public/img/LC.png differ -- cgit v1.3