Python Logo

A Python programming language logo rendered as an inline SVG React component, with a blue and yellow two-snake mark. It accepts className, variant, and mode props, but the current source does not change its appearance based on them.

uiProgramminglogobrandregistry-item.json
Python Logo
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @elements/python-logo

Requires @elements in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { PythonLogo } from "@/components/logos/python"export default function Example() {  return <PythonLogo className="size-8" />}
  • Showing Python as a technology, language, or supported stack in a tech-stack, integrations, or 'built with' section.
  • Placing a brand mark in a footer, partner logo grid, or documentation sidebar next to other language logos.
  • Labeling a Python-related course, package, tutorial, or code example card with a recognizable icon.
  • Using an inline, dependency-free SVG icon that scales crisply and needs no image request.

Examples

Tech stack list item

Shows Python with a label in a row of supported technologies.

tech-stack-list-item.tsx
import { PythonLogo } from "@/components/logos/python"export function TechStackItem() {  return (    <div className="flex items-center gap-2 text-sm font-medium">      <PythonLogo className="size-5" />      <span>Python</span>    </div>  )}

Integration card

Uses the logo as the icon in a feature card for a Python SDK.

integration-card.tsx
import { PythonLogo } from "@/components/logos/python"export function PythonSdkCard() {  return (    <div className="rounded-lg border p-6">      <PythonLogo className="mb-4 size-10" />      <h3 className="text-lg font-semibold">Python SDK</h3>      <p className="text-muted-foreground text-sm">Install with pip and start in minutes.</p>    </div>  )}

Partner logo grid

Renders several language logos in a responsive grid with a shared size.

partner-logo-grid.tsx
import { PythonLogo } from "@/components/logos/python"export function LanguageLogos() {  return (    <div className="grid grid-cols-4 items-center gap-6 opacity-80">      <PythonLogo className="h-12 w-12" />      <PythonLogo className="h-12 w-12" />      <PythonLogo className="h-12 w-12" />      <PythonLogo className="h-12 w-12" />    </div>  )}

API reference

PropTypeDefaultDescription
classNamestring—Applied directly to the root svg element. Use it to set size (for example size-8 or h-6 w-6) and spacing.
variant"icon""icon"Declared in the source as the only variant. It is destructured but not used in rendering, so it does not change the output.
mode"dark" | "light""dark"Declared in the source for dark and light modes. It is destructured but not used in rendering, so the colors stay the same in both modes.

Accessibility

  • The svg has role="img" and a <title>Python</title>, so screen readers announce it as 'Python'.
  • If the logo is decorative because the adjacent text already names Python, add aria-hidden="true" through a wrapper, or wrap it in a span with aria-hidden. The component does not forward extra props, so use a wrapper element.
  • The component has no built-in focus or click behavior. If it is inside a link, make sure the link has an accessible name.
  • The gradient ids are fixed (python-blue and python-yellow), so rendering many instances on one page reuses the same ids. This is harmless because the gradients are identical, but avoid relying on them as unique DOM ids.
  • Colors are fixed in the source and do not adapt to theme, so check contrast when placing the logo on a dark or colored background.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Python Logo" component (elements/python-logo) from its shadcn registry.1. Install it with: npx shadcn@latest add @elements/python-logo2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: className, variant, mode.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { PythonLogo } from "@/components/logos/python"export default function Example() {  return <PythonLogo className="size-8" />}```

Files & dependencies

  • registry/default/blocks/logos/python-logo/components/logos/python.tsx

Looks similar, elsewhere