Add Preact, oraz przełącznika zmiany theme
This commit is contained in:
28
src/styles/theme.css
Normal file
28
src/styles/theme.css
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user