Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
Give the sidebar, content area and cards distinct background colors (EVE-336) (#742)
Carter Smithabbd4c4914c1
diff --git a/src/client/components/Sidebar.tsx b/src/client/components/Sidebar.tsxindex 1be9811d..b88c5c40 100644--- a/src/client/components/Sidebar.tsx+++ b/src/client/components/Sidebar.tsx@@ -38,16 +38,16 @@ interface SidebarProps {const navItemBaseClass ="relative flex items-center gap-2.5 rounded-md px-3 py-1.5 text-sm text-base-content/70";-// Hover uses a lighter tint than the active background (bg-base-300/50) so a+// Hover uses a lighter tint than the active background (bg-sidebar-accent) so a// hovered item next to the active one stays visually distinct instead of// merging into a single block.-const navItemClass = `${navItemBaseClass} transition-colors hover:bg-base-300/30 hover:text-base-content`;+const navItemClass = `${navItemBaseClass} transition-colors hover:bg-sidebar-accent/50 hover:text-base-content`;const navItemActiveProps = {// Keep the active tint on hover so the active item does not fall back to the// lighter hover background of navItemClass.className:- "bg-base-300/50 hover:bg-base-300/50 font-medium text-base-content",+ "bg-sidebar-accent hover:bg-sidebar-accent font-medium text-base-content",};function SidebarNavLink({@@ -127,7 +127,7 @@ export function Sidebar({ projectId, onNavigate, onClose }: SidebarProps) {};return (- <div className="flex h-full w-60 flex-col bg-base-200">+ <div className="flex h-full w-60 flex-col bg-sidebar"><div className="flex items-center justify-between px-4 pb-2 pt-3"><Linkto="/"diff --git a/src/client/features/projects/project-context/ProjectContextPage.tsx b/src/client/features/projects/project-context/ProjectContextPage.tsxindex 1271c945..c8b5a209 100644--- a/src/client/features/projects/project-context/ProjectContextPage.tsx+++ b/src/client/features/projects/project-context/ProjectContextPage.tsx@@ -255,7 +255,7 @@ function CustomSections({) : (<divkey={custom.slug}- className="space-y-2 rounded-lg border border-base-300 p-3"+ className="space-y-2 rounded-lg border border-base-300 bg-base-100 p-3"><div className="flex items-start justify-between gap-3"><div className="min-w-0">diff --git a/src/client/features/projects/project-context/shared.tsx b/src/client/features/projects/project-context/shared.tsxindex cbfecd0d..d3d4ecee 100644--- a/src/client/features/projects/project-context/shared.tsx+++ b/src/client/features/projects/project-context/shared.tsx@@ -61,7 +61,7 @@ export function Provenance({ by, at }: { by: ContextAuthor; at?: string }) {}export const listClass =- "divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300";+ "divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300 bg-base-100";/** Row actions and footer buttons shared by the inline competitor/page forms. */export function RowActions({ children }: { children: ReactNode }) {diff --git a/src/client/features/sam/SamSidebarPanel.tsx b/src/client/features/sam/SamSidebarPanel.tsxindex 0882bb0a..736bc49d 100644--- a/src/client/features/sam/SamSidebarPanel.tsx+++ b/src/client/features/sam/SamSidebarPanel.tsx@@ -153,7 +153,9 @@ export function SamSidebarPanel({<divkey={session.id}className={`group flex items-center gap-1 rounded-md px-1 ${- isActive ? "bg-base-300/50" : "hover:bg-base-300/40"+ isActive+ ? "bg-sidebar-accent"+ : "hover:bg-sidebar-accent/50"}`}><buttondiff --git a/src/client/features/settings/ApiKeySettings.tsx b/src/client/features/settings/ApiKeySettings.tsxindex 442087c5..64bcbb6d 100644--- a/src/client/features/settings/ApiKeySettings.tsx+++ b/src/client/features/settings/ApiKeySettings.tsx@@ -130,7 +130,7 @@ export function ApiKeySettings() {apiKeys.length === 0 ? (<p className="text-sm text-base-content/60">No API keys yet.</p>) : (- <div className="overflow-x-auto rounded-lg border border-base-300">+ <div className="overflow-x-auto rounded-lg border border-base-300 bg-base-100"><table className="table table-sm"><thead><tr>diff --git a/src/client/features/settings/CrawlerAccessSettings.tsx b/src/client/features/settings/CrawlerAccessSettings.tsxindex 956ef392..d1b9f82c 100644--- a/src/client/features/settings/CrawlerAccessSettings.tsx+++ b/src/client/features/settings/CrawlerAccessSettings.tsx@@ -65,7 +65,7 @@ export function CrawlerAccessSettings({ projectId }: { projectId: string }) {</div>{isAdding && (- <div className="rounded-lg border border-base-300 p-4">+ <div className="rounded-lg border border-base-300 bg-base-100 p-4"><CrawlerAccessFormprojectId={projectId}initialHost=""@@ -79,7 +79,7 @@ export function CrawlerAccessSettings({ projectId }: { projectId: string }) {We couldn't load your crawler access.</p>) : credentials.length > 0 ? (- <div className="overflow-x-auto rounded-lg border border-base-300">+ <div className="overflow-x-auto rounded-lg border border-base-300 bg-base-100"><table className="table table-sm"><thead><tr>diff --git a/src/client/features/team/TeamSettings.tsx b/src/client/features/team/TeamSettings.tsxindex 43be8ccb..a6837a3a 100644--- a/src/client/features/team/TeamSettings.tsx+++ b/src/client/features/team/TeamSettings.tsx@@ -160,7 +160,7 @@ export function TeamSettings() {{teamQuery.isPending ? (<PageLoading />) : (- <div className="overflow-x-auto rounded-lg border border-base-300">+ <div className="overflow-x-auto rounded-lg border border-base-300 bg-base-100"><table className="table table-sm"><thead><tr>diff --git a/src/client/layout/AppShell.tsx b/src/client/layout/AppShell.tsxindex 35bf33d2..e40a6008 100644--- a/src/client/layout/AppShell.tsx+++ b/src/client/layout/AppShell.tsx@@ -96,7 +96,7 @@ export function AuthenticatedAppLayout({!showMissingSeoApiKeyModal;return (- <div className="flex h-[100dvh] bg-base-200">+ <div className="flex h-[100dvh] bg-sidebar"><div className="hidden shrink-0 md:block"><Sidebar projectId={sidebarProjectId} /></div>@@ -107,10 +107,11 @@ export function AuthenticatedAppLayout({onOpenDrawer={() => setDrawerOpen(true)}/>- {/* PostHog-style cutout: the main content sits on a raised panel with a- thin strip of the sidebar background above it and a hairline border. */}+ {/* PostHog-style cutout: the main content sits on an inset panel with a+ thin strip of the sidebar background above it and a hairline border.+ Cards inside the panel use bg-base-100 to stand out from it. */}<div className="flex min-h-0 flex-1 flex-col md:pt-2">- <div className="flex min-h-0 flex-1 flex-col overflow-hidden bg-base-100 md:rounded-tl-lg md:border-l md:border-t md:border-base-300">+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden bg-background md:rounded-tl-lg md:border-l md:border-t md:border-sidebar-border"><SeoApiStatusBannersshouldShowSeoApiWarning={shouldShowSeoApiWarning}seoApiKeyStatusError={seoApiKeyStatusError}diff --git a/src/client/styles/app.css b/src/client/styles/app.cssindex 026f0084..00d45390 100644--- a/src/client/styles/app.css+++ b/src/client/styles/app.css@@ -68,7 +68,7 @@:where(:root),[data-theme="openseo"] {--radius: 0.5rem;- --background: oklch(97% 0 0);+ --background: oklch(95.5% 0 0);--foreground: oklch(20% 0 0);--card: oklch(100% 0 0);--card-foreground: oklch(20% 0 0);@@ -97,30 +97,30 @@--chart-3: oklch(66.9% 0.141 162.1);--chart-4: oklch(76.4% 0.161 75.1);--chart-5: oklch(71.6% 0.141 357.4);- --sidebar: oklch(97% 0 0);+ --sidebar: oklch(91% 0 0);--sidebar-foreground: oklch(20% 0 0);--sidebar-primary: oklch(50% 0.12 262);--sidebar-primary-foreground: oklch(100% 0 0);- --sidebar-accent: oklch(92% 0 0 / 50%);+ --sidebar-accent: oklch(20% 0 0 / 8%);--sidebar-accent-foreground: oklch(20% 0 0);- --sidebar-border: oklch(92% 0 0);+ --sidebar-border: oklch(86% 0 0);--sidebar-ring: oklch(50% 0.12 262);}[data-theme="openseo-dark"] {- --background: oklch(12% 0 0);+ --background: oklch(18% 0 0);--foreground: oklch(92% 0 0);- --card: oklch(18% 0 0);+ --card: oklch(23% 0 0);--card-foreground: oklch(92% 0 0);- --popover: oklch(18% 0 0);+ --popover: oklch(25% 0 0);--popover-foreground: oklch(92% 0 0);--primary: oklch(66% 0.12 262);--primary-foreground: oklch(100% 0 0);- --secondary: oklch(25% 0 0);+ --secondary: oklch(28% 0 0);--secondary-foreground: oklch(92% 0 0);- --muted: oklch(12% 0 0);+ --muted: oklch(18% 0 0);--muted-foreground: oklch(92% 0 0 / 60%);- --accent: oklch(25% 0 0);+ --accent: oklch(28% 0 0);--accent-foreground: oklch(92% 0 0);--destructive: oklch(65% 0.2 25);--success: oklch(65% 0.18 145);@@ -129,21 +129,21 @@--warning-foreground: oklch(25% 0.05 80);--info: oklch(70% 0.15 230);--info-foreground: oklch(100% 0 0);- --border-color: oklch(27% 0 0);- --input: oklch(27% 0 0);+ --border-color: oklch(30% 0 0);+ --input: oklch(30% 0 0);--ring: oklch(66% 0.12 262);--chart-1: oklch(62.2% 0.161 255.1);--chart-2: oklch(62.2% 0.173 40.1);--chart-3: oklch(62.1% 0.128 163.1);--chart-4: oklch(67% 0.143 73.2);--chart-5: oklch(62.2% 0.171 0.8);- --sidebar: oklch(12% 0 0);+ --sidebar: oklch(24% 0 0);--sidebar-foreground: oklch(92% 0 0);--sidebar-primary: oklch(66% 0.12 262);--sidebar-primary-foreground: oklch(100% 0 0);- --sidebar-accent: oklch(27% 0 0 / 50%);+ --sidebar-accent: oklch(100% 0 0 / 8%);--sidebar-accent-foreground: oklch(92% 0 0);- --sidebar-border: oklch(27% 0 0);+ --sidebar-border: oklch(31% 0 0);--sidebar-ring: oklch(66% 0.12 262);}diff --git a/src/routes/_app/ai.tsx b/src/routes/_app/ai.tsxindex 4a23b208..625cd295 100644--- a/src/routes/_app/ai.tsx+++ b/src/routes/_app/ai.tsx@@ -49,7 +49,7 @@ function AiPage() {const prompt = getAgentSetupPrompt(origin);return (- <div className="h-full overflow-auto bg-base-100 px-4 py-12 md:px-6 md:py-16 pb-24 md:pb-12">+ <div className="h-full overflow-auto px-4 py-12 md:px-6 md:py-16 pb-24 md:pb-12"><div className="mx-auto max-w-2xl"><h1 className="text-2xl font-semibold tracking-tight">Agent setup</h1><p className="mt-3 text-pretty text-sm leading-relaxed text-base-content/70">@@ -64,7 +64,7 @@ function AiPage() {</TabsList><TabsContent value="setup"><div className="mt-6 space-y-5">- <section className="rounded-xl border border-base-300 p-5 sm:p-6">+ <section className="rounded-xl border border-base-300 bg-base-100 p-5 sm:p-6"><h2 className="text-base font-semibold">Set up your agent</h2><p className="mt-2 text-sm leading-relaxed text-base-content/60">Paste the setup prompt into your agent to connect OpenSEO and@@ -106,7 +106,7 @@ function AiPage() {</p></section>- <section className="rounded-xl border border-base-300 p-5 sm:p-6">+ <section className="rounded-xl border border-base-300 bg-base-100 p-5 sm:p-6"><h2 className="text-base font-semibold">Update your skills</h2><p className="mt-2 text-sm leading-relaxed text-base-content/60">Already connected? Paste the update prompt into your agent todiff --git a/src/routes/_app/p/$projectId/context.tsx b/src/routes/_app/p/$projectId/context.tsxindex f2519fb3..fe5c8b35 100644--- a/src/routes/_app/p/$projectId/context.tsx+++ b/src/routes/_app/p/$projectId/context.tsx@@ -14,7 +14,7 @@ function ProjectContextRoute() {const project = projectsQuery.data?.find((entry) => entry.id === projectId);return (- <div className="h-full overflow-auto bg-base-100">+ <div className="h-full overflow-auto"><div className="mx-auto w-full max-w-2xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12"><PageHeader title="Context" description={project?.name ?? " "} />diff --git a/src/routes/_app/p/$projectId/settings.tsx b/src/routes/_app/p/$projectId/settings.tsxindex 63821895..5413fd61 100644--- a/src/routes/_app/p/$projectId/settings.tsx+++ b/src/routes/_app/p/$projectId/settings.tsx@@ -19,7 +19,7 @@ function ProjectSettingsLayout() {const project = projectsQuery.data?.find((entry) => entry.id === projectId);return (- <div className="h-full overflow-auto bg-base-100">+ <div className="h-full overflow-auto"><div className="mx-auto w-full max-w-2xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12"><div className="space-y-4"><BackLink to="/projects">Projects</BackLink>diff --git a/src/routes/_app/projects.tsx b/src/routes/_app/projects.tsxindex b6460d1a..e7b59b62 100644--- a/src/routes/_app/projects.tsx+++ b/src/routes/_app/projects.tsx@@ -28,7 +28,7 @@ function ProjectsPage() {const projectsQuery = useQuery(projectsQueryOptions());return (- <div className="h-full overflow-auto bg-base-100 px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-8">+ <div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-8"><div className="mx-auto w-full max-w-2xl space-y-6"><div className="flex items-start justify-between gap-4"><div>@@ -53,7 +53,7 @@ function ProjectsPage() {errorFallback="Failed to load projects">{(data) => (- <ul className="divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300">+ <ul className="divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300 bg-base-100">{data.map((project) => (<li key={project.id}><Link@@ -119,7 +119,7 @@ function ArchivedProjects() {return (<section className="space-y-3"><h2 className="text-sm font-medium text-base-content/50">Archived</h2>- <ul className="divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300">+ <ul className="divide-y divide-base-300 overflow-hidden rounded-lg border border-base-300 bg-base-100">{archived.map((project) => (<likey={project.id}diff --git a/src/routes/_app/settings.tsx b/src/routes/_app/settings.tsxindex 64a8095f..062349d2 100644--- a/src/routes/_app/settings.tsx+++ b/src/routes/_app/settings.tsx@@ -19,7 +19,7 @@ function SettingsLayout() {];return (- <div className="h-full overflow-auto bg-base-100">+ <div className="h-full overflow-auto"><div className="mx-auto w-full max-w-4xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12"><div className="space-y-4"><h1 className="text-2xl font-bold tracking-tight">Settings</h1>diff --git a/src/routes/_app/support.tsx b/src/routes/_app/support.tsxindex e9d34133..e759af0d 100644--- a/src/routes/_app/support.tsx+++ b/src/routes/_app/support.tsx@@ -27,7 +27,7 @@ function SupportPage() {};return (- <div className="h-full overflow-auto bg-base-100 px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-8">+ <div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-8"><div className="mx-auto max-w-xl"><p className="text-sm font-medium text-base-content/40">Help & Community@@ -41,7 +41,7 @@ function SupportPage() {</p><div className="mt-8 space-y-3">- <div className="rounded-lg border border-base-300 px-5 py-4">+ <div className="rounded-lg border border-base-300 bg-base-100 px-5 py-4"><p className="text-sm font-semibold">Email</p><p className="mt-1 text-sm text-base-content/60">Send ideas, problems, questions, or feedback directly.@@ -64,7 +64,7 @@ function SupportPage() {href={DISCORD_URL}target="_blank"rel="noreferrer"- className="block rounded-lg border border-base-300 px-5 py-4 transition-colors hover:border-base-content/20"+ className="block rounded-lg border border-base-300 bg-base-100 px-5 py-4 transition-colors hover:border-base-content/20"><p className="text-sm font-semibold">Discord</p><p className="mt-1 text-sm text-base-content/60">@@ -80,7 +80,7 @@ function SupportPage() {href={`${GITHUB_URL}/issues`}target="_blank"rel="noreferrer"- className="block rounded-lg border border-base-300 px-5 py-4 transition-colors hover:border-base-content/20"+ className="block rounded-lg border border-base-300 bg-base-100 px-5 py-4 transition-colors hover:border-base-content/20"><p className="text-sm font-semibold">GitHub Issues</p><p className="mt-1 text-sm text-base-content/60">