Add Preact, oraz przełącznika zmiany theme

This commit is contained in:
dm
2025-11-21 03:39:33 +01:00
parent 7600b12341
commit 728aefed31
6 changed files with 83 additions and 1 deletions

28
src/styles/theme.css Normal file
View File

@@ -0,0 +1,28 @@
:root {
--fuz-bg: #ffffff;
--fuz-text: #1a1a1a;
--fuz-accent: #0066ff;
}
:root.dark {
--fuz-bg: #0d1117;
--fuz-text: #e6edf3;
--fuz-accent: #58a6ff;
}
/* Ustawienia bazowe motywu */
body {
background-color: var(--fuz-bg);
color: var(--fuz-text);
}
/* Przycisk przełącznika */
.theme-toggle-btn {
@apply text-xl p-2 rounded-full cursor-pointer transition-colors;
color: var(--fuz-text);
}
.theme-toggle-btn:hover {
opacity: 0.8;
}