Skip to content

Commit

Permalink
DOC: Update doc theme
Browse files Browse the repository at this point in the history
Replace default secondary color with something that better matches
Unidata colors. Also remove and clean up some of the rest of the custom
theming, including making dark mode work.
  • Loading branch information
dopplershift committed Oct 28, 2024
1 parent ac60bbb commit 6c56be0
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions docs/_static/theme-unidata.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
/* Define "Unidata Blue" RGB values */
html {
--unidata-blue-rgb: 6, 119, 143;
--unidata-blue-rgb: rgb(6, 119, 143);
--unidata-teal-rgb: rgb(69, 166, 169);
}

html[data-theme="light"] {
--pst-color-primary: var(--unidata-blue-rgb);
--pst-color-secondary: var(--unidata-teal-rgb);
}

html[data-theme="dark"] {
--pst-color-primary: var(--unidata-blue-rgb);
--pst-color-secondary: var(--unidata-teal-rgb);
}

/* Header and heading font style */
Expand All @@ -10,32 +21,20 @@ html {

/* Header colors */
.bd-header {
background: rgb(var(--unidata-blue-rgb)) !important;
background: var(--unidata-blue-rgb) !important;
}

.theme-switch-button {
border-color: rgb(var(--unidata-blue-rgb)) !important;
}

.bd-header .navbar-nav>.nav-item>.nav-link,
.bd-header .navbar-nav>.nav-item>.nav-link,
.bd-header .dropdown-toggle,
.bd-header .pst-navbar-icon,
.bd-header .btn {
color: #fff !important;
}

.version-switcher__button {
border-color: #fff !important;
}

.search-button {
padding: 0 0 0;
}

.navbar-nav .dropdown-menu {
background-color: var(--pst-color-background);
}

/* Increase contrast of links in code snippets */
div[class^="highlight"] a {
background-color: rgb(var(--unidata-blue-rgb), 0.2);
Expand Down

0 comments on commit 6c56be0

Please sign in to comment.