feat(frontend): add default Dark Theme

This commit is contained in:
Alex Wellnitz 2024-09-21 09:52:43 +02:00
parent e9ae53d5a5
commit 9e78610488
2 changed files with 31 additions and 26 deletions

View File

@ -1,42 +1,47 @@
:root {
/* :root {
--background: #ffffff;
--foreground: #171717;
}
} */
@media (prefers-color-scheme: dark) {
/* @media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
} */
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
max-width: 100vw;
overflow-x: hidden;
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
box-sizing: border-box;
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
color: inherit;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
html {
/* @media (prefers-color-scheme: dark) { */
html {
color-scheme: dark;
}
}
/* } */

View File

@ -16,16 +16,16 @@
font-family: var(--font-geist-sans);
}
@media (prefers-color-scheme: dark) {
.page {
--gray-rgb: 255, 255, 255;
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
/* @media (prefers-color-scheme: dark) { */
.page {
--gray-rgb: 255, 255, 255;
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
}
--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
}
/* } */
.main {
display: flex;