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.

fix(frontend): replace deprecated lucide-react brand icons (#10006)

Kiran Gadhave6e8c2b5f8e79
diff --git a/frontend/src/components/editor/actions/useNotebookActions.tsx b/frontend/src/components/editor/actions/useNotebookActions.tsx
index f9535e1a55..e5502e7d06 100644
--- a/frontend/src/components/editor/actions/useNotebookActions.tsx
+++ b/frontend/src/components/editor/actions/useNotebookActions.tsx
@@ -21,7 +21,6 @@ import {
Files,
FileTextIcon,
FolderDownIcon,
- GithubIcon,
GlobeIcon,
HardDrive,
Home,
@@ -39,7 +38,6 @@ import {
SparklesIcon,
Undo2Icon,
XCircleIcon,
- YoutubeIcon,
ZapIcon,
} from "lucide-react";
import {
@@ -47,7 +45,9 @@ import {
useOpenSettingsToTab,
} from "@/components/app-config/state";
import { MarkdownIcon } from "@/components/editor/cell/code/icons";
+import { GitHubIcon } from "@/components/icons/github";
import { MarimoPlusIcon } from "@/components/icons/marimo-icons";
+import { YouTubeIcon } from "@/components/icons/youtube";
import { useImperativeModal } from "@/components/modal/ImperativeModal";
import { renderShortcut } from "@/components/shortcuts/renderShortcut";
import { PairWithAgentModal } from "@/components/editor/actions/pair-with-agent-modal";
@@ -655,7 +655,7 @@ export function useNotebookActions() {
},
},
{
- icon: <GithubIcon size={14} strokeWidth={1.5} />,
+ icon: <GitHubIcon className="h-3.5 w-3.5" />,
label: "GitHub",
handle: () => {
window.open(Constants.githubPage, "_blank");
@@ -669,7 +669,7 @@ export function useNotebookActions() {
},
},
{
- icon: <YoutubeIcon size={14} strokeWidth={1.5} />,
+ icon: <YouTubeIcon className="h-3.5 w-3.5" />,
label: "YouTube",
handle: () => {
window.open(Constants.youtube, "_blank");
diff --git a/frontend/src/components/home/components.tsx b/frontend/src/components/home/components.tsx
index 03ebcc4ff5..c8ed185254 100644
--- a/frontend/src/components/home/components.tsx
+++ b/frontend/src/components/home/components.tsx
@@ -9,7 +9,6 @@ import {
DatabaseIcon,
FileIcon,
FileTextIcon,
- GithubIcon,
GraduationCapIcon,
GridIcon,
LayoutIcon,
@@ -17,10 +16,11 @@ import {
MessagesSquareIcon,
OrbitIcon,
PackageIcon,
- YoutubeIcon,
} from "lucide-react";
import type React from "react";
import { MarkdownIcon } from "@/components/editor/cell/code/icons";
+import { GitHubIcon } from "@/components/icons/github";
+import { YouTubeIcon } from "@/components/icons/youtube";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
@@ -130,7 +130,7 @@ const RESOURCES = [
{
title: "GitHub",
description: "View source code, report issues, or contribute",
- icon: GithubIcon,
+ icon: GitHubIcon,
url: Constants.githubPage,
},
{
@@ -148,7 +148,7 @@ const RESOURCES = [
{
title: "YouTube",
description: "Watch tutorials and demos",
- icon: YoutubeIcon,
+ icon: YouTubeIcon,
url: Constants.youtube,
},
{
diff --git a/frontend/src/components/icons/github.tsx b/frontend/src/components/icons/github.tsx
new file mode 100644
index 0000000000..66974834a7
--- /dev/null
+++ b/frontend/src/components/icons/github.tsx
@@ -0,0 +1,21 @@
+/* Copyright 2026 Marimo. All rights reserved. */
+import type { SVGProps } from "react";
+
+// Artwork from Simple Icons (https://simpleicons.org/?q=github), licensed CC0 1.0.
+// The GitHub name and logo are trademarks of GitHub, Inc.
+export const GitHubIcon = (props: SVGProps<SVGSVGElement>) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="1em"
+ height="1em"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ aria-hidden="true"
+ focusable="false"
+ {...props}
+ >
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
+ </svg>
+ );
+};
diff --git a/frontend/src/components/icons/youtube.tsx b/frontend/src/components/icons/youtube.tsx
new file mode 100644
index 0000000000..ae34d47610
--- /dev/null
+++ b/frontend/src/components/icons/youtube.tsx
@@ -0,0 +1,21 @@
+/* Copyright 2026 Marimo. All rights reserved. */
+import type { SVGProps } from "react";
+
+// Artwork from Simple Icons (https://simpleicons.org/?q=youtube), licensed CC0 1.0.
+// The YouTube name and logo are trademarks of Google LLC.
+export const YouTubeIcon = (props: SVGProps<SVGSVGElement>) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="1em"
+ height="1em"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ aria-hidden="true"
+ focusable="false"
+ {...props}
+ >
+ <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
+ </svg>
+ );
+};
diff --git a/frontend/src/components/storage/components.tsx b/frontend/src/components/storage/components.tsx
index 6c2c6ff99e..5d87c1d90c 100644
--- a/frontend/src/components/storage/components.tsx
+++ b/frontend/src/components/storage/components.tsx
@@ -6,14 +6,10 @@ 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,
- GithubIcon,
- GlobeIcon,
- HardDriveIcon,
-} from "lucide-react";
+import { DatabaseZapIcon, GlobeIcon, HardDriveIcon } from "lucide-react";
import GoogleCloudIcon from "@/components/databases/icons/google-cloud-storage.svg?inline";
import GoogleDriveIcon from "@/components/databases/icons/google-drive.svg?inline";
+import { GitHubIcon } from "@/components/icons/github";
import type { KnownStorageProtocol } from "@/core/storage/types";
import { useTheme } from "@/theme/useTheme";
import { cn } from "@/utils/cn";
@@ -32,7 +28,7 @@ const PROTOCOL_ICONS: Record<KnownStorageProtocol, IconEntry> = {
file: HardDriveIcon,
"in-memory": DatabaseZapIcon,
gdrive: { src: GoogleDriveIcon },
- github: GithubIcon,
+ github: GitHubIcon,
};
export const ProtocolIcon: React.FC<{