mirror of
https://github.com/GenShibe/website.git
synced 2025-02-12 15:04:49 +00:00
LMAO uncenter, atp you're just writing my website for me LOL
feat: add catppuccin themes :3
This commit is contained in:
commit
b5e18310a3
2 changed files with 153 additions and 18 deletions
15
index.html
15
index.html
|
@ -55,9 +55,24 @@
|
|||
>Open source</a
|
||||
></span
|
||||
>
|
||||
<select class="theme-selector">
|
||||
<option value="latte">Latte</option>
|
||||
<option value="frappe">Frappé</option>
|
||||
<option value="macchiato">Macchiato</option>
|
||||
<option value="mocha">Mocha</option>
|
||||
</select>
|
||||
</footer>
|
||||
</main>
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
const selector = document.querySelector(".theme-selector");
|
||||
selector.value = localStorage.getItem("theme") || "frappe";
|
||||
document.documentElement.setAttribute("theme", selector.value);
|
||||
selector.addEventListener("change", function () {
|
||||
localStorage.setItem("theme", this.value);
|
||||
document.documentElement.setAttribute("theme", this.value);
|
||||
});
|
||||
});
|
||||
document.querySelector(".last-updated").innerHTML =
|
||||
document.lastModified;
|
||||
</script>
|
||||
|
|
156
style.css
156
style.css
|
@ -2,9 +2,125 @@
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root[theme="latte"] {
|
||||
--ctp-rosewater: #dc8a78;
|
||||
--ctp-flamingo: #dd7878;
|
||||
--ctp-pink: #ea76cb;
|
||||
--ctp-mauve: #8839ef;
|
||||
--ctp-red: #d20f39;
|
||||
--ctp-maroon: #e64553;
|
||||
--ctp-peach: #fe640b;
|
||||
--ctp-yellow: #df8e1d;
|
||||
--ctp-green: #40a02b;
|
||||
--ctp-teal: #179299;
|
||||
--ctp-sky: #04a5e5;
|
||||
--ctp-sapphire: #209fb5;
|
||||
--ctp-blue: #1e66f5;
|
||||
--ctp-lavender: #7287fd;
|
||||
--ctp-text: #4c4f69;
|
||||
--ctp-subtext1: #5c5f77;
|
||||
--ctp-subtext0: #6c6f85;
|
||||
--ctp-overlay2: #7c7f93;
|
||||
--ctp-overlay1: #8c8fa1;
|
||||
--ctp-overlay0: #9ca0b0;
|
||||
--ctp-surface2: #acb0be;
|
||||
--ctp-surface1: #bcc0cc;
|
||||
--ctp-surface0: #ccd0da;
|
||||
--ctp-base: #eff1f5;
|
||||
--ctp-mantle: #e6e9ef;
|
||||
--ctp-crust: #dce0e8;
|
||||
}
|
||||
|
||||
:root[theme="frappe"] {
|
||||
--ctp-rosewater: #f2d5cf;
|
||||
--ctp-flamingo: #eebebe;
|
||||
--ctp-pink: #f4b8e4;
|
||||
--ctp-mauve: #ca9ee6;
|
||||
--ctp-red: #e78284;
|
||||
--ctp-maroon: #ea999c;
|
||||
--ctp-peach: #ef9f76;
|
||||
--ctp-yellow: #e5c890;
|
||||
--ctp-green: #a6d189;
|
||||
--ctp-teal: #81c8be;
|
||||
--ctp-sky: #99d1db;
|
||||
--ctp-sapphire: #85c1dc;
|
||||
--ctp-blue: #8caaee;
|
||||
--ctp-lavender: #babbf1;
|
||||
--ctp-text: #c6d0f5;
|
||||
--ctp-subtext1: #b5bfe2;
|
||||
--ctp-subtext0: #a5adce;
|
||||
--ctp-overlay2: #949cbb;
|
||||
--ctp-overlay1: #838ba7;
|
||||
--ctp-overlay0: #737994;
|
||||
--ctp-surface2: #626880;
|
||||
--ctp-surface1: #51576d;
|
||||
--ctp-surface0: #414559;
|
||||
--ctp-base: #303446;
|
||||
--ctp-mantle: #292c3c;
|
||||
--ctp-crust: #232634;
|
||||
}
|
||||
|
||||
:root[theme="macchiato"] {
|
||||
--ctp-rosewater: #f4dbd6;
|
||||
--ctp-flamingo: #f0c6c6;
|
||||
--ctp-pink: #f5bde6;
|
||||
--ctp-mauve: #c6a0f6;
|
||||
--ctp-red: #ed8796;
|
||||
--ctp-maroon: #ee99a0;
|
||||
--ctp-peach: #f5a97f;
|
||||
--ctp-yellow: #eed49f;
|
||||
--ctp-green: #a6da95;
|
||||
--ctp-teal: #8bd5ca;
|
||||
--ctp-sky: #91d7e3;
|
||||
--ctp-sapphire: #7dc4e4;
|
||||
--ctp-blue: #8aadf4;
|
||||
--ctp-lavender: #b7bdf8;
|
||||
--ctp-text: #cad3f5;
|
||||
--ctp-subtext1: #b8c0e0;
|
||||
--ctp-subtext0: #a5adcb;
|
||||
--ctp-overlay2: #939ab7;
|
||||
--ctp-overlay1: #8087a2;
|
||||
--ctp-overlay0: #6e738d;
|
||||
--ctp-surface2: #5b6078;
|
||||
--ctp-surface1: #494d64;
|
||||
--ctp-surface0: #363a4f;
|
||||
--ctp-base: #24273a;
|
||||
--ctp-mantle: #1e2030;
|
||||
--ctp-crust: #181926;
|
||||
}
|
||||
|
||||
:root[theme="mocha"] {
|
||||
--ctp-rosewater: #f5e0dc;
|
||||
--ctp-flamingo: #f2cdcd;
|
||||
--ctp-pink: #f5c2e7;
|
||||
--ctp-mauve: #cba6f7;
|
||||
--ctp-red: #f38ba8;
|
||||
--ctp-maroon: #eba0ac;
|
||||
--ctp-peach: #fab387;
|
||||
--ctp-yellow: #f9e2af;
|
||||
--ctp-green: #a6e3a1;
|
||||
--ctp-teal: #94e2d5;
|
||||
--ctp-sky: #89dceb;
|
||||
--ctp-sapphire: #74c7ec;
|
||||
--ctp-blue: #89b4fa;
|
||||
--ctp-lavender: #b4befe;
|
||||
--ctp-text: #cdd6f4;
|
||||
--ctp-subtext1: #bac2de;
|
||||
--ctp-subtext0: #a6adc8;
|
||||
--ctp-overlay2: #9399b2;
|
||||
--ctp-overlay1: #7f849c;
|
||||
--ctp-overlay0: #6c7086;
|
||||
--ctp-surface2: #585b70;
|
||||
--ctp-surface1: #45475a;
|
||||
--ctp-surface0: #313244;
|
||||
--ctp-base: #1e1e2e;
|
||||
--ctp-mantle: #181825;
|
||||
--ctp-crust: #11111b;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #303446;
|
||||
color: #4c4f69;
|
||||
background-color: var(--ctp-base);
|
||||
color: var(--ctp-text) !important;
|
||||
font-family: Figtree, Arial, sans-serif;
|
||||
|
||||
display: flex;
|
||||
|
@ -17,38 +133,35 @@ p {
|
|||
font-size: 2em;
|
||||
margin: 10px;
|
||||
text-align: center;
|
||||
color: #c6d0f5;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #8caaee;
|
||||
color: var(--ctp-blue);
|
||||
}
|
||||
a:hover {
|
||||
color: #85c1dc;
|
||||
color: var(--ctp-sapphire);
|
||||
}
|
||||
a:visited {
|
||||
color: #ca9ee6;
|
||||
color: var(--ctp-mauve);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 2px;
|
||||
margin-top: 2px;
|
||||
font-size: 3em;
|
||||
color: #c6d0f5;
|
||||
text-align: center;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
font-size: 2em;
|
||||
color: #c6d0f5;
|
||||
text-align: center;
|
||||
}
|
||||
h3 {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
font-size: 1.5em;
|
||||
color: #ef9f76;
|
||||
color: var(--ctp-peach);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
@ -60,15 +173,15 @@ li {
|
|||
font-size: 1.5em;
|
||||
text-align: center;
|
||||
list-style-type: none;
|
||||
color: #c6d0f5;
|
||||
margin-bottom: 1.5px;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin: 0 auto;
|
||||
color: #c6d0f5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
@ -85,8 +198,8 @@ footer {
|
|||
.socials a {
|
||||
padding: 0.25rem 0.5rem;
|
||||
text-decoration: none;
|
||||
color: #c6d0f5;
|
||||
background-color: #414559;
|
||||
color: var(--ctp-text);
|
||||
background-color: var(--ctp-surface0);
|
||||
border-radius: 5px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
|
@ -95,16 +208,23 @@ footer {
|
|||
line-height: 1.75em;
|
||||
}
|
||||
.socials a:hover {
|
||||
background-color: #ef9f76;
|
||||
color: #292c3c;
|
||||
border-color: #fab387;
|
||||
background-color: var(--ctp-peach);
|
||||
color: var(--ctp-mantle);
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 2px;
|
||||
width: 80%;
|
||||
background-color: #ef9f76;
|
||||
background-color: var(--ctp-peach);
|
||||
border: none;
|
||||
margin: 1.5rem auto;
|
||||
box-shadow: 0 0 5px 0px #ef9f76;
|
||||
box-shadow: 0 0 5px 0px var(--ctp-peach);
|
||||
}
|
||||
|
||||
select {
|
||||
background-color: var(--ctp-base);
|
||||
color: var(--ctp-text);
|
||||
border-width: 2px;
|
||||
border-color: var(--ctp-surface0);
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue