diff --git a/images/backgrounds/gruvbox.png b/images/backgrounds/gruvbox.png new file mode 100644 index 0000000..820b2fb Binary files /dev/null and b/images/backgrounds/gruvbox.png differ diff --git a/images/backgrounds/gruvbox.svg b/images/backgrounds/gruvbox.svg new file mode 100644 index 0000000..7c20f08 --- /dev/null +++ b/images/backgrounds/gruvbox.svg @@ -0,0 +1,198 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/js/app.js b/js/app.js index ed5f642..ad338ca 100644 --- a/js/app.js +++ b/js/app.js @@ -127,7 +127,7 @@ class App { setTheme(theme) {//{{{ this.theme = theme document.body.style.color = theme.colors.page.text - document.body.style.backgroundColor = theme.colors.page.background + document.body.style.background = theme.colors.page.background let sectionClasses = document.getElementById('sections').classList sectionClasses.remove('theme-brighter') @@ -248,7 +248,7 @@ class Section { ) return ` -
+
${this.label}
${itemHTML.join('')} diff --git a/themes.yaml b/themes.yaml index 7ed7f7d..37dc9e8 100644 --- a/themes.yaml +++ b/themes.yaml @@ -81,7 +81,7 @@ subdued: gruvbox: page: text: "#bdae93" - background: "#282828" + background: "#282828 url('/images/backgrounds/gruvbox.svg')" header: "#504945" footer: show: true @@ -99,6 +99,7 @@ gruvbox: section: background: "#504945" + shadow: "10px 10px 15px 0px rgba(0, 0, 0, 0.25)" borders: - ["#fb4934", "#eee"] - ["#b8bb26", "#333"]