Compare commits
1 Commits
9a816c7bbf
...
1733d3147c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1733d3147c |
@ -35,23 +35,10 @@ function App() {
|
|||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (theme !== "default" && theme !== "sakura") {
|
if (theme !== "default") {
|
||||||
document.body.classList.remove("sakura-theme");
|
|
||||||
document.body.classList.add("shader-theme");
|
document.body.classList.add("shader-theme");
|
||||||
if (theme === "clouds" || theme === "blackhole" || theme === "ball") {
|
|
||||||
document.body.classList.add("black-theme");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
document.body.classList.remove("black-theme");
|
|
||||||
} else {
|
} else {
|
||||||
document.body.classList.remove("shader-theme");
|
document.body.classList.remove("shader-theme");
|
||||||
document.body.classList.remove("black-theme");
|
|
||||||
|
|
||||||
if (theme === "sakura") {
|
|
||||||
document.body.classList.add("sakura-theme");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
document.body.classList.remove("sakura-theme");
|
|
||||||
}
|
}
|
||||||
}, [theme]);
|
}, [theme]);
|
||||||
|
|
||||||
@ -110,7 +97,6 @@ function App() {
|
|||||||
{ id: "ball", label: "Ball", icon: "⚽" },
|
{ id: "ball", label: "Ball", icon: "⚽" },
|
||||||
{ id: "reflect", label: "Reflect", icon: "🪞" },
|
{ id: "reflect", label: "Reflect", icon: "🪞" },
|
||||||
{ id: "clouds", label: "Clouds", icon: "☁️" },
|
{ id: "clouds", label: "Clouds", icon: "☁️" },
|
||||||
{ id: "sakura", label: "Sakura", icon: "🌸" },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -1,21 +1,15 @@
|
|||||||
:root {
|
:root {
|
||||||
--primary-bg-rgb: 35 40 61;
|
--primary-bg: #23283d;
|
||||||
--secondary-bg-rgb: 30 34 51;
|
--secondary-bg: #1e2233;
|
||||||
--secondary-alt-bg-rgb: 25 31 46;
|
--secondary-alt-bg: #191f2e;
|
||||||
--tertiary-bg-rgb: 16 19 32;
|
--tertiary-bg: #101320;
|
||||||
--accent-color-rgb: 9 109 192;
|
--accent-color: #096dc0;
|
||||||
--secondary-accent-rgb: 10 79 140;
|
--secondary-accent: #0a4f8c;
|
||||||
--border-color-rgb: 42 48 69;
|
|
||||||
--text-color: #ffffff;
|
--text-color: #ffffff;
|
||||||
--text-muted: #a0a0a0;
|
--text-muted: #a0a0a0;
|
||||||
|
--border-color: #2a3045;
|
||||||
|
|
||||||
--primary-bg: rgb(var(--primary-bg-rgb));
|
font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||||
--secondary-bg: rgb(var(--secondary-bg-rgb));
|
|
||||||
--secondary-alt-bg: rgb(var(--tertiary-bg-rgb));
|
|
||||||
--tertiary-bg: rgb(var(--border-color-rgb));
|
|
||||||
--border-color: rgb(var(--text-color-rgb));
|
|
||||||
|
|
||||||
font-family: "Inter", system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
@ -38,12 +32,7 @@ body {
|
|||||||
background-color: var(--primary-bg);
|
background-color: var(--primary-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1, h2, h3, h4, h5, h6 {
|
||||||
h2,
|
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
@ -85,8 +74,7 @@ button:focus-visible {
|
|||||||
outline: 4px auto -webkit-focus-ring-color;
|
outline: 4px auto -webkit-focus-ring-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input, select {
|
||||||
select {
|
|
||||||
background-color: var(--secondary-alt-bg);
|
background-color: var(--secondary-alt-bg);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
@ -97,18 +85,17 @@ select {
|
|||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus,
|
input:focus, select:focus {
|
||||||
select:focus {
|
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: var(--accent-color);
|
border-color: var(--accent-color);
|
||||||
box-shadow: 0 0 0 2px rgb(9, 109, 192, 0.2);
|
box-shadow: 0 0 0 2px rgba(9, 109, 192, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
transition: background-color 0.3s ease, border-color 0.3s ease,
|
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
|
||||||
color 0.3s ease, box-shadow 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -116,21 +103,15 @@ ul {
|
|||||||
|
|
||||||
.shader-theme {
|
.shader-theme {
|
||||||
--primary-bg: transparent; /* Let the shader show through */
|
--primary-bg: transparent; /* Let the shader show through */
|
||||||
--secondary-bg: rgb(var(--secondary-bg-rgb) / 0.7); /* Translucent cards */
|
--secondary-bg: rgba(0, 0, 0, 0.7); /* Translucent cards */
|
||||||
--secondary-alt-bg: rgb(
|
--secondary-alt-bg: rgba(20, 20, 20, 0.6); /* Translucent inputs */
|
||||||
var(--secondary-alt-bg-rgb) / 0.6
|
--tertiary-bg: rgba(40, 40, 40, 0.8);
|
||||||
); /* Translucent inputs */
|
--border-color: rgba(255, 255, 255, 0.15);
|
||||||
--tertiary-bg: rgb(var(--tertiary-bg-rgb) / 0.8);
|
|
||||||
--border-color: rgb(var(--border-color-rgb) / 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.black-theme {
|
|
||||||
--primary-bg: transparent; /* Let the shader show through */
|
|
||||||
--secondary-bg: rgb(0, 0, 0, 0.7); /* Translucent cards */
|
|
||||||
--secondary-alt-bg: rgb(20, 20, 20, 0.6); /* Translucent inputs */
|
|
||||||
--tertiary-bg: rgb(40, 40, 40, 0.8);
|
|
||||||
--border-color: rgb(255, 255, 255, 0.15);
|
|
||||||
--text-color: #ffffff;
|
--text-color: #ffffff;
|
||||||
--accent-color: #121212;
|
--accent-color: #121212;
|
||||||
--secondary-accent: #212121;
|
--secondary-accent: #212121;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shader-theme body {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user