Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: replace hardcoded gray colors with theme-aware semantic tokens

Louis Beaumont802faac712b0
diff --git a/apps/screenpipe-app-tauri/components/inbox-messages.tsx b/apps/screenpipe-app-tauri/components/inbox-messages.tsx
index 404091311..f53479011 100644
--- a/apps/screenpipe-app-tauri/components/inbox-messages.tsx
+++ b/apps/screenpipe-app-tauri/components/inbox-messages.tsx
@@ -319,7 +319,7 @@ export function InboxMessages({
</CardHeader>
<CardContent className="min-h-[200px] w-[45vw]" ref={parentRef}>
{unreadMessages.length === 0 ? (
- <div className="flex h-full w-full items-center justify-center text-sm text-gray-500">
+ <div className="flex h-full w-full items-center justify-center text-sm text-muted-foreground">
no new messages
</div>
) : (
diff --git a/apps/screenpipe-app-tauri/components/pretty-link.tsx b/apps/screenpipe-app-tauri/components/pretty-link.tsx
index 852590043..636635f61 100644
--- a/apps/screenpipe-app-tauri/components/pretty-link.tsx
+++ b/apps/screenpipe-app-tauri/components/pretty-link.tsx
@@ -24,10 +24,10 @@ export function PrettyLink({
"inline-flex items-center rounded-md px-4 py-2",
"text-sm font-medium shadow-sm",
"focus:outline-none focus:ring-2",
- "focus:ring-gray-500 focus:ring-offset-2 transition-colors duration-200",
+ "focus:ring-ring focus:ring-offset-2 transition-colors duration-200",
variant === "filled"
- ? "bg-gray-600 text-white hover:bg-gray-700"
- : "bg-transparent text-gray-600 border border-gray-600 hover:bg-gray-100"
+ ? "bg-muted-foreground text-background hover:bg-muted-foreground/80"
+ : "bg-transparent text-muted-foreground border border-muted-foreground hover:bg-muted"
)}
>
{children}
diff --git a/apps/screenpipe-app-tauri/components/rewind/video.tsx b/apps/screenpipe-app-tauri/components/rewind/video.tsx
index d25bb4f21..7f0fe49ea 100644
--- a/apps/screenpipe-app-tauri/components/rewind/video.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/video.tsx
@@ -38,7 +38,7 @@ export const VideoComponent = memo(function VideoComponent({
}, []);
const renderFileLink = () => (
- <div className="mt-2 text-center text-xs text-gray-500 truncate px-2" title={filePath}>
+ <div className="mt-2 text-center text-xs text-muted-foreground truncate px-2" title={filePath}>
{customDescription || filePath}
</div>
);
@@ -154,11 +154,11 @@ export const VideoComponent = memo(function VideoComponent({
return (
<div
className={cn(
- "w-full h-48 bg-gray-200 animate-pulse rounded-md flex items-center justify-center",
+ "w-full h-48 bg-muted animate-pulse rounded-md flex items-center justify-center",
className
)}
>
- <span className="text-gray-500">Loading media...</span>
+ <span className="text-muted-foreground">Loading media...</span>
</div>
);
}
@@ -166,7 +166,7 @@ export const VideoComponent = memo(function VideoComponent({
return (
<div className={cn("w-full max-w-2xl text-center isolate", className)}>
{isAudio ? (
- <div className="relative z-10 bg-gray-100 p-4 rounded-md">
+ <div className="relative z-10 bg-muted p-4 rounded-md">
<audio ref={(el) => { mediaElementRef.current = el; }} controls className="w-full pointer-events-auto">
<source src={mediaSrc} type="audio/mpeg" />
Your browser does not support the audio element.
diff --git a/apps/screenpipe-app-tauri/components/screenpipe-status.tsx b/apps/screenpipe-app-tauri/components/screenpipe-status.tsx
index a877813e4..7831c2811 100644
--- a/apps/screenpipe-app-tauri/components/screenpipe-status.tsx
+++ b/apps/screenpipe-app-tauri/components/screenpipe-status.tsx
@@ -281,7 +281,7 @@ const HealthStatus = ({ className }: { className?: string }) => {
<div
className={`w-2 h-2 rounded-full ${
settings.disableAudio
- ? "bg-gray-400"
+ ? "bg-muted-foreground"
: health?.audio_status === "ok"
? "bg-green-500"
: "bg-red-500"
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index 678d205b3..da8c8e6ed 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -710,7 +710,7 @@ function WhatsAppPanel() {
{status === "pairing" && qr && (
<div className="space-y-2">
<p className="text-xs text-muted-foreground">scan this QR code with your WhatsApp app:</p>
- <div className="bg-white p-3 rounded-lg inline-block">
+ <div className="bg-white p-3 rounded-lg inline-block border dark:border-border">
<img
src={`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(qr)}`}
alt="WhatsApp QR Code"