Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Restore Space light theme

Anand Baburajan19d6fbf31615
diff --git a/web/apps/space/public/images/default-profile-pic.png b/web/apps/space/public/images/default-profile-pic.png
index b066d8e72b..1807493270 100644
Binary files a/web/apps/space/public/images/default-profile-pic.png and b/web/apps/space/public/images/default-profile-pic.png differ
diff --git a/web/apps/space/src/components/ActionToast.tsx b/web/apps/space/src/components/ActionToast.tsx
index a9764d42c3..14d94a2c91 100644
--- a/web/apps/space/src/components/ActionToast.tsx
+++ b/web/apps/space/src/components/ActionToast.tsx
@@ -3,7 +3,7 @@ import { HugeiconsIcon } from "@hugeicons/react";
import { Box } from "@mui/material";
import { keyframes } from "@mui/material/styles";
import React from "react";
-import { spaceSurface, spaceText } from "styles/colors";
+import { spaceDialogBackground, spaceText } from "styles/colors";
import { spaceTouchTargetSize } from "styles/touch-targets";
const green = "#08C225";
@@ -76,7 +76,7 @@ export const SpaceActionToast: React.FC<SpaceActionToastProps> = ({
aria-live="polite"
sx={{
alignItems: "center",
- bgcolor: spaceSurface,
+ bgcolor: spaceDialogBackground,
borderRadius: "18px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
boxSizing: "border-box",
@@ -149,7 +149,7 @@ export const SpaceActionToast: React.FC<SpaceActionToastProps> = ({
p: 0,
width: 36,
"&:focus-visible": {
- outline: "2px solid rgba(255 255 255 / 0.72)",
+ outline: "2px solid rgba(0 0 0 / 0.72)",
outlineOffset: 2,
},
}}
diff --git a/web/apps/space/src/components/ConfirmationActionSheet.tsx b/web/apps/space/src/components/ConfirmationActionSheet.tsx
index f1586326ae..fcf657806a 100644
--- a/web/apps/space/src/components/ConfirmationActionSheet.tsx
+++ b/web/apps/space/src/components/ConfirmationActionSheet.tsx
@@ -5,7 +5,12 @@ import {
} from "components/ActionFeedback";
import { SpaceBottomSheetTransition } from "components/BottomSheetTransition";
import React from "react";
-import { spaceSurface, spaceText, spaceTextMuted } from "styles/colors";
+import {
+ spaceDialogBackground,
+ spaceSurface,
+ spaceText,
+ spaceTextMuted,
+} from "styles/colors";
const green = "#08C225";
const dangerColor = "#F63A3A";
@@ -32,7 +37,7 @@ interface ConfirmationActionSheetProps {
export const ConfirmationActionSheet: React.FC<
ConfirmationActionSheetProps
> = ({
- appearance = "dark",
+ appearance = "light",
open,
title,
description,
@@ -63,10 +68,18 @@ export const ConfirmationActionSheet: React.FC<
? { transition: SpaceBottomSheetTransition }
: undefined
}
- sx={isDark ? { zIndex: 1500 } : undefined}
+ sx={
+ isDark
+ ? {
+ zIndex: 1500,
+ "--space-dialog-backdrop": "rgba(0 0 0 / 0.86)",
+ }
+ : undefined
+ }
slotProps={{
paper: {
sx: {
+ bgcolor: isDark ? "#1E1E1E" : spaceDialogBackground,
borderRadius: "28px 28px 0 0",
bottom: 0,
boxShadow: "none",
diff --git a/web/apps/space/src/components/MobileBestToast.tsx b/web/apps/space/src/components/MobileBestToast.tsx
index d205b14ce1..b95357882c 100644
--- a/web/apps/space/src/components/MobileBestToast.tsx
+++ b/web/apps/space/src/components/MobileBestToast.tsx
@@ -5,7 +5,7 @@ import {
import { HugeiconsIcon } from "@hugeicons/react";
import { Box } from "@mui/material";
import React from "react";
-import { spaceSurface, spaceText } from "styles/colors";
+import { spaceDialogBackground, spaceText } from "styles/colors";
const green = "#08C225";
const dismissedKey = "spaceMobileBestToastDismissed";
@@ -25,7 +25,7 @@ export const SpaceMobileBestToast: React.FC = () => {
aria-live="polite"
sx={{
alignItems: "center",
- bgcolor: spaceSurface,
+ bgcolor: spaceDialogBackground,
borderRadius: "18px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
boxSizing: "border-box",
@@ -91,7 +91,7 @@ export const SpaceMobileBestToast: React.FC = () => {
p: 0,
width: 40,
"&:focus-visible": {
- outline: "2px solid rgba(255 255 255 / 0.72)",
+ outline: "2px solid rgba(0 0 0 / 0.72)",
outlineOffset: 2,
},
}}
diff --git a/web/apps/space/src/components/NotificationPermissionInstructions.tsx b/web/apps/space/src/components/NotificationPermissionInstructions.tsx
index de99f56b82..59a19b36ef 100644
--- a/web/apps/space/src/components/NotificationPermissionInstructions.tsx
+++ b/web/apps/space/src/components/NotificationPermissionInstructions.tsx
@@ -2,7 +2,7 @@ import { Box, Dialog, useMediaQuery } from "@mui/material";
import { SpaceBottomSheetTransition } from "components/BottomSheetTransition";
import { isSpaceIOS } from "hooks/use-pwa-install-prompt";
import React from "react";
-import { spaceSurfaceHover, spaceText, spaceTextMuted } from "styles/colors";
+import { spaceText, spaceTextMuted } from "styles/colors";
const green = "#08C225";
const textBase = spaceText;
@@ -121,7 +121,7 @@ export const SpaceNotificationPermissionInstructions: React.FC<
key={step}
sx={{
alignItems: "center",
- bgcolor: spaceSurfaceHover,
+ bgcolor: "#FAFAFA",
borderRadius: "18px",
color: textSoft,
display: "flex",
diff --git a/web/apps/space/src/components/PWAInstallPrompt.tsx b/web/apps/space/src/components/PWAInstallPrompt.tsx
index 5946b72902..1bfc439a9c 100644
--- a/web/apps/space/src/components/PWAInstallPrompt.tsx
+++ b/web/apps/space/src/components/PWAInstallPrompt.tsx
@@ -17,8 +17,7 @@ import { useSpacePWAInstallPrompt } from "hooks/use-pwa-install-prompt";
import { useSpaceWebPushPrompt } from "hooks/use-web-push-prompt";
import React from "react";
import {
- spaceSurface,
- spaceSurfaceHover,
+ spaceDialogBackground,
spaceText,
spaceTextMuted,
} from "styles/colors";
@@ -230,7 +229,7 @@ export const SpacePWAPromptBanner: React.FC<SpacePWAPromptBannerProps> = ({
aria-live="polite"
sx={{
alignItems: "center",
- bgcolor: spaceSurface,
+ bgcolor: spaceDialogBackground,
borderRadius: "18px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
color: textBase,
@@ -610,7 +609,7 @@ const InstallInstructionStep: React.FC<InstallStep> = ({ icon, text }) => (
<Box
sx={{
alignItems: "center",
- bgcolor: spaceSurfaceHover,
+ bgcolor: "#FAFAFA",
borderRadius: "18px",
color: textSoft,
display: "flex",
diff --git a/web/apps/space/src/pages/_app.tsx b/web/apps/space/src/pages/_app.tsx
index 8521516eae..a48cdf6130 100644
--- a/web/apps/space/src/pages/_app.tsx
+++ b/web/apps/space/src/pages/_app.tsx
@@ -39,7 +39,8 @@ const spaceTheme = createTheme(shareTheme, {
paper: { backgroundColor: spaceDialogBackground },
root: {
".MuiBackdrop-root": {
- backgroundColor: "rgba(0 0 0 / 0.84)",
+ backgroundColor:
+ "var(--space-dialog-backdrop, rgba(0 0 0 / 0.48))",
},
},
},
diff --git a/web/apps/space/src/pages/layout-demo.tsx b/web/apps/space/src/pages/layout-demo.tsx
index 0cfc047bfd..e54ac76416 100644
--- a/web/apps/space/src/pages/layout-demo.tsx
+++ b/web/apps/space/src/pages/layout-demo.tsx
@@ -4,7 +4,7 @@ import { Box } from "@mui/material";
import { SpacePostFloatingActionButton } from "components/PostFloatingActionButton";
import React from "react";
import { FriendPostCircle } from "screens/HomeScreen";
-import { spaceAppBackground } from "styles/colors";
+import { spaceAppBackground, spaceSurface, spaceText } from "styles/colors";
import {
homeCircleGridLayout,
homeCirclePlacements,
@@ -12,7 +12,7 @@ import {
type HomeCirclePlacement,
} from "utils/home-circle-layout";
-const headerChromeColor = "#202825";
+const headerChromeColor = spaceSurface;
const headerHeight = 64;
const maximumFriendCount = 15;
@@ -101,7 +101,7 @@ const LayoutDemoPage: React.FC = () => {
component="main"
sx={{
background: spaceAppBackground,
- color: "#FFF",
+ color: spaceText,
display: "grid",
minHeight: "100svh",
overflowX: "hidden",
@@ -146,7 +146,7 @@ const LayoutDemoPage: React.FC = () => {
bgcolor: headerChromeColor,
border: 0,
borderRadius: "50%",
- color: "#FFF",
+ color: spaceText,
cursor: friendCount == 1 ? "default" : "pointer",
display: "flex",
height: 36,
@@ -178,7 +178,12 @@ const LayoutDemoPage: React.FC = () => {
component="img"
alt="Space"
src="/images/space.svg"
- sx={{ display: "block", height: 18, width: "auto" }}
+ sx={{
+ display: "block",
+ filter: "invert(1)",
+ height: 18,
+ width: "auto",
+ }}
/>
</Box>
<Box
@@ -197,7 +202,7 @@ const LayoutDemoPage: React.FC = () => {
bgcolor: headerChromeColor,
border: 0,
borderRadius: "50%",
- color: "#FFF",
+ color: spaceText,
cursor:
friendCount == maximumFriendCount
? "default"
diff --git a/web/apps/space/src/screens/FriendsScreen.tsx b/web/apps/space/src/screens/FriendsScreen.tsx
index 51128ee402..877ec93cc3 100644
--- a/web/apps/space/src/screens/FriendsScreen.tsx
+++ b/web/apps/space/src/screens/FriendsScreen.tsx
@@ -35,6 +35,7 @@ import {
import type { SpaceFriendRequest } from "services/space";
import {
spaceAppBackground,
+ spaceDialogBackground,
spaceSurface,
spaceSurfaceHover,
spaceText,
@@ -333,7 +334,7 @@ const FriendRow: React.FC<FriendRowProps> = ({
slotProps={{
paper: {
sx: {
- bgcolor: spaceSurface,
+ bgcolor: spaceDialogBackground,
borderRadius: "14px",
boxShadow: "0 14px 40px rgba(0, 0, 0, 0.16)",
mt: "6px",
@@ -359,12 +360,10 @@ const FriendRow: React.FC<FriendRowProps> = ({
py: "4px",
whiteSpace: "nowrap",
"&.Mui-focusVisible": {
- bgcolor: "rgba(255, 255, 255, 0.06)",
- },
- "&:active": {
- bgcolor: "rgba(255, 255, 255, 0.06)",
+ bgcolor: "rgba(0, 0, 0, 0.04)",
},
- "&:hover": { bgcolor: "rgba(255, 255, 255, 0.06)" },
+ "&:active": { bgcolor: "rgba(0, 0, 0, 0.04)" },
+ "&:hover": { bgcolor: "rgba(0, 0, 0, 0.04)" },
}}
>
<HugeiconsIcon
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index ea3e1f16f5..c60e02e9c1 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -62,8 +62,8 @@ const headerActionSize = spaceTouchTargetSize;
const headerAvatarSize = 36;
const headerAvatarImageSize = 26;
const headerChatCircleSize = 36;
-const headerChromeColor = "#202825";
-const mediaPlaceholderColor = headerChromeColor;
+const headerChromeColor = "#EFEFEF";
+const mediaPlaceholderColor = "#E5E7EA";
const headerHeight = 64;
const headerIconSize = 22;
const headerSideWidth = 36;
@@ -634,7 +634,7 @@ export const FriendPostCircle: React.FC<FriendPostCircleProps> = ({
)}
{!isLoading && !post && (
<SpacePostBadge
- backgroundColor="rgba(0, 0, 0, 0.18)"
+ backgroundColor="rgba(255, 255, 255, 0.82)"
color={textSecondary}
placement="center"
>
@@ -643,7 +643,7 @@ export const FriendPostCircle: React.FC<FriendPostCircleProps> = ({
)}
{!isLoading && postUnavailable && (
<SpacePostBadge
- backgroundColor="rgba(255, 255, 255, 0.1)"
+ backgroundColor="rgba(255, 255, 255, 0.82)"
color={textSecondary}
>
Unavailable
@@ -702,8 +702,8 @@ export const FriendPostCircle: React.FC<FriendPostCircleProps> = ({
aria-hidden
sx={{
alignItems: "center",
- bgcolor: "rgba(255, 255, 255, 0.18)",
- color: "rgba(255, 255, 255, 0.92)",
+ bgcolor: "rgba(255, 255, 255, 0.86)",
+ color: textSecondary,
display: "flex",
fontSize: 14,
fontWeight: 700,
@@ -1416,7 +1416,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
gap: "12px",
gridTemplateColumns: `${headerSideWidth}px minmax(0, 1fr) ${headerSideWidth}px`,
height: headerHeight,
- color: "#FFF",
+ color: textBase,
maxWidth: "100%",
pb: 2,
position: "relative",
@@ -1429,7 +1429,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
WebkitMaskImage:
"linear-gradient(to bottom, #000 0%, transparent 100%)",
backdropFilter: "blur(4px)",
- background: `linear-gradient(to bottom, ${spaceAppBackgroundColor}, rgba(0, 0, 0, 0.35) 75%, transparent)`,
+ background: `linear-gradient(to bottom, ${spaceAppBackgroundColor}, rgba(255, 255, 255, 0.35) 75%, transparent)`,
content: '""',
height: "calc(100% + 28px)",
left: 0,
@@ -1541,7 +1541,12 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
component="img"
alt="Space"
src="/images/space.svg"
- sx={{ display: "block", height: 18, width: "auto" }}
+ sx={{
+ display: "block",
+ filter: "invert(1)",
+ height: 18,
+ width: "auto",
+ }}
/>
</Box>
<Box
@@ -1559,7 +1564,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
bgcolor: "transparent",
border: 0,
boxSizing: "border-box",
- color: "#FFF",
+ color: textBase,
cursor: onOpenMessages ? "pointer" : "default",
display: "flex",
fontSize: 0,
@@ -1707,7 +1712,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
backgroundSize: "cover",
border: 0,
borderRadius: "20%",
- color: textBase,
+ color: "#FFF",
display: "flex",
flex: "0 0 auto",
flexDirection: "column",
@@ -1725,7 +1730,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
<Box
component="span"
sx={{
- color: textBase,
+ color: "#FFF",
fontFamily:
'"Nunito", "Inter Variable", sans-serif',
fontSize: 19,
diff --git a/web/apps/space/src/screens/MessagesScreen.tsx b/web/apps/space/src/screens/MessagesScreen.tsx
index 536604e728..5df7ed823d 100644
--- a/web/apps/space/src/screens/MessagesScreen.tsx
+++ b/web/apps/space/src/screens/MessagesScreen.tsx
@@ -48,21 +48,19 @@ import { spacePostImageInputAccept } from "utils/post-image";
const green = "#08C225";
const textBase = spaceText;
const textSecondary = spaceTextMuted;
-const conversationPrimaryText = "#E6E9E7";
-const messageTimestampColor = "#7E8582";
-const messageActivityColor = "#929996";
+const conversationPrimaryText = spaceText;
const lightSurface = spaceSurface;
const lightSurfaceHover = spaceSurfaceHover;
const composerSurface = lightSurface;
-const outgoingBubble = "#DEDAD9";
+const outgoingBubble = "#0DAF35";
const incomingBubble = lightSurface;
-const outgoingMessageText = "#111111";
+const outgoingMessageText = "#FFFFFF";
const incomingMessageText = spaceText;
const outgoingQuoteBubble = "#9EDFAE";
const incomingQuoteBubble = spaceSurfaceHover;
const incomingQuoteText = spaceTextMuted;
-const outgoingQuoteText = "#FFFFFF";
-const quoteRule = "rgba(255, 255, 255, 0.16)";
+const outgoingQuoteText = "#176B2A";
+const quoteRule = "#D6D6D6";
const dangerColor = "#F63A3A";
const composerHeight = 48;
const composerMaxHeight = 112;
@@ -259,7 +257,7 @@ const ConversationPreviewLine: React.FC<{
}> = ({ conversation }) => {
const activity = conversation.latestActivity;
const previewLineSx = {
- color: messageActivityColor,
+ color: textSecondary,
fontFamily: '"Inter Variable", Inter, sans-serif',
fontSize: 13,
fontWeight: 500,
@@ -421,7 +419,7 @@ const MessageTimeSeparator: React.FC<{ timestampMs: number }> = ({
<Box
component="li"
sx={{
- color: messageTimestampColor,
+ color: textSecondary,
fontFamily: '"Inter Variable", Inter, sans-serif',
fontSize: 12,
fontWeight: 500,
@@ -523,8 +521,8 @@ const ConversationListItem: React.FC<{
textAlign: "left",
transition: "background-color 140ms ease",
width: "calc(100% + 16px)",
- "&:active": { bgcolor: spaceDialogBackground },
- "&:hover": { bgcolor: spaceDialogBackground },
+ "&:active": { bgcolor: spaceSurface },
+ "&:hover": { bgcolor: spaceSurface },
"&:has(> [data-space-row-action]:active)": {
bgcolor: "transparent",
},
@@ -680,7 +678,7 @@ const ConversationListItem: React.FC<{
aria-hidden
component="span"
sx={{
- color: messageTimestampColor,
+ color: textSecondary,
flexShrink: 0,
fontFamily:
'"Inter Variable", Inter, sans-serif',
@@ -697,7 +695,7 @@ const ConversationListItem: React.FC<{
conversation.latestActivity.createdAtMs,
).toISOString()}
sx={{
- color: messageTimestampColor,
+ color: textSecondary,
flexShrink: 0,
fontFamily:
'"Inter Variable", Inter, sans-serif',
@@ -874,7 +872,7 @@ const ConversationSection: React.FC<{
<Box
component="h2"
sx={{
- color: messageActivityColor,
+ color: textSecondary,
fontFamily: '"Inter Variable", Inter, sans-serif',
fontSize: 13,
fontWeight: 700,
@@ -1135,7 +1133,7 @@ const MessageActionLabel: React.FC<{
sx={{
alignSelf: isOwn ? "flex-end" : "flex-start",
alignItems: "center",
- color: messageActivityColor,
+ color: textSecondary,
display: "inline-flex",
gap: "4px",
fontFamily: '"Inter Variable", Inter, sans-serif',
@@ -2534,7 +2532,7 @@ export const MessagesScreen: React.FC<MessagesScreenProps> = ({
{replyingTo && (
<Box
sx={{
- bgcolor: spaceDialogBackground,
+ bgcolor: spaceSurface,
borderLeft: `3px solid ${green}`,
borderRadius: "12px",
boxSizing: "border-box",
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index 2c36f7594d..c9a8098958 100644
--- a/web/apps/space/src/screens/ProfileScreen.tsx
+++ b/web/apps/space/src/screens/ProfileScreen.tsx
@@ -34,6 +34,7 @@ import { isSpaceContentError, type SpacePostAsset } from "services/space";
import {
spaceAppBackground,
spaceAppBackgroundColor,
+ spaceDialogBackground,
spaceSurface,
spaceText,
spaceTextMuted,
@@ -56,9 +57,9 @@ const dangerColor = "#F63A3A";
const textBase = spaceText;
const textSoft = spaceTextMuted;
const coverForeground = "#FFFFFF";
-const profileIdentityColor = "#D0D0D0";
-const profileStatsColor = "#8C8C8C";
-const profileStatsValueColor = "#B8B8B8";
+const profileIdentityColor = "#303030";
+const profileStatsColor = spaceTextMuted;
+const profileStatsValueColor = spaceText;
const profileCoverBackground = "#1F1F1F";
const profileCoverTopShadow =
"linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0) 100%)";
@@ -1660,7 +1661,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
slotProps={{
paper: {
sx: {
- bgcolor: spaceSurface,
+ bgcolor: spaceDialogBackground,
borderRadius: "14px",
boxShadow:
"0 14px 40px rgba(0, 0, 0, 0.16)",
diff --git a/web/apps/space/src/styles/colors.ts b/web/apps/space/src/styles/colors.ts
index e146e17c3b..005dd1c56d 100644
--- a/web/apps/space/src/styles/colors.ts
+++ b/web/apps/space/src/styles/colors.ts
@@ -1,10 +1,9 @@
-export const spaceAppBackgroundColor = "#0C1014";
+export const spaceAppBackgroundColor = "#FFFFFF";
-export const spaceAppBackground =
- "radial-gradient(ellipse 120% 95% at 50% 58%, rgba(38, 78, 52, 0.16), transparent 72%), #0C1014";
+export const spaceAppBackground = spaceAppBackgroundColor;
-export const spaceDialogBackground = "#171C1A";
-export const spaceSurface = "#202825";
-export const spaceSurfaceHover = "#29322F";
-export const spaceText = "#F4F4F4";
-export const spaceTextMuted = "#A6A6A6";
+export const spaceDialogBackground = "#FFFFFF";
+export const spaceSurface = "#F2F2F2";
+export const spaceSurfaceHover = "#E8E8E8";
+export const spaceText = "#000000";
+export const spaceTextMuted = "#777777";