Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(ui): match Anthropic and OpenAI logos across themes (#8248)

Andrew Huang4c975486e144
diff --git a/frontend/public/images/integrations/Anthropic.on-dark.svg b/frontend/public/images/integrations/Anthropic.on-dark.svg
new file mode 100644
index 0000000000..cc8b904630
--- /dev/null
+++ b/frontend/public/images/integrations/Anthropic.on-dark.svg
@@ -0,0 +1 @@
+<svg fill="#ffffff" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"/></svg>
diff --git a/frontend/public/images/integrations/Anthropic.png b/frontend/public/images/integrations/Anthropic.png
index 8a3551f5ab..2650443be1 100644
Binary files a/frontend/public/images/integrations/Anthropic.png and b/frontend/public/images/integrations/Anthropic.png differ
diff --git a/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts
index de8e0d4b0f..354816aad4 100644
--- a/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts
+++ b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts
@@ -2,11 +2,13 @@ import { type ResolvedTheme } from "../ThemeProvider";
type ProviderIconVariants = {
onLight?: string;
+ onDark?: string;
};
export const PROVIDER_ICON_VARIANTS: Record<string, ProviderIconVariants> = {
"Ab Initio.png": { onLight: "Ab Initio.on-light.png" },
"Amazon Web Services.png": { onLight: "Amazon Web Services.on-light.png" },
+ "Anthropic.png": { onDark: "Anthropic.on-dark.svg" },
"DatadogWhite.png": { onLight: "Datadog.png" },
"Express.png": { onLight: "Express.on-light.png" },
"GitHub.png": { onLight: "GitHub.on-light.png" },
@@ -14,6 +16,7 @@ export const PROVIDER_ICON_VARIANTS: Record<string, ProviderIconVariants> = {
"Infisical.png": { onLight: "Infisical.on-light.png" },
"Next.js.png": { onLight: "Next.js.on-light.png" },
"Nutanix.png": { onLight: "Nutanix.on-light.png" },
+ "OpenAI.png": { onDark: "OpenAIWhite.png" },
"OpenAIWhite.png": { onLight: "OpenAI.png" },
"Railway.png": { onLight: "Railway.on-light.png" },
"Remix.png": { onLight: "Remix.on-light.png" },
@@ -22,6 +25,7 @@ export const PROVIDER_ICON_VARIANTS: Record<string, ProviderIconVariants> = {
};
export const getProviderIconPath = (icon: string, theme: ResolvedTheme) => {
- const variant = theme === "light" ? PROVIDER_ICON_VARIANTS[icon]?.onLight : undefined;
+ const variants = PROVIDER_ICON_VARIANTS[icon];
+ const variant = theme === "light" ? variants?.onLight : variants?.onDark;
return `/images/integrations/${variant ?? icon}`;
};