Skip to content

Commit 372c777

Browse files
authored
Update custom.css
1 parent b6821ce commit 372c777

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

.vitepress/theme/custom.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
--vp-c-bg-alt: oklch(98.7% .026 102.212);
2424
--vp-c-bg-soft: oklch(98.7% .026 102.212);
2525
--vp-c-bg-elv: oklch(98.7% .026 102.212);
26-
--vp-c-bg-mute: oklch(98.7% .026 102.212);
26+
--vp-c-bg-mute: #f0f0f0;
2727
--vp-c-text-1: #000;
2828
--vp-c-text-2: #000;
2929
--vp-c-text-3: #000;
@@ -48,6 +48,7 @@
4848
--vp-button-alt-text: #000;
4949
--vp-c-neutral: oklch(98.7% .026 102.212);
5050
--vp-c-neutral-inverse: #000;
51+
--vp-c-brand: #5b21b6;
5152
}
5253

5354
/* Dark Mode */
@@ -56,7 +57,7 @@
5657
--vp-c-bg-alt: #181636;
5758
--vp-c-bg-soft: #181636;
5859
--vp-c-bg-elv: #181636;
59-
--vp-c-bg-mute: #181636;
60+
--vp-c-bg-mute: #2a2550;
6061
--vp-c-text-1: #fafafa;
6162
--vp-c-text-2: #fafafa;
6263
--vp-c-text-3: #fafafa;
@@ -81,6 +82,28 @@
8182
--vp-button-alt-text: #fafafa;
8283
--vp-c-neutral: #181636;
8384
--vp-c-neutral-inverse: #fafafa;
85+
--vp-c-brand: #8b5cf6;
86+
}
87+
88+
/* VPButton Hover Fix */
89+
.VPButton.alt:hover {
90+
background-color: var(--vp-c-bg-mute) !important;
91+
color: var(--vp-c-brand) !important;
92+
}
93+
94+
.VPButton.brand:hover {
95+
background-color: var(--vp-c-brand) !important;
96+
color: #fff !important;
97+
}
98+
99+
html:not(.dark) .VPButton.alt:hover {
100+
background-color: #f0f0f0 !important;
101+
color: #5b21b6 !important;
102+
}
103+
104+
html.dark .VPButton.alt:hover {
105+
background-color: #2a2550 !important;
106+
color: #8b5cf6 !important;
84107
}
85108

86109
/* Remove all box shadows globally */

0 commit comments

Comments
 (0)