Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

add dark and light logos for more storage providers (#8476)

Shahmir Varqha3d18b7cf006e
diff --git a/frontend/src/components/storage/components.tsx b/frontend/src/components/storage/components.tsx
index d201cae590..24e0644364 100644
--- a/frontend/src/components/storage/components.tsx
+++ b/frontend/src/components/storage/components.tsx
@@ -1,7 +1,11 @@
/* Copyright 2026 Marimo. All rights reserved. */
import AwsIcon from "@marimo-team/llm-info/icons/aws.svg?inline";
+import AwsDarkIcon from "@marimo-team/llm-info/icons/aws-dark.svg?inline";
import AzureIcon from "@marimo-team/llm-info/icons/azure.svg?inline";
+import CloudflareIcon from "@marimo-team/llm-info/icons/cloudflare.svg?inline";
+import CoreweaveIcon from "@marimo-team/llm-info/icons/coreweave.svg?inline";
+import CoreweaveDarkIcon from "@marimo-team/llm-info/icons/coreweave-dark.svg?inline";
import {
DatabaseZapIcon,
FileCodeIcon,
@@ -15,6 +19,7 @@ import {
} from "lucide-react";
import GoogleCloudIcon from "@/components/databases/icons/google-cloud-storage.svg?inline";
import type { KnownStorageProtocol } from "@/core/storage/types";
+import { useTheme } from "@/theme/useTheme";
export function renderFileIcon(name: string): React.ReactNode {
const ext = name.split(".").pop()?.toLowerCase();
@@ -48,26 +53,34 @@ export function renderFileIcon(name: string): React.ReactNode {
}
}
-const PROTOCOL_ICONS: Record<
- KnownStorageProtocol,
- string | React.ComponentType<{ className?: string }>
-> = {
- s3: AwsIcon,
- azure: AzureIcon,
- gcs: GoogleCloudIcon,
+type IconEntry =
+ | { src: string; dark?: string }
+ | React.ComponentType<{ className?: string }>;
+
+const PROTOCOL_ICONS: Record<KnownStorageProtocol, IconEntry> = {
+ s3: { src: AwsIcon, dark: AwsDarkIcon },
+ coreweave: { src: CoreweaveIcon, dark: CoreweaveDarkIcon },
+ cloudflare: { src: CloudflareIcon },
+ azure: { src: AzureIcon },
+ gcs: { src: GoogleCloudIcon },
http: GlobeIcon,
file: HardDriveIcon,
"in-memory": DatabaseZapIcon,
-} as const;
+};
-export function renderProtocolIcon(
- protocol: KnownStorageProtocol | (string & {}),
-): React.ReactNode {
- const Icon =
+export const ProtocolIcon: React.FC<{
+ protocol: KnownStorageProtocol | (string & {});
+}> = ({ protocol }) => {
+ const { theme } = useTheme();
+ const entry =
PROTOCOL_ICONS[protocol.toLowerCase() as KnownStorageProtocol] ??
HardDriveIcon;
- if (typeof Icon === "string") {
- return <img src={Icon} alt={protocol} className="h-3.5 w-3.5" />;
+
+ if ("src" in entry) {
+ const src = theme === "dark" && entry.dark ? entry.dark : entry.src;
+ return <img src={src} alt={protocol} className="h-3.5 w-3.5" />;
}
+
+ const Icon = entry;
return <Icon className="h-3.5 w-3.5" />;
-}
+};
diff --git a/frontend/src/components/storage/storage-inspector.tsx b/frontend/src/components/storage/storage-inspector.tsx
index 31851703cf..5764b5b747 100644
--- a/frontend/src/components/storage/storage-inspector.tsx
+++ b/frontend/src/components/storage/storage-inspector.tsx
@@ -46,7 +46,7 @@ import { formatBytes } from "@/utils/formatting";
import { Logger } from "@/utils/Logger";
import { ErrorState } from "../datasources/components";
import { Button } from "../ui/button";
-import { renderFileIcon, renderProtocolIcon } from "./components";
+import { ProtocolIcon, renderFileIcon } from "./components";
// Pixels per depth level. Applied as paddingLeft on each full-width item
// so the selection highlight still spans the entire panel.
@@ -408,7 +408,7 @@ const StorageNamespaceSection: React.FC<{
isExpanded && "rotate-90",
)}
/>
- {renderProtocolIcon(namespace.protocol)}
+ <ProtocolIcon protocol={namespace.protocol} />
<span>{namespace.displayName}</span>
{namespace.name && (
<span className="text-xs text-muted-foreground font-normal">
diff --git a/frontend/src/core/storage/types.ts b/frontend/src/core/storage/types.ts
index 824ff68925..ab6d1545c2 100644
--- a/frontend/src/core/storage/types.ts
+++ b/frontend/src/core/storage/types.ts
@@ -50,6 +50,8 @@ export type KnownStorageProtocol =
| "s3"
| "gcs"
| "azure"
+ | "coreweave"
+ | "cloudflare"
| "http"
| "file"
| "in-memory";
diff --git a/packages/llm-info/icons/aws-dark.svg b/packages/llm-info/icons/aws-dark.svg
new file mode 100644
index 0000000000..711a93ad6c
--- /dev/null
+++ b/packages/llm-info/icons/aws-dark.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="Layer_1" x="0" y="0" version="1.1" viewBox="0.02 102.6 511.9 306.4"><style>.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#f90}</style><path d="M144.3 214.1c0 6.3.7 11.4 1.9 15.2 1.4 3.7 3.1 7.8 5.4 12.3.9 1.4 1.2 2.7 1.2 3.9 0 1.7-1 3.4-3.2 5.1l-10.7 7.2c-1.5 1-3.1 1.5-4.4 1.5-1.7 0-3.4-.9-5.1-2.4-2.4-2.6-4.4-5.3-6.1-8-1.7-2.9-3.4-6.1-5.3-10-13.3 15.7-30 23.5-50.1 23.5-14.3 0-25.7-4.1-34.1-12.3-8.3-8.2-12.6-19.1-12.6-32.7 0-14.5 5.1-26.2 15.5-35.1S60.8 169 78.4 169c5.8 0 11.7.5 18.1 1.4s12.8 2.2 19.6 3.7v-12.4c0-12.9-2.7-22-8-27.2-5.4-5.3-14.6-7.8-27.8-7.8-6 0-12.1.7-18.4 2.2s-12.4 3.4-18.4 5.8c-2.7 1.2-4.8 1.9-6 2.2s-2 .5-2.7.5c-2.4 0-3.6-1.7-3.6-5.3v-8.3c0-2.7.3-4.8 1.2-6s2.4-2.4 4.8-3.6c6-3.1 13.1-5.6 21.5-7.7 8.3-2.2 17.2-3.2 26.6-3.2 20.3 0 35.1 4.6 44.6 13.8 9.4 9.2 14.1 23.2 14.1 41.9v55.2h.3zM75.2 240c5.6 0 11.4-1 17.5-3.1 6.1-2 11.6-5.8 16.2-10.9 2.7-3.2 4.8-6.8 5.8-10.9s1.7-9 1.7-14.8v-7.2c-4.9-1.2-10.2-2.2-15.7-2.9-5.4-.7-10.7-1-16-1-11.4 0-19.8 2.2-25.4 6.8S51 207.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11.1 1.9 3.4.9 6.6 1.7 9.7 2.7s5.4 2 7.2 3.1c2.4 1.4 4.1 2.7 5.1 4.3 1 1.4 1.5 3.2 1.5 5.6v8c0 3.6-1.4 5.4-3.9 5.4-1.4 0-3.6-.7-6.5-2q-14.55-6.6-32.7-6.6c-9.7 0-17.4 1.5-22.6 4.8s-8 8.2-8 15.2c0 4.8 1.7 8.9 5.1 12.1s9.7 6.5 18.7 9.4l24.2 7.7c12.3 3.9 21.1 9.4 26.4 16.3s7.8 15 7.8 23.8c0 7.3-1.5 14-4.4 19.8-3.1 5.8-7.2 10.9-12.4 15-5.3 4.3-11.6 7.3-18.9 9.5-8 2.5-16 3.7-24.7 3.7" style="fill:#fff"/><path fill="#fff" d="M462.9 345.7c-56 41.4-137.4 63.3-207.4 63.3-98.1 0-186.5-36.3-253.2-96.6-5.3-4.8-.5-11.2 5.8-7.5 72.2 41.9 161.3 67.3 253.4 67.3 62.2 0 130.4-12.9 193.3-39.5 9.3-4.2 17.3 6.2 8.1 13" class="st1"/><path fill="#fff" d="M486.2 319.2c-7.2-9.2-47.3-4.4-65.6-2.2-5.4.7-6.3-4.1-1.4-7.7 32-22.5 84.6-16 90.8-8.5 6.1 7.7-1.7 60.3-31.7 85.5-4.6 3.9-9 1.9-7-3.2 6.9-16.9 22.1-54.9 14.9-63.9" class="st1"/></svg>
\ No newline at end of file
diff --git a/packages/llm-info/icons/cloudflare.svg b/packages/llm-info/icons/cloudflare.svg
new file mode 100644
index 0000000000..d014bdce06
--- /dev/null
+++ b/packages/llm-info/icons/cloudflare.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#FFF" d="m115.679 69.288-15.591-8.94-2.689-1.163-63.781.436v32.381h82.061z"/><path fill="#F38020" d="M87.295 89.022c.763-2.617.472-5.015-.8-6.796-1.163-1.635-3.125-2.58-5.488-2.689l-44.737-.581c-.291 0-.545-.145-.691-.363s-.182-.509-.109-.8c.145-.436.581-.763 1.054-.8l45.137-.581c5.342-.254 11.157-4.579 13.192-9.885l2.58-6.723c.109-.291.145-.581.073-.872-2.906-13.158-14.644-22.97-28.672-22.97-12.938 0-23.913 8.359-27.838 19.952a13.35 13.35 0 0 0-9.267-2.58c-6.215.618-11.193 5.597-11.811 11.811-.145 1.599-.036 3.162.327 4.615C10.104 70.051 2 78.337 2 88.549c0 .909.073 1.817.182 2.726a.895.895 0 0 0 .872.763h82.57c.472 0 .909-.327 1.054-.8l.617-2.216z"/><path fill="#FAAE40" d="M101.542 60.275c-.4 0-.836 0-1.236.036-.291 0-.545.218-.654.509l-1.744 6.069c-.763 2.617-.472 5.015.8 6.796 1.163 1.635 3.125 2.58 5.488 2.689l9.522.581c.291 0 .545.145.691.363.145.218.182.545.109.8-.145.436-.581.763-1.054.8l-9.924.582c-5.379.254-11.157 4.579-13.192 9.885l-.727 1.853c-.145.363.109.727.509.727h34.089c.4 0 .763-.254.872-.654.581-2.108.909-4.325.909-6.614 0-13.447-10.975-24.422-24.458-24.422"/></svg>
\ No newline at end of file
diff --git a/packages/llm-info/icons/coreweave-dark.svg b/packages/llm-info/icons/coreweave-dark.svg
new file mode 100644
index 0000000000..9d4d0c946b
--- /dev/null
+++ b/packages/llm-info/icons/coreweave-dark.svg
@@ -0,0 +1,18 @@
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 224.09 161.1" width="224.09" height="161.1">
+ <defs>
+ <style>
+ .cls-1, .cls-2 {
+ fill: #fff;
+ stroke-width: 0px;
+ }
+
+ .cls-2 {
+ fill-rule: evenodd;
+ }
+ </style>
+ </defs>
+ <path class="cls-2" d="M92.1,112.3h-27.07c-1.65,0-3.3-.99-4.29-2.64l-12.55-22.47c-.66-1.65-.66-3.3,0-4.62l12.55-22.47c.99-1.65,2.64-2.64,4.29-2.64h15.52c1.65,0,3.3-.99,4.29-2.64l11.23-20.16c.99-1.65-.33-3.63-1.98-3.63h-41.6c-3.63,0-6.6,1.98-8.58,4.96l-24.76,44.28c-1.65,2.97-1.65,6.61,0,9.58l24.76,43.94c1.65,2.97,4.95,4.96,8.58,4.96h53.15c1.98,0,2.97-1.98,1.98-3.64l-11.55-20.49c-.33-1.65-1.98-2.31-3.96-2.31Z"></path>
+ <path class="cls-1" d="M165.4,50.51l-10.57-17.84c-.99-1.65-3.3-1.65-4.29,0l-44.57,79.3c-.66,1.65-.66,3.3,0,4.63l11.55,20.82c.99,1.65,3.3,1.65,4.29,0l43.58-77.32c1.65-2.97,1.65-6.61,0-9.58Z"></path>
+ <path class="cls-2" d="M111.58,86.86l13.21-23.46c.66-1.32.66-3.3,0-4.96l-15.19-26.1c-.99-1.65-3.3-1.65-4.29,0l-12.88,22.8c-.66,1.32-.66,3.3,0,4.63l14.86,26.76c.99,1.98,3.63,1.98,4.29.33Z"></path>
+ <path class="cls-1" d="M204.35,50.51l-10.57-17.84c-.99-1.65-3.3-1.65-4.29,0l-44.57,79.3c-.66,1.65-.66,3.3,0,4.63l11.89,20.82c.99,1.65,3.3,1.65,4.29,0l43.58-77.32c1.65-2.97,1.65-6.61-.33-9.58Z"></path>
+</svg>
\ No newline at end of file
diff --git a/packages/llm-info/icons/coreweave.svg b/packages/llm-info/icons/coreweave.svg
new file mode 100644
index 0000000000..e4757dcb3c
--- /dev/null
+++ b/packages/llm-info/icons/coreweave.svg
@@ -0,0 +1,18 @@
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 224.09 161.1" width="224.09" height="161.1" >
+ <defs>
+ <style>
+ .cls-1, .cls-2 {
+ fill: #000;
+ stroke-width: 0px;
+ }
+
+ .cls-2 {
+ fill-rule: evenodd;
+ }
+ </style>
+ </defs>
+ <path class="cls-2" d="M92.1,112.3h-27.07c-1.65,0-3.3-.99-4.29-2.64l-12.55-22.47c-.66-1.65-.66-3.3,0-4.62l12.55-22.47c.99-1.65,2.64-2.64,4.29-2.64h15.52c1.65,0,3.3-.99,4.29-2.64l11.23-20.16c.99-1.65-.33-3.63-1.98-3.63h-41.6c-3.63,0-6.6,1.98-8.58,4.96l-24.76,44.28c-1.65,2.97-1.65,6.61,0,9.58l24.76,43.94c1.65,2.97,4.95,4.96,8.58,4.96h53.15c1.98,0,2.97-1.98,1.98-3.64l-11.55-20.49c-.33-1.65-1.98-2.31-3.96-2.31Z"/>
+ <path class="cls-1" d="M165.4,50.51l-10.57-17.84c-.99-1.65-3.3-1.65-4.29,0l-44.57,79.3c-.66,1.65-.66,3.3,0,4.63l11.55,20.82c.99,1.65,3.3,1.65,4.29,0l43.58-77.32c1.65-2.97,1.65-6.61,0-9.58Z"/>
+ <path class="cls-2" d="M111.58,86.86l13.21-23.46c.66-1.32.66-3.3,0-4.96l-15.19-26.1c-.99-1.65-3.3-1.65-4.29,0l-12.88,22.8c-.66,1.32-.66,3.3,0,4.63l14.86,26.76c.99,1.98,3.63,1.98,4.29.33Z"/>
+ <path class="cls-1" d="M204.35,50.51l-10.57-17.84c-.99-1.65-3.3-1.65-4.29,0l-44.57,79.3c-.66,1.65-.66,3.3,0,4.63l11.89,20.82c.99,1.65,3.3,1.65,4.29,0l43.58-77.32c1.65-2.97,1.65-6.61-.33-9.58Z"/>
+</svg>
\ No newline at end of file