Can't find your game here?
@@ -214,17 +212,17 @@ export default component$(() => {
-
+
-
+
-
+
Create or join a Nestri Party
@@ -309,11 +307,11 @@ export default component$(() => {
-
+
diff --git a/packages/ui/src/card.tsx b/packages/ui/src/card.tsx
index 330be8fd..689e4456 100644
--- a/packages/ui/src/card.tsx
+++ b/packages/ui/src/card.tsx
@@ -41,11 +41,21 @@ export const Card = component$(({ game }: Props) => {
g = Math.floor(g / count);
b = Math.floor(b / count);
- // Ensure the color is light enough
- const minBrightness = 100;
- r = Math.max(r, minBrightness);
- g = Math.max(g, minBrightness);
- b = Math.max(b, minBrightness);
+ const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
+
+ if (isDarkMode) {
+ // Darken the color for dark mode
+ r = Math.floor(r * 0.8);
+ g = Math.floor(g * 0.8);
+ b = Math.floor(b * 0.8);
+ } else {
+ // For light mode, keep the existing logic
+ const minBrightness = 100;
+ r = Math.max(r, minBrightness);
+ g = Math.max(g, minBrightness);
+ b = Math.max(b, minBrightness);
+ }
+
return `rgb(${r},${g},${b})`;
});
diff --git a/packages/ui/src/github-banner.tsx b/packages/ui/src/github-banner.tsx
index e098fc37..69b02bd7 100644
--- a/packages/ui/src/github-banner.tsx
+++ b/packages/ui/src/github-banner.tsx
@@ -15,7 +15,7 @@ export const GithubBanner = component$(() => {
>
-
+
@@ -38,7 +38,7 @@ export const GithubBanner = component$(() => {
-
+
Self-Host
diff --git a/packages/ui/src/home-nav-bar.tsx b/packages/ui/src/home-nav-bar.tsx
index 11578ba6..d89f885b 100644
--- a/packages/ui/src/home-nav-bar.tsx
+++ b/packages/ui/src/home-nav-bar.tsx
@@ -12,7 +12,7 @@ export const HomeNavBar = component$(() => {
);
return (
-