Skip to content

Commit

Permalink
Merge pull request #14 from SandwichOriginal/main
Browse files Browse the repository at this point in the history
Theme Update
  • Loading branch information
Thedogecraft authored Mar 30, 2024
2 parents 8beb61f + ccf6ba7 commit 160afad
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 31 deletions.
84 changes: 56 additions & 28 deletions public/css/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ To use a theme, add the 'theme' attribute to the <body> tag, e.g. <body theme="g
--background-filter: blur(3px) brightness(80%);
}

body {
--bg: #10002b;
--alt: rgba(15, 0, 38, 0.5);
--button: #5a189a;
--textcolor: #fff;
--font: Ubuntu, sans-serif !important;
}

body[theme="main"] {
--background-filter: blur(3px) brightness(80%);
/* --bg: #240063; */
--bg: #3b039c;
--alt: rgba(15, 0, 38, 0.5);
Expand All @@ -30,20 +25,17 @@ body[theme="main"] {
--textcolor: #fff;
--font: Ubuntu, sans-serif;
}

body[theme="grey"] {
--bg: #222222;
--alt: rgba(27, 27, 27, 0.5);
--button: #444444;
--textcolor: #fff;
}
body[theme="grey"] {
--background-filter: blur(3px) brightness(80%);
--bg: #222222;
--alt: rgba(27, 27, 27, 0.5);
--button: #444444;
--textcolor: #fff;
}

body[theme="greyblack"] {
--background-filter: blur(3px) brightness(80%);
background: rgb(106, 97, 97);
background: linear-gradient(
156deg,
Expand All @@ -54,9 +46,11 @@ body[theme="greyblack"] {
--alt: rgba(27, 27, 27, 0.5);
--button: #444444;
--textcolor: #fff;
background-attachment: fixed;
}

body[theme="ghost"] {
--background-filter: blur(3px) brightness(80%);
background: rgb(0, 0, 0);
background: linear-gradient(
153deg,
Expand All @@ -70,35 +64,69 @@ body[theme="ghost"] {
--alt: #313131;
background-attachment: fixed;
}

body[theme="red"] {
background: rgb(144, 42, 42);
--bg: rgb(144, 42, 42);
background: radial-gradient(
circle,
rgba(144, 42, 42, 1) 31%,
rgba(102, 39, 39, 1) 47%
);
--alt: rgba(0, 0, 0, 0.5);
--button: rgb(87, 0, 0);
--textcolor: #ffffff;
}
body[theme="yourthemename"] {
--background-filter: blur(3px) brightness(80%);
--bg: #00b6ad4b;
--alt: rgba(27, 27, 27, 0.5);
--button: #444444;
--textcolor: #fff;
}
body[theme="bone"] {
--background-filter: blur(3px) brightness(80%);
/* transition: all 0.6s; */
--background-filter: #0c0c0c;
font-family: "bone" !important;
--background-filter: blur(3px) brightness(80%);
font-family: "bone" !important;
--bg: #000;
--textcolor: #fff;
--button: #1b1b1b;
--alt: rgb(56, 56, 56);
--border: var(--button);
}
body[theme="gb"] {
/* transition: all 0.6s; */
--background-filter: blur(3px) brightness(80%);
--bg: #4a4e69;
--textcolor: #f2e9e4;
--button: #22223b;
--alt: rgb(56, 56, 56);
--border: var(--button);
}
body[theme="gg"] {
/* transition: all 0.6s; */
--background-filter: blur(3px) brightness(80%);
--bg: #2f3e46;
--textcolor: #cad2c5;
--button: #2f3e46;
--alt: rgb(56, 56, 56);
--border: var(--button);
}
body[theme="brown"] {
/* transition: all 0.6s; */
--background-filter: blur(3px) brightness(80%);
--bg: #463f3a;
--textcolor: #f4f3ee;
--button: #8a817c;
--alt: rgb(56, 56, 56);
--border: var(--button);
}
body[theme="dg"] {
/* transition: all 0.6s; */
--background-filter: blur(3px) brightness(80%);
--bg: #293241;
--textcolor: #e0fbfc;
--button: #ee6c4d;
--alt: rgb(56, 56, 56);
--border: var(--button);
}
body[theme="moon"] {
/* transition: all 0.6s; */
--background-filter: blur(3px) brightness(80%);
--bg: #22223b;
--textcolor: #f2e9e4;
--button: #4a4e69;
--alt: rgb(151, 151, 151);
--border: var(--button);
}
/* Set font-family to "bone" for specific elements when the theme is "bone" */
[theme="bone"] h1,
[theme="bone"] a,
Expand Down
1 change: 1 addition & 0 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ document.addEventListener("DOMContentLoaded", function () {
}
});


document.addEventListener("DOMContentLoaded", function () {
const themeSelector = document.getElementById("theme-selector");

Expand Down
10 changes: 7 additions & 3 deletions public/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@
<option value="main">Main Theme</option>
<option value="grey">Grey Theme</option>
<option value="greyblack">Grey black Theme</option>
<option value="red">RED Theme</option>
<option value="bone">BONELAB</option>
<option value="ghost">uhh yeah red</option>
<option value="bone">BONELAB theme</option>
<option value="ghost">Black & Red theme</option>
<option value="gb">Greyish Blue</option>
<option value="gg">Greyish Green</option>
<option value="brown">Brown</option>
<option value="dg">Dark Orange</option>
<option value="moon">Moon</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 160afad

Please sign in to comment.