Skip to content

Commit

Permalink
Merge pull request #76 from uqbar-dao/fix-default
Browse files Browse the repository at this point in the history
Set default to Light
  • Loading branch information
dr-frmr authored Jan 19, 2024
2 parents fa01a50 + 0607545 commit 7a48e4a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 48 deletions.
92 changes: 46 additions & 46 deletions theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,52 +105,6 @@
}

.light {
/* rename to .light */

--bg: #f0f8ff; /* Soft sky blue */
--fg: #27496d; /* Deep ocean blue */

--sidebar-bg: #dcedc1; /* Light leaf green */
--sidebar-fg: #405d27; /* Dark green */
--sidebar-non-existant: #a4b3b6; /* Muted stone grey */
--sidebar-active: #ff6b6b; /* Vibrant flower red */
--sidebar-spacer: #e8e8e8; /* Very light grey */

--scrollbar: var(--sidebar-fg);

--icons: #8a5a44; /* Earthy brown */
--icons-hover: #ffcb69; /* Nectar gold */

--links: #ff7043; /* Bright coral */

--inline-code-color: #ffcb69; /* Nectar gold */

--theme-popup-bg: #e6e6e6; /* Light grey */
--theme-popup-border: #c0c0c0; /* Medium grey */
--theme-hover: #d0d0d0; /* Soft grey */

--quote-bg: #f2f2f2; /* Very light grey */
--quote-border: #dcdcdc; /* Light grey */

--warning-border: #e67e22; /* Pumpkin orange */

--table-border-color: #dcdcdc; /* Light grey */
--table-header-bg: #e6e6e6; /* Light grey */
--table-alternate-bg: #f2f2f2; /* Very light grey */

--searchbar-border-color: #a0a0a0; /* Medium grey */
--searchbar-bg: #f0f0f0; /* Soft grey */
--searchbar-fg: #27496d; /* Deep ocean blue */
--searchbar-shadow-color: #c0c0c0; /* Medium grey */
--searchresults-header-fg: #405d27; /* Dark green */
--searchresults-border-color: #dcdcdc; /* Light grey */
--searchresults-li-bg: #e6e6e6; /* Light grey */
--search-mark-bg: #ffcb69; /* Nectar gold */

--color-scheme: light;
}

.navy {
/* Rename this class to '.meadow' */

--bg: #8db495; /* Sage green */
Expand Down Expand Up @@ -196,6 +150,52 @@
--color-scheme: light;
}

.navy {
/* rename to .light */

--bg: #f0f8ff; /* Soft sky blue */
--fg: #27496d; /* Deep ocean blue */

--sidebar-bg: #dcedc1; /* Light leaf green */
--sidebar-fg: #405d27; /* Dark green */
--sidebar-non-existant: #a4b3b6; /* Muted stone grey */
--sidebar-active: #ff6b6b; /* Vibrant flower red */
--sidebar-spacer: #e8e8e8; /* Very light grey */

--scrollbar: var(--sidebar-fg);

--icons: #8a5a44; /* Earthy brown */
--icons-hover: #ffcb69; /* Nectar gold */

--links: #ff7043; /* Bright coral */

--inline-code-color: #ffcb69; /* Nectar gold */

--theme-popup-bg: #e6e6e6; /* Light grey */
--theme-popup-border: #c0c0c0; /* Medium grey */
--theme-hover: #d0d0d0; /* Soft grey */

--quote-bg: #f2f2f2; /* Very light grey */
--quote-border: #dcdcdc; /* Light grey */

--warning-border: #e67e22; /* Pumpkin orange */

--table-border-color: #dcdcdc; /* Light grey */
--table-header-bg: #e6e6e6; /* Light grey */
--table-alternate-bg: #f2f2f2; /* Very light grey */

--searchbar-border-color: #a0a0a0; /* Medium grey */
--searchbar-bg: #f0f0f0; /* Soft grey */
--searchbar-fg: #27496d; /* Deep ocean blue */
--searchbar-shadow-color: #c0c0c0; /* Medium grey */
--searchresults-header-fg: #405d27; /* Dark green */
--searchresults-border-color: #dcdcdc; /* Light grey */
--searchresults-li-bg: #e6e6e6; /* Light grey */
--search-mark-bg: #ffcb69; /* Nectar gold */

--color-scheme: light;
}

.rust {
/* rename theme to .harmony */
--bg: #f4f9f4; /* Light mint green */
Expand Down
4 changes: 2 additions & 2 deletions theme/customize-buttons.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener("DOMContentLoaded", () => {
// Renaming the theme buttons based on their IDs
const lightButton = document.getElementById("light");
if (lightButton) lightButton.textContent = "Light"; // Keeping the name 'Light'
if (lightButton) lightButton.textContent = "Meadow"; // Keeping the name 'Light'

const rustButton = document.getElementById("rust");
if (rustButton) rustButton.textContent = "Harmony"; // New name for 'Rust'
Expand All @@ -13,5 +13,5 @@ document.addEventListener("DOMContentLoaded", () => {
if (ayuButton) ayuButton.textContent = "Wynn"; // New name for 'Ayu'

const navyButton = document.getElementById("navy");
if (navyButton) navyButton.textContent = "Meadow"; // New name for 'Navy'
if (navyButton) navyButton.textContent = "Light"; // New name for 'Navy'
});

0 comments on commit 7a48e4a

Please sign in to comment.