Skip to content

Commit

Permalink
fix(mobile): background color
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Jan 6, 2025
1 parent e77a0e1 commit 9f6934f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/mobile/src/screens/(headless)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Index() {
}

return (
<View className="flex-1 items-center justify-center pt-safe">
<View className="flex-1 items-center justify-center pt-safe dark:bg-[#121212]">
{isCookieReady && <FollowWebView webViewRef={webViewRef} />}

{__DEV__ && (
Expand Down
30 changes: 30 additions & 0 deletions packages/components/assets/colors-media.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* merged from colors.css and tailwind.css */
:root {
--fo-a: 21.6 100% 50%;

Expand All @@ -22,6 +23,21 @@
--fo-button-hover: theme(colors.zinc.500/0.1);
--fo-image-placeholder: theme(colors.zinc.100);
--fo-text-placeholder: theme(colors.zinc.400);

--background: 0 0% 100%;
--foreground: 20 14.3% 4.1%;
--card: 0 0% 100%;
--card-foreground: 20 14.3% 4.1%;
--popover: 0 0% 100%;
--popover-foreground: 20 14.3% 4.1%;

--muted: 60 4.8% 95.9%;
--muted-foreground: 25 5.3% 44.7%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 20 5.9% 90%;
--radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -49,6 +65,20 @@
--fo-button-hover: theme(colors.neutral.400/0.15);
--fo-image-placeholder: theme(colors.neutral.800);
--fo-text-placeholder: theme(colors.zinc.500);

--background: 0 0% 7.1%;
--foreground: 60 9.1% 97.8%;
--card: 20 14.3% 4.1%;
--card-foreground: 60 9.1% 97.8%;
--popover: 20 14.3% 4.1%;
--popover-foreground: 60 9.1% 97.8%;

--muted: 12 6.5% 15.1%;
--muted-foreground: 24 5.4% 63.9%;

--destructive: 0 72.2% 50.6%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 0 0% 22.1%;
}
}

Expand Down

0 comments on commit 9f6934f

Please sign in to comment.