Skip to content

Commit

Permalink
fix: styles in dark theme, same as in the core
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeTorrealba committed Jun 24, 2023
1 parent 1b7a624 commit eac4d8d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:root {
--vp-home-hero-name-color: #82dbc5;
--vp-c-brand: #82dbc5;
--vp-c-dark: #1f1f1e;
}

/**
Expand All @@ -10,12 +11,15 @@
:root {
--vp-button-brand-border: var(--vp-c-brand-light);
--vp-button-brand-text: var(--vp-c-text-dark-1);
--vp-button-brand-text: var(--vp-c-dark);
--vp-button-brand-bg: var(--vp-c-brand);
--vp-button-brand-hover-border: var(--vp-c-brand-light);
--vp-button-brand-hover-text: var(--vp-c-text-dark-1);
--vp-button-brand-hover-text: var(--vp-c-dark);
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
--vp-button-brand-active-border: var(--vp-c-brand-light);
--vp-button-brand-active-text: var(--vp-c-text-dark-1);
--vp-button-brand-active-text: var(--vp-c-dark);
--vp-button-brand-active-bg: var(--vp-button-brand-bg);

--vp-button-alt-border: var(--vp-c-gray-light-3);
Expand All @@ -27,16 +31,18 @@
--vp-button-alt-active-border: var(--vp-c-gray-light-3);
--vp-button-alt-active-text: var(--vp-c-text-light-1);
--vp-button-alt-active-bg: var(--vp-c-gray-light-3);
--vp-button-alt-border: var(--vp-c-border);
--vp-button-alt-text: var(--vp-c-neutral);
--vp-button-alt-bg: var(--vp-c-mute);
--vp-button-alt-hover-border: var(--vp-c-border);
--vp-button-alt-hover-text: var(--vp-c-neutral);
--vp-button-alt-hover-bg: var(--vp-c-mute-dark);
--vp-button-alt-active-border: var(--vp-c-border);
--vp-button-alt-active-text: var(--vp-c-neutral);
--vp-button-alt-active-bg: var(--vp-c-mute-darker);

--vp-button-sponsor-border: var(--vp-c-gray-light-3);
--vp-button-sponsor-text: var(--vp-c-text-light-2);
--vp-button-sponsor-bg: transparent;
--vp-button-sponsor-hover-border: var(--vp-c-sponsor);
--vp-button-sponsor-hover-text: var(--vp-c-sponsor);
--vp-button-sponsor-hover-bg: transparent;
--vp-button-sponsor-active-border: var(--vp-c-sponsor);
--vp-button-sponsor-active-text: var(--vp-c-sponsor);
--vp-button-sponsor-active-bg: transparent;
}

.VPSidebar .link.active span {
Expand All @@ -49,5 +55,10 @@
}

.VPButton.medium.brand {
color: var(--vp-button-brand-text);
}
.VPButton.medium.alt {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-bg);
}

0 comments on commit eac4d8d

Please sign in to comment.