Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat(branding): let admins show no logo at all

Marc Seitza20f62cbe0e0
diff --git a/.gitignore b/.gitignore
index 6ab1696b..db5134b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,6 +52,7 @@ scripts/*
!scripts/generate-openapi.ts
!scripts/mcp-smoke.mjs
!scripts/check-tool-contracts.sh
+!scripts/check-brand-logo.ts
!scripts/extend-trial.ts
!scripts/local/
scripts/local/.tinybird-page-views.json
diff --git a/components/emails/otp-verification.tsx b/components/emails/otp-verification.tsx
index 685eeb35..2e619b2f 100644
--- a/components/emails/otp-verification.tsx
+++ b/components/emails/otp-verification.tsx
@@ -1,5 +1,6 @@
import React from "react";
+import type { ResolvedBrandLogo } from "@/ee/features/branding/lib/brand-logo";
import {
Body,
Container,
@@ -17,14 +18,38 @@ export default function OtpEmailVerification({
email = "[email protected]",
code = "123456",
isDataroom = false,
- logo,
+ logo = { kind: "papermark" },
}: {
email: string;
code: string;
isDataroom: boolean;
- logo?: string;
+ logo?: ResolvedBrandLogo;
}) {
const resourceLabel = isDataroom ? "dataroom" : "document";
+ const logoSection = (() => {
+ switch (logo.kind) {
+ case "custom":
+ return (
+ <Section className="mt-8">
+ <Img src={logo.src} alt="Logo" width="120" height="36" />
+ </Section>
+ );
+ case "papermark":
+ return (
+ <Section className="mt-8">
+ <Text className="text-2xl font-bold tracking-tighter">
+ Papermark
+ </Text>
+ </Section>
+ );
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = logo;
+ return _exhaustive;
+ }
+ }
+ })();
return (
<Html>
@@ -32,15 +57,7 @@ export default function OtpEmailVerification({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
- <Section className="mt-8">
- {logo ? (
- <Img src={logo} alt="Logo" width="120" height="36" />
- ) : (
- <Text className="text-2xl font-bold tracking-tighter">
- Papermark
- </Text>
- )}
- </Section>
+ {logoSection}
<Text className="mx-0 my-7 p-0 text-xl font-semibold text-black">
Your verification code
</Text>
diff --git a/components/view/access-form/index.tsx b/components/view/access-form/index.tsx
index b6780430..030a33cf 100644
--- a/components/view/access-form/index.tsx
+++ b/components/view/access-form/index.tsx
@@ -1,5 +1,6 @@
import { useEffect, useMemo, useState } from "react";
+import { resolveBrandLogo } from "@/ee/features/branding/lib/brand-logo";
import { Brand, CustomField, DataroomBrand, LinkType } from "@prisma/client";
import { ArrowUpRightIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
@@ -90,6 +91,7 @@ export default function AccessForm({
[brand?.accentColor],
);
const { t } = useTranslation("access-form");
+ const resolvedBrandLogo = resolveBrandLogo(brand);
const isSigningAgreement =
signingProvider === "DOCUMENSO" || agreementContentType === "SIGNING";
@@ -167,22 +169,22 @@ export default function AccessForm({
}}
>
{/* Light Navbar */}
- {logoOnAccessForm && brand && brand.logo && (
+ {logoOnAccessForm && resolvedBrandLogo.kind === "custom" ? (
<nav
className="w-full"
style={{
- backgroundColor: brand.brandColor ? brand.brandColor : "black",
+ backgroundColor: brand?.brandColor || "black",
}}
>
<div className="flex h-16 items-center justify-start px-2 sm:px-6 lg:px-8">
<img
- src={brand.logo as string}
+ src={resolvedBrandLogo.src}
alt="Brand Logo"
className="h-16 w-auto object-contain"
/>
</div>
</nav>
- )}
+ ) : null}
<div className="flex flex-1 flex-col px-6 pb-12 pt-8 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
diff --git a/components/view/dataroom/nav-dataroom.tsx b/components/view/dataroom/nav-dataroom.tsx
index 8e911dae..8edf891c 100644
--- a/components/view/dataroom/nav-dataroom.tsx
+++ b/components/view/dataroom/nav-dataroom.tsx
@@ -3,6 +3,7 @@ import Link from "next/link";
import React, { useEffect, useMemo, useState } from "react";
import { useViewerChatSafe } from "@/ee/features/ai/components/viewer-chat-provider";
+import { resolveBrandLogo } from "@/ee/features/branding/lib/brand-logo";
import { classifyDataroomBanner } from "@/ee/features/branding/lib/dataroom-banner";
import {
type DataroomViewerHeaderStyle,
@@ -309,31 +310,44 @@ export default function DataroomNav({
bannerKind === "video" || bannerKind === "youtube"
? DEFAULT_BANNER_IMAGE
: bannerSrc;
+ const resolvedBrandLogo = resolveBrandLogo(brand);
// The brand logo is rendered without a wrapper card so it sits naturally on
// the surface — uploaded logos are typically designed to read on the brand's
// chosen background and shouldn't be boxed in a contrasting chip.
- const renderPrimaryLogo = (forLightBackground?: boolean) =>
- brand && brand.logo ? (
- <img
- className="h-10 w-28 object-contain sm:h-12 sm:w-32"
- src={brand.logo}
- alt="Logo"
- />
- ) : (
- <Link
- href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}
- target="_blank"
- className={cn(
- "text-2xl font-bold tracking-tighter",
- forLightBackground
- ? "text-neutral-900 dark:text-white"
- : "text-white",
- )}
- >
- Papermark
- </Link>
- );
+ const renderPrimaryLogo = (forLightBackground?: boolean) => {
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return (
+ <img
+ className="h-10 w-28 object-contain sm:h-12 sm:w-32"
+ src={resolvedBrandLogo.src}
+ alt="Logo"
+ />
+ );
+ case "papermark":
+ return (
+ <Link
+ href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}
+ target="_blank"
+ className={cn(
+ "text-2xl font-bold tracking-tighter",
+ forLightBackground
+ ? "text-neutral-900 dark:text-white"
+ : "text-white",
+ )}
+ >
+ Papermark
+ </Link>
+ );
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ };
const welcomeMessage =
(brand as { welcomeMessage?: string | null })?.welcomeMessage?.trim() ||
@@ -423,6 +437,20 @@ export default function DataroomNav({
}) as React.CSSProperties,
[surfaceTheme, brand],
);
+ const notionLogoSrc = (() => {
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return resolvedBrandLogo.src;
+ case "papermark":
+ return "/_static/papermark-p.svg";
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ })();
return (
<nav
@@ -482,16 +510,25 @@ export default function DataroomNav({
}
>
<div className={cn(DATAROOM_NAV_PAGE_FRAME, "pb-10 pt-2")}>
- <div className="relative z-10 -mt-10 flex w-full flex-col items-start text-left sm:-mt-12">
- <NotionLogoChip
- src={brand?.logo ?? "/_static/papermark-p.svg"}
- usesSurfaceBackground={usesSurfaceBackground}
- surfacePanelBorderColor={
- surfaceTheme.palette.panelBorderColor
- }
- />
+ {/* The chip overlaps the cover, so with no chip the negative
+ margin has to go or the dataroom name rides up onto it. */}
+ <div
+ className={cn(
+ "relative z-10 flex w-full flex-col items-start text-left",
+ notionLogoSrc && "-mt-10 sm:-mt-12",
+ )}
+ >
+ {notionLogoSrc ? (
+ <NotionLogoChip
+ src={notionLogoSrc}
+ usesSurfaceBackground={usesSurfaceBackground}
+ surfacePanelBorderColor={
+ surfaceTheme.palette.panelBorderColor
+ }
+ />
+ ) : null}
<div
- className="mt-4 max-w-3xl text-3xl"
+ className={cn("max-w-3xl text-3xl", notionLogoSrc && "mt-4")}
style={surfaceTextStyle}
>
{dataroom.name}
diff --git a/components/view/nav.tsx b/components/view/nav.tsx
index a62efea2..33cc37cc 100644
--- a/components/view/nav.tsx
+++ b/components/view/nav.tsx
@@ -4,6 +4,7 @@ import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { useViewerChatSafe } from "@/ee/features/ai/components/viewer-chat-provider";
+import { resolveBrandLogo } from "@/ee/features/branding/lib/brand-logo";
import { useConversationSidebarSafe } from "@/ee/features/conversations/components/viewer/conversation-sidebar-provider";
import { Brand, DataroomBrand } from "@prisma/client";
import {
@@ -19,6 +20,7 @@ import {
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
+import { cn } from "@/lib/utils";
import { createAdaptiveSurfacePalette } from "@/lib/utils/create-adaptive-surface-palette";
import { determineTextColor } from "@/lib/utils/determine-text-color";
import { downloadFromLinkEndpoint } from "@/lib/utils/download-document";
@@ -140,6 +142,36 @@ export default function Nav({
const [showConversations, setShowConversations] = useState(false);
const brandColor = brand?.brandColor || "black";
const navColorPalette = createAdaptiveSurfacePalette(brandColor);
+ const resolvedBrandLogo = resolveBrandLogo(brand);
+ const renderBrandLogo = () => {
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return (
+ <img
+ className="h-16 w-36 object-contain"
+ src={resolvedBrandLogo.src}
+ alt="Logo"
+ />
+ );
+ case "papermark":
+ return (
+ <Link
+ href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}
+ target="_blank"
+ className="text-2xl font-bold tracking-tighter"
+ style={{ color: navColorPalette.textColor }}
+ >
+ Papermark
+ </Link>
+ );
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ };
const ctaLabel = (brand as { ctaLabel?: string | null } | null | undefined)
?.ctaLabel;
@@ -256,26 +288,15 @@ export default function Nav({
<div className="mx-auto px-2 sm:px-6 lg:px-8">
<div className="relative flex h-16 items-center justify-between">
<div className="flex flex-1 items-center justify-start">
- <div className="relative flex h-16 w-36 flex-shrink-0 items-center">
- {brand && brand.logo ? (
- <img
- className="h-16 w-36 object-contain"
- src={brand.logo}
- alt="Logo"
- // fill
- // quality={100}
- // priority
- />
- ) : (
- <Link
- href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}
- target="_blank"
- className="text-2xl font-bold tracking-tighter"
- style={{ color: navColorPalette.textColor }}
- >
- Papermark
- </Link>
+ {/* Without a logo the slot must not reserve its width, or a ghost
+ spacer pushes the breadcrumb off the left edge. */}
+ <div
+ className={cn(
+ "relative flex h-16 flex-shrink-0 items-center",
+ resolvedBrandLogo.kind !== "none" && "w-36",
)}
+ >
+ {renderBrandLogo()}
</div>
{isDataroom ? (
<Breadcrumb className="ml-6">
diff --git a/lib/api/links/link-data.ts b/lib/api/links/link-data.ts
index 53479ea3..edeb15bf 100644
--- a/lib/api/links/link-data.ts
+++ b/lib/api/links/link-data.ts
@@ -1,3 +1,4 @@
+import { mergeBrandLogoFields } from "@/ee/features/branding/lib/brand-logo";
import { resolvePublicLinkMeta } from "@/ee/features/branding/lib/resolve-public-link-meta";
import type { ResolvedPublicLinkMeta } from "@/ee/features/branding/lib/resolve-public-link-meta";
import {
@@ -315,6 +316,7 @@ export async function fetchDataroomLinkData({
where: { dataroomId: linkData.dataroom.id },
select: {
logo: true,
+ hideLogo: true,
banner: true,
brandColor: true,
accentColor: true,
@@ -336,6 +338,7 @@ export async function fetchDataroomLinkData({
where: { teamId: linkData.dataroom.teamId },
select: {
logo: true,
+ hideLogo: true,
banner: true,
brandColor: true,
accentColor: true,
@@ -354,7 +357,10 @@ export async function fetchDataroomLinkData({
});
const brand = {
- logo: dataroomBrand?.logo || teamBrand?.logo,
+ ...mergeBrandLogoFields({
+ dataroom: dataroomBrand,
+ team: teamBrand,
+ }),
banner: dataroomBrand?.banner || teamBrand?.banner || null,
brandColor: dataroomBrand?.brandColor || teamBrand?.brandColor,
accentColor: dataroomBrand?.accentColor || teamBrand?.accentColor,
@@ -522,6 +528,7 @@ export async function fetchDataroomDocumentLinkData({
where: { dataroomId: linkData.dataroom.id },
select: {
logo: true,
+ hideLogo: true,
banner: true,
brandColor: true,
accentColor: true,
@@ -543,6 +550,7 @@ export async function fetchDataroomDocumentLinkData({
where: { teamId: linkData.dataroom.teamId },
select: {
logo: true,
+ hideLogo: true,
banner: true,
brandColor: true,
accentColor: true,
@@ -561,7 +569,10 @@ export async function fetchDataroomDocumentLinkData({
});
const brand = {
- logo: dataroomBrand?.logo || teamBrand?.logo,
+ ...mergeBrandLogoFields({
+ dataroom: dataroomBrand,
+ team: teamBrand,
+ }),
banner: dataroomBrand?.banner || teamBrand?.banner || null,
brandColor: dataroomBrand?.brandColor || teamBrand?.brandColor,
accentColor: dataroomBrand?.accentColor || teamBrand?.accentColor,
@@ -647,6 +658,7 @@ export async function fetchDocumentLinkData({
where: { teamId: linkData.document.teamId },
select: {
logo: true,
+ hideLogo: true,
brandColor: true,
accentColor: true,
accentButtonColor: true,
@@ -693,6 +705,7 @@ async function processLinkData(
where: { teamId: link.teamId },
select: {
logo: true,
+ hideLogo: true,
brandColor: true,
accentColor: true,
defaultLanguage: true,
diff --git a/lib/emails/send-email-otp-verification.ts b/lib/emails/send-email-otp-verification.ts
index c6b63caf..5d9ddc2c 100644
--- a/lib/emails/send-email-otp-verification.ts
+++ b/lib/emails/send-email-otp-verification.ts
@@ -1,6 +1,7 @@
+import { type ResolvedBrandLogo } from "@/ee/features/branding/lib/brand-logo";
+
import { getCustomEmail } from "@/lib/edge-config/custom-email";
-import prisma from "@/lib/prisma";
-import { redis } from "@/lib/redis";
+import { readCachedBrandLogo } from "@/lib/redis/brand-logo-cache";
import { sendEmail } from "@/lib/resend";
import OtpEmailVerification from "@/components/emails/otp-verification";
@@ -11,21 +12,21 @@ export const sendOtpVerificationEmail = async (
isDataroom: boolean = false,
teamId: string,
) => {
- let logo: string | null = null;
+ let logo: ResolvedBrandLogo | undefined;
let from: string | undefined;
const customEmail = await getCustomEmail(teamId);
if (customEmail && teamId) {
from = customEmail;
- logo = await redis.get(`brand:logo:${teamId}`);
+ logo = await readCachedBrandLogo(teamId);
}
const emailTemplate = OtpEmailVerification({
email,
code,
isDataroom,
- logo: logo ?? undefined,
+ logo,
});
try {
diff --git a/lib/redis/brand-logo-cache.ts b/lib/redis/brand-logo-cache.ts
new file mode 100644
index 00000000..d2c805d4
--- /dev/null
+++ b/lib/redis/brand-logo-cache.ts
@@ -0,0 +1,71 @@
+import {
+ type BrandLogoFields,
+ type ResolvedBrandLogo,
+ resolveBrandLogo,
+} from "@/ee/features/branding/lib/brand-logo";
+
+import { redis } from "@/lib/redis";
+
+/**
+ * Mirror of the team's logo decision, so surfaces that only need "what goes in
+ * the logo slot" (currently the OTP verification email) can answer it with one
+ * cache read instead of a Postgres query.
+ *
+ * The logo URL keeps its original key and value shape, so entries written
+ * before the hide setting existed keep resolving correctly. Hiding rides on a
+ * companion key where presence is the whole signal, which means an absent key
+ * reads as "not hidden" and matches the column default.
+ */
+const logoKey = (teamId: string) => `brand:logo:${teamId}`;
+const hideLogoKey = (teamId: string) => `brand:hide-logo:${teamId}`;
+
+export function decodeCachedBrandLogo(
+ logo: unknown,
+ hideLogo: unknown,
+): ResolvedBrandLogo {
+ return resolveBrandLogo({
+ logo: typeof logo === "string" ? logo : null,
+ hideLogo: hideLogo != null,
+ });
+}
+
+export async function readCachedBrandLogo(
+ teamId: string,
+): Promise<ResolvedBrandLogo> {
+ const [logo, hideLogo] = await redis.mget<[unknown, unknown]>(
+ logoKey(teamId),
+ hideLogoKey(teamId),
+ );
+
+ return decodeCachedBrandLogo(logo, hideLogo);
+}
+
+/**
+ * Call with the row the write actually persisted, not the request body: a PUT
+ * that omits `logo` leaves the column untouched, so mirroring the body would
+ * evict a logo that is still set.
+ */
+export async function writeCachedBrandLogo(
+ teamId: string,
+ brand: BrandLogoFields,
+): Promise<void> {
+ const pipeline = redis.pipeline();
+
+ if (brand.logo) {
+ pipeline.set(logoKey(teamId), brand.logo);
+ } else {
+ pipeline.del(logoKey(teamId));
+ }
+
+ if (brand.hideLogo) {
+ pipeline.set(hideLogoKey(teamId), "1");
+ } else {
+ pipeline.del(hideLogoKey(teamId));
+ }
+
+ await pipeline.exec();
+}
+
+export async function clearCachedBrandLogo(teamId: string): Promise<void> {
+ await redis.del(logoKey(teamId), hideLogoKey(teamId));
+}
diff --git a/package.json b/package.json
index e02df7b1..75e5bd98 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
"start": "next start",
"lint": "next lint",
"check:access-form": "tsx scripts/check-access-form-footer.ts",
+ "check:brand-logo": "tsx scripts/check-brand-logo.ts",
"postinstall": "prisma generate",
"vercel-build": "prisma migrate deploy && next build",
"email": "email dev --dir ./components/emails --port 3001",
diff --git a/pages/api/teams/[teamId]/branding.ts b/pages/api/teams/[teamId]/branding.ts
index 24ab838a..6dcb6e7b 100644
--- a/pages/api/teams/[teamId]/branding.ts
+++ b/pages/api/teams/[teamId]/branding.ts
@@ -19,13 +19,17 @@ import {
import { validateRedirectUrl } from "@/lib/api/domains/validate-redirect-url";
import { errorhandler } from "@/lib/errorHandler";
import prisma from "@/lib/prisma";
-import { redis } from "@/lib/redis";
+import {
+ clearCachedBrandLogo,
+ writeCachedBrandLogo,
+} from "@/lib/redis/brand-logo-cache";
import { CustomUser } from "@/lib/types";
import { authOptions } from "../../auth/[...nextauth]";
const updateBrandingSchema = z.object({
logo: z.string().nullable().optional(),
+ hideLogo: z.boolean().optional(),
banner: z.string().nullable().optional(),
brandColor: z.string().nullable().optional(),
accentColor: z.string().nullable().optional(),
@@ -199,6 +203,7 @@ export default async function handle(
where: { teamId },
create: {
logo: body.logo,
+ hideLogo: body.hideLogo ?? false,
banner: body.banner,
brandColor: body.brandColor,
accentColor: body.accentColor,
@@ -228,6 +233,7 @@ export default async function handle(
},
update: {
logo: body.logo,
+ hideLogo: body.hideLogo,
banner: body.banner,
brandColor: body.brandColor,
accentColor: body.accentColor,
@@ -252,11 +258,7 @@ export default async function handle(
},
});
- if (body.logo) {
- await redis.set(`brand:logo:${teamId}`, body.logo);
- } else if (body.logo === null) {
- await redis.del(`brand:logo:${teamId}`);
- }
+ await writeCachedBrandLogo(teamId, brand);
return res.status(200).json(brand);
} else if (req.method === "PUT") {
@@ -324,6 +326,7 @@ export default async function handle(
},
create: {
logo: body.logo,
+ hideLogo: body.hideLogo ?? false,
banner: body.banner,
brandColor: body.brandColor,
accentColor: body.accentColor,
@@ -352,6 +355,7 @@ export default async function handle(
},
update: {
logo: body.logo,
+ hideLogo: body.hideLogo,
banner: body.banner,
brandColor: body.brandColor,
accentColor: body.accentColor,
@@ -380,13 +384,7 @@ export default async function handle(
},
});
- // Update logo in Redis cache
- if (body.logo) {
- await redis.set(`brand:logo:${teamId}`, body.logo);
- } else {
- // If logo is null or undefined, delete the cache
- await redis.del(`brand:logo:${teamId}`);
- }
+ await writeCachedBrandLogo(teamId, brand);
return res.status(200).json(brand);
} else if (req.method === "DELETE") {
@@ -411,8 +409,7 @@ export default async function handle(
where: { teamId },
});
- // Remove logo from Redis cache
- await redis.del(`brand:logo:${teamId}`);
+ await clearCachedBrandLogo(teamId);
return res.status(204).end();
} else {
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/branding.ts b/pages/api/teams/[teamId]/datarooms/[id]/branding.ts
index 03f62068..b0437609 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/branding.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/branding.ts
@@ -27,6 +27,8 @@ import { CustomUser } from "@/lib/types";
const updateDataroomBrandingSchema = z.object({
logo: z.string().nullable().optional(),
+ // Nullable on purpose: null clears the override so the team setting applies.
+ hideLogo: z.boolean().nullable().optional(),
banner: z.string().nullable().optional(),
brandColor: z.string().nullable().optional(),
accentColor: z.string().nullable().optional(),
@@ -231,6 +233,7 @@ export default async function handle(
const brand = await prisma.dataroomBrand.create({
data: {
logo: body.logo ?? undefined,
+ hideLogo: body.hideLogo,
banner: body.banner ?? undefined,
brandColor: body.brandColor ?? undefined,
accentColor: body.accentColor ?? undefined,
@@ -338,6 +341,7 @@ export default async function handle(
},
data: {
logo: body.logo,
+ hideLogo: body.hideLogo,
banner: body.banner,
brandColor: body.brandColor,
accentColor: body.accentColor,
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/duplicate.ts b/pages/api/teams/[teamId]/datarooms/[id]/duplicate.ts
index 6c0c52ef..7cfb7e19 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/duplicate.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/duplicate.ts
@@ -199,6 +199,7 @@ const postHandler = withTeamApi(
? {
create: {
logo: dataroomContents.brand.logo,
+ hideLogo: dataroomContents.brand.hideLogo,
banner: dataroomContents.brand.banner,
brandColor: dataroomContents.brand.brandColor,
accentColor: dataroomContents.brand.accentColor,
diff --git a/pages/api/teams/[teamId]/index.ts b/pages/api/teams/[teamId]/index.ts
index c241f84a..25300b3f 100644
--- a/pages/api/teams/[teamId]/index.ts
+++ b/pages/api/teams/[teamId]/index.ts
@@ -10,7 +10,7 @@ import { removeDomainFromVercelProject } from "@/lib/domains";
import { errorhandler } from "@/lib/errorHandler";
import { deleteFiles } from "@/lib/files/delete-team-files-server";
import prisma from "@/lib/prisma";
-import { redis } from "@/lib/redis";
+import { clearCachedBrandLogo } from "@/lib/redis/brand-logo-cache";
import { CustomUser } from "@/lib/types";
import { unsubscribe } from "@/lib/resend";
@@ -237,7 +237,7 @@ export default async function handle(
},
}),
// delete team branding from redis
- redis.del(`brand:logo:${teamId}`),
+ clearCachedBrandLogo(teamId),
// delete team
prisma.team.delete({
diff --git a/pages/branding.tsx b/pages/branding.tsx
index 739a44da..92f2d496 100644
--- a/pages/branding.tsx
+++ b/pages/branding.tsx
@@ -67,6 +67,7 @@ export default function Branding() {
const [ctaLabel, setCtaLabel] = useState<string>("");
const [ctaUrl, setCtaUrl] = useState<string>("");
const [logo, setLogo] = useState<string | null>(null);
+ const [hideLogo, setHideLogo] = useState<boolean>(false);
const [blobUrl, setBlobUrl] = useState<string | null>(null);
const [banner, setBanner] = useState<string | null>(null);
const [bannerBlobUrl, setBannerBlobUrl] = useState<string | null>(null);
@@ -232,6 +233,7 @@ export default function Branding() {
}
if (data.logo) {
setLogo(data.logo);
+ setHideLogo(false);
setBlobUrl(null);
}
if (hasDataroomAccess && data.banner) {
@@ -290,6 +292,7 @@ export default function Branding() {
reader.onload = (e) => {
const dataUrl = e.target?.result as string;
setLogo(dataUrl);
+ setHideLogo(false);
// create a blob url for preview
const blob = convertDataUrlToFile({ dataUrl });
const blobUrl = URL.createObjectURL(blob);
@@ -355,6 +358,7 @@ export default function Branding() {
(brand as any)?.accentButtonColor || brand.brandColor || "#000000",
);
setLogo(brand.logo || null);
+ setHideLogo(!!brand.hideLogo);
setBanner(brand.banner || null);
setApplyAccentColorToDataroomView(
(brand as any)?.applyAccentColorToDataroomView ?? false,
@@ -404,6 +408,7 @@ export default function Branding() {
setAccentColor("#030712");
setAccentButtonColor("#000000");
setLogo(null);
+ setHideLogo(false);
setBanner(null);
setApplyAccentColorToDataroomView(false);
setCtaEnabled(false);
@@ -512,6 +517,7 @@ export default function Branding() {
accentButtonColor: accentButtonColor,
applyAccentColorToDataroomView,
logo: logoBlobUrl,
+ hideLogo,
ctaLabel: hasBusinessMessagingAccess
? ctaEnabled
? ctaLabel.trim() || null
@@ -610,6 +616,7 @@ export default function Branding() {
revalidate: false,
});
setLogo(null);
+ setHideLogo(false);
setBanner(null);
setBrandColor("#000000");
setAccentColor("#030712");
@@ -813,6 +820,7 @@ export default function Branding() {
reader.onload = (e) => {
const dataUrl = e.target?.result as string;
setLogo(dataUrl);
+ setHideLogo(false);
const blob = convertDataUrlToFile({
dataUrl,
});
@@ -841,7 +849,10 @@ export default function Branding() {
<img
src={logo}
alt="Logo preview"
- className="max-h-full max-w-full object-contain"
+ className={cn(
+ "max-h-full max-w-full object-contain",
+ hideLogo && "opacity-40",
+ )}
/>
</div>
)}
@@ -857,6 +868,30 @@ export default function Branding() {
{fileError && (
<p className="text-sm text-red-500">{fileError}</p>
)}
+ <div className="rounded-md border border-border/70 p-3">
+ <div className="flex items-start space-x-3">
+ <Checkbox
+ id="global-hide-logo"
+ checked={hideLogo}
+ onCheckedChange={(checked) =>
+ setHideLogo(checked === true)
+ }
+ className="mt-0.5"
+ />
+ <div className="space-y-1">
+ <Label
+ htmlFor="global-hide-logo"
+ className="cursor-pointer text-sm font-medium"
+ >
+ Show no logo
+ </Label>
+ <p className="text-xs text-muted-foreground">
+ Visitors see no logo at all, not even the
+ Papermark logo.
+ </p>
+ </div>
+ </div>
+ </div>
</div>
</CardContent>
</Card>
@@ -1637,6 +1672,7 @@ export default function Branding() {
brandColor: debouncedBrandColor,
accentColor: debouncedAccentColor,
brandLogo: blobUrl || logo || "",
+ hideLogo: hideLogo ? "1" : "0",
accentButtonColor: debouncedAccentButtonColor,
ctaLabel: previewCtaLabel,
ctaUrl: previewCtaUrl,
@@ -1658,6 +1694,7 @@ export default function Branding() {
applyAccentColorToDataroomView:
applyAccentColorToDataroomView ? "1" : "0",
brandLogo: blobUrl || logo || "",
+ hideLogo: hideLogo ? "1" : "0",
brandBanner:
banner === "no-banner"
? "no-banner"
diff --git a/pages/datarooms/[id]/branding/index.tsx b/pages/datarooms/[id]/branding/index.tsx
index dcda78a1..0338a5c5 100644
--- a/pages/datarooms/[id]/branding/index.tsx
+++ b/pages/datarooms/[id]/branding/index.tsx
@@ -12,6 +12,7 @@ import {
AUTO_FILL_NOT_FOUND_MESSAGE,
autoFillHasBrandAssets,
} from "@/ee/features/branding/lib/auto-fill-result";
+import { mergeBrandLogoFields } from "@/ee/features/branding/lib/brand-logo";
import {
CARD_LAYOUT_OPTIONS,
type DataroomCardLayout,
@@ -81,6 +82,11 @@ export default function DataroomBrandPage() {
const [applyAccentColorToDataroomView, setApplyAccentColorToDataroomView] =
useState<boolean>(false);
const [logo, setLogo] = useState<string | null>(null);
+ // Null keeps this data room on the team setting. Only an explicit click sends
+ // a boolean, so saving unrelated branding never pins the inherited value.
+ const [hideLogoOverride, setHideLogoOverride] = useState<boolean | null>(
+ null,
+ );
const [banner, setBanner] = useState<string | null>(null);
const [originalBanner, setOriginalBanner] = useState<string | null>(null);
const [blobUrl, setBlobUrl] = useState<string | null>(null);
@@ -98,6 +104,8 @@ export default function DataroomBrandPage() {
null,
);
const [previewTab, setPreviewTab] = useState<string>("dataroom-view");
+ // What visitors of this data room actually get, for the control and previews.
+ const hideLogo = hideLogoOverride ?? Boolean(globalBrand?.hideLogo);
// Layout customization state
const [showFolderTree, setShowFolderTree] = useState<boolean>(true);
@@ -345,6 +353,7 @@ export default function DataroomBrandPage() {
reader.onload = (e) => {
const dataUrl = e.target?.result as string;
setLogo(dataUrl);
+ setHideLogoOverride(false);
// create a blob url for preview
const blob = convertDataUrlToFile({ dataUrl });
const blobUrl = URL.createObjectURL(blob);
@@ -407,7 +416,12 @@ export default function DataroomBrandPage() {
(globalBrand as any)?.applyAccentColorToDataroomView ??
false,
);
- setLogo(dataroomBrand.logo || globalBrand?.logo || null);
+ const logoFields = mergeBrandLogoFields({
+ dataroom: dataroomBrand,
+ team: globalBrand,
+ });
+ setLogo(logoFields.logo);
+ setHideLogoOverride(dataroomBrand.hideLogo ?? null);
const bannerValue = dataroomBrand.banner || globalBrand?.banner || null;
setBanner(bannerValue);
setOriginalBanner(bannerValue);
@@ -471,6 +485,10 @@ export default function DataroomBrandPage() {
hasSeededNullDataroomFromGlobalRef.current = true;
if (globalBrand) {
+ const logoFields = mergeBrandLogoFields({
+ dataroom: null,
+ team: globalBrand,
+ });
setBrandColor(globalBrand.brandColor || "#000000");
setAccentColor(globalBrand.accentColor || "#FFFFFF");
setAccentButtonColor(
@@ -481,7 +499,8 @@ export default function DataroomBrandPage() {
setApplyAccentColorToDataroomView(
(globalBrand as any)?.applyAccentColorToDataroomView ?? false,
);
- setLogo(globalBrand.logo || null);
+ setLogo(logoFields.logo);
+ setHideLogoOverride(null);
const bannerValue = globalBrand.banner || null;
setBanner(bannerValue);
setOriginalBanner(bannerValue);
@@ -542,6 +561,7 @@ export default function DataroomBrandPage() {
setAccentButtonColor("#000000");
setApplyAccentColorToDataroomView(false);
setLogo(null);
+ setHideLogoOverride(null);
setBanner(DEFAULT_BANNER_IMAGE);
setOriginalBanner(DEFAULT_BANNER_IMAGE);
setWelcomeMessage(DEFAULT_WELCOME_MESSAGE);
@@ -665,6 +685,7 @@ export default function DataroomBrandPage() {
accentButtonColor: accentButtonColor,
applyAccentColorToDataroomView,
logo: blobUrl,
+ hideLogo: hideLogoOverride,
banner: bannerBlobUrl,
cardLayout,
showFolderTree,
@@ -761,8 +782,13 @@ export default function DataroomBrandPage() {
const inheritedWelcomeSaved = globalBrand?.welcomeMessage ?? null;
const inheritedWelcomeMessage =
inheritedWelcomeSaved || DEFAULT_WELCOME_MESSAGE;
+ const inheritedLogoFields = mergeBrandLogoFields({
+ dataroom: null,
+ team: globalBrand,
+ });
- setLogo(globalBrand?.logo ?? null);
+ setLogo(inheritedLogoFields.logo);
+ setHideLogoOverride(null);
setBanner(inheritedBanner);
setOriginalBanner(inheritedBanner);
setBrandColor(globalBrand?.brandColor ?? "#000000");
@@ -830,6 +856,7 @@ export default function DataroomBrandPage() {
showFolderTree: showFolderTree ? "1" : "0",
viewerHeaderStyle,
hideFolderIconsInMain: hideFolderIconsInMain ? "1" : "0",
+ hideLogo: hideLogo ? "1" : "0",
};
const logoSrc = blobUrl || logo || "";
if (logoSrc) params.brandLogo = logoSrc;
@@ -991,6 +1018,7 @@ export default function DataroomBrandPage() {
reader.onload = (e) => {
const dataUrl = e.target?.result as string;
setLogo(dataUrl);
+ setHideLogoOverride(false);
const blob = convertDataUrlToFile({
dataUrl,
});
@@ -1019,7 +1047,10 @@ export default function DataroomBrandPage() {
<img
src={logo}
alt="Logo preview"
- className="max-h-full max-w-full object-contain"
+ className={cn(
+ "max-h-full max-w-full object-contain",
+ hideLogo && "opacity-40",
+ )}
/>
</div>
)}
@@ -1035,6 +1066,30 @@ export default function DataroomBrandPage() {
{fileError && (
<p className="text-sm text-red-500">{fileError}</p>
)}
+ <div className="rounded-md border border-border/70 p-3">
+ <div className="flex items-start space-x-3">
+ <Checkbox
+ id="dataroom-hide-logo"
+ checked={hideLogo}
+ onCheckedChange={(checked) =>
+ setHideLogoOverride(checked === true)
+ }
+ className="mt-0.5"
+ />
+ <div className="space-y-1">
+ <Label
+ htmlFor="dataroom-hide-logo"
+ className="cursor-pointer text-sm font-medium"
+ >
+ Show no logo
+ </Label>
+ <p className="text-xs text-muted-foreground">
+ Overrides the team logo setting for this data
+ room.
+ </p>
+ </div>
+ </div>
+ </div>
</div>
</CardContent>
</Card>
@@ -1867,6 +1922,7 @@ export default function DataroomBrandPage() {
brandColor: debouncedBrandColor,
accentColor: debouncedAccentColor,
brandLogo: blobUrl || logo || "",
+ hideLogo: hideLogo ? "1" : "0",
}}
/>
</TabsContent>
diff --git a/pages/nav_ppreview_demo.tsx b/pages/nav_ppreview_demo.tsx
index 5b55320a..2b5418aa 100644
--- a/pages/nav_ppreview_demo.tsx
+++ b/pages/nav_ppreview_demo.tsx
@@ -1,6 +1,8 @@
+import { resolveBrandLogo } from "@/ee/features/branding/lib/brand-logo";
+import { useBrandingPreviewParams } from "@/ee/features/branding/lib/use-branding-preview-params";
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
-import { useBrandingPreviewParams } from "@/ee/features/branding/lib/use-branding-preview-params";
+import { cn } from "@/lib/utils";
import { determineTextColor } from "@/lib/utils/determine-text-color";
export default function ViewPage() {
@@ -8,12 +10,41 @@ export default function ViewPage() {
// the editor never has to reload (and therefore never flashes) this iframe.
const {
brandLogo,
+ hideLogo,
brandColor,
accentColor,
accentButtonColor,
ctaLabel,
ctaUrl,
} = useBrandingPreviewParams();
+ const resolvedBrandLogo = resolveBrandLogo({
+ logo: brandLogo || null,
+ hideLogo: hideLogo === "1",
+ });
+ const renderBrandLogo = () => {
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return (
+ <img
+ className="w-full object-contain"
+ src={resolvedBrandLogo.src}
+ alt="Logo"
+ />
+ );
+ case "papermark":
+ return (
+ <div className="text-2xl font-bold tracking-tighter text-white">
+ Papermark
+ </div>
+ );
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ };
const safeCtaUrl = (() => {
if (!ctaUrl) return null;
@@ -40,18 +71,13 @@ export default function ViewPage() {
<div className="mx-auto px-2 sm:px-6 lg:px-8">
<div className="relative flex h-16 items-center justify-between">
<div className="flex flex-1 items-stretch justify-start">
- <div className="relative flex h-16 w-36 flex-shrink-0 items-center overflow-y-hidden">
- {brandLogo ? (
- <img
- className="w-full object-contain"
- src={brandLogo}
- alt="Logo"
- />
- ) : (
- <div className="text-2xl font-bold tracking-tighter text-white">
- Papermark
- </div>
+ <div
+ className={cn(
+ "relative flex h-16 flex-shrink-0 items-center overflow-y-hidden",
+ resolvedBrandLogo.kind !== "none" && "w-36",
)}
+ >
+ {renderBrandLogo()}
</div>
</div>
<div className="absolute inset-y-0 right-0 flex items-center space-x-4 pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">
diff --git a/pages/room_ppreview_demo.tsx b/pages/room_ppreview_demo.tsx
index 84eded22..51b9f068 100644
--- a/pages/room_ppreview_demo.tsx
+++ b/pages/room_ppreview_demo.tsx
@@ -5,6 +5,7 @@ import {
type DataroomViewerHeaderStyle,
} from "@/ee/features/branding/lib/dataroom-viewer-layout";
import { useBrandingPreviewParams } from "@/ee/features/branding/lib/use-branding-preview-params";
+import { resolveBrandLogo } from "@/ee/features/branding/lib/brand-logo";
import { PlayIcon } from "lucide-react";
@@ -196,6 +197,7 @@ export default function ViewPage({ i18n }: ViewerI18nPageProps) {
// the editor never has to reload (and therefore never flashes) this iframe.
const {
brandLogo,
+ hideLogo,
brandColor,
brandBanner,
accentColor,
@@ -208,6 +210,10 @@ export default function ViewPage({ i18n }: ViewerI18nPageProps) {
viewerHeaderStyle: viewerHeaderStyleParam,
hideFolderIconsInMain: hideFolderIconsMainParam,
} = useBrandingPreviewParams();
+ const resolvedBrandLogo = resolveBrandLogo({
+ logo: brandLogo || null,
+ hideLogo: hideLogo === "1",
+ });
const [previewFolderId, setPreviewFolderId] = useState<string | null>(null);
// Always the same "Example Virtual Data Room" — keeps the preview consistent
@@ -313,18 +319,102 @@ export default function ViewPage({ i18n }: ViewerI18nPageProps) {
const compactPreviewShowUpdated = cardLayout === "COMPACT";
const compactPreviewShowActions = false;
- const renderPrimaryLogo = () =>
- brandLogo ? (
- <img
- className="h-10 w-28 object-contain sm:h-12 sm:w-32"
- src={brandLogo}
- alt="Logo"
- />
- ) : (
- <div className="text-2xl font-bold tracking-tighter text-white">
- Papermark
- </div>
- );
+ const renderPrimaryLogo = (forLightBackground?: boolean) => {
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return (
+ <img
+ className="h-10 w-28 object-contain sm:h-12 sm:w-32"
+ src={resolvedBrandLogo.src}
+ alt="Logo"
+ />
+ );
+ case "papermark":
+ return (
+ <div
+ className={cn(
+ "text-2xl font-bold tracking-tighter",
+ forLightBackground
+ ? "text-neutral-900 dark:text-white"
+ : "text-white",
+ )}
+ >
+ Papermark
+ </div>
+ );
+ case "none":
+ return null;
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ };
+
+ // Without a chip the negative top margin would pull the dataroom name up
+ // over the cover image, so the "none" case drops the overlap entirely.
+ const notionLogo = (() => {
+ const overlapping = {
+ containerClassName:
+ "-mt-10 relative z-10 flex w-full flex-col items-start text-left sm:-mt-12",
+ titleClassName: "mt-4 max-w-3xl text-3xl",
+ };
+ switch (resolvedBrandLogo.kind) {
+ case "custom":
+ return {
+ ...overlapping,
+ // Notion cover logo chip: adaptive background based on the logo's
+ // averaged luminance — dark logos sit in a white box, light/white
+ // logos sit in a black box so they're always visible regardless of
+ // brand colors.
+ chip: (
+ <PreviewNotionLogoChip
+ src={resolvedBrandLogo.src}
+ shouldApplyAccent={shouldApplyAccentToDataroomView}
+ surfacePanelBorderColor={
+ previewSurfaceTheme.palette.panelBorderColor
+ }
+ />
+ ),
+ };
+ case "papermark":
+ return {
+ ...overlapping,
+ chip: (
+ <div
+ className={cn(
+ "flex size-16 items-center justify-center rounded-xl border text-sm font-semibold sm:size-20",
+ shouldApplyAccentToDataroomView
+ ? ""
+ : "border-neutral-200 bg-neutral-900 text-white dark:border-neutral-700 dark:bg-white dark:text-neutral-950",
+ )}
+ style={
+ shouldApplyAccentToDataroomView
+ ? {
+ backgroundColor: previewSurfaceTheme.palette.ctaBgColor,
+ color: previewSurfaceTheme.palette.ctaTextColor,
+ borderColor: previewSurfaceTheme.palette.panelBorderColor,
+ }
+ : undefined
+ }
+ >
+ EX
+ </div>
+ ),
+ };
+ case "none":
+ return {
+ chip: null,
+ containerClassName:
+ "relative z-10 flex w-full flex-col items-start text-left",
+ titleClassName: "max-w-3xl text-3xl",
+ };
+ default: {
+ const _exhaustive: never = resolvedBrandLogo;
+ return _exhaustive;
+ }
+ }
+ })();
return (
// The cards below call `useTranslation` — without an initialized i18n
@@ -393,45 +483,10 @@ export default function ViewPage({ i18n }: ViewerI18nPageProps) {
}
>
<div className={cn(DATAROOM_NAV_PAGE_FRAME, "pb-10 pt-2")}>
- <div className="-mt-10 relative z-10 flex w-full flex-col items-start text-left sm:-mt-12">
- {brandLogo ? (
- // Notion cover logo chip: adaptive background based on the
- // logo's averaged luminance — dark logos sit in a white
- // box, light/white logos sit in a black box so they're
- // always visible regardless of brand colors.
- <PreviewNotionLogoChip
- src={brandLogo}
- shouldApplyAccent={shouldApplyAccentToDataroomView}
- surfacePanelBorderColor={
- previewSurfaceTheme.palette.panelBorderColor
- }
- />
- ) : (
- <div
- className={cn(
- "flex size-16 items-center justify-center rounded-xl border text-sm font-semibold sm:size-20",
- shouldApplyAccentToDataroomView
- ? ""
- : "border-neutral-200 bg-neutral-900 text-white dark:border-neutral-700 dark:bg-white dark:text-neutral-950",
- )}
- style={
- shouldApplyAccentToDataroomView
- ? {
- backgroundColor:
- previewSurfaceTheme.palette.ctaBgColor,
- color:
- previewSurfaceTheme.palette.ctaTextColor,
- borderColor:
- previewSurfaceTheme.palette.panelBorderColor,
- }
- : undefined
- }
- >
- EX
- </div>
- )}
+ <div className={notionLogo.containerClassName}>
+ {notionLogo.chip}
<div
- className="mt-4 max-w-3xl text-3xl"
+ className={notionLogo.titleClassName}
style={
shouldApplyAccentToDataroomView
? { color: previewSurfaceTheme.palette.textColor }
@@ -459,17 +514,7 @@ export default function ViewPage({ i18n }: ViewerI18nPageProps) {
<div className={cn(DATAROOM_NAV_PAGE_FRAME, "pt-4")}>
<div className="flex items-center justify-between gap-2 border-b border-[var(--viewer-panel-border)] pb-2">
<div className="relative flex min-h-14 shrink-0 items-center">
- {brandLogo ? (
- <img
- className="h-10 w-28 object-contain sm:h-12 sm:w-32"
- src={brandLogo}
- alt="Logo"
- />
- ) : (
- <div className="text-2xl font-bold tracking-tighter text-neutral-900 dark:text-white">
- Papermark
- </div>
- )}
+ {renderPrimaryLogo(true)}
</div>
<div className="flex min-w-0 shrink items-center justify-end gap-2">
{showNavCta ? (
diff --git a/prisma/migrations/20260803000000_add_hide_logo_to_branding/migration.sql b/prisma/migrations/20260803000000_add_hide_logo_to_branding/migration.sql
new file mode 100644
index 00000000..6dc8ce14
--- /dev/null
+++ b/prisma/migrations/20260803000000_add_hide_logo_to_branding/migration.sql
@@ -0,0 +1,5 @@
+-- AlterTable
+ALTER TABLE "Brand" ADD COLUMN "hideLogo" BOOLEAN NOT NULL DEFAULT false;
+
+-- AlterTable
+ALTER TABLE "DataroomBrand" ADD COLUMN "hideLogo" BOOLEAN;
diff --git a/prisma/schema/dataroom.prisma b/prisma/schema/dataroom.prisma
index e68acbd1..eaf6fee2 100644
--- a/prisma/schema/dataroom.prisma
+++ b/prisma/schema/dataroom.prisma
@@ -284,6 +284,7 @@ model DataroomFolder {
model DataroomBrand {
id String @id @default(cuid())
logo String? // This should be a reference to where the file is stored (S3, Google Cloud Storage, etc.)
+ hideLogo Boolean? // null inherits the team-level Brand.hideLogo
banner String? // This should be a reference to where the file is stored (S3, Google Cloud Storage, etc.)
brandColor String? // This should be a reference to the brand color
accentColor String? // This should be a reference to the accent color (front-page background)
diff --git a/prisma/schema/schema.prisma b/prisma/schema/schema.prisma
index 60d68a68..41fd3e36 100644
--- a/prisma/schema/schema.prisma
+++ b/prisma/schema/schema.prisma
@@ -88,6 +88,7 @@ model User {
model Brand {
id String @id @default(cuid())
logo String? // This should be a reference to where the file is stored (S3, Google Cloud Storage, etc.)
+ hideLogo Boolean @default(false) // Show no logo at all in the viewer, not even the Papermark fallback
banner String? // Banner image for dataroom view (fallback)
brandColor String? // This should be a reference to the brand color
accentColor String? // This should be a reference to the accent color (front-page background)