Docker Logo
DockerLogo is a single-path SVG logo of the Docker whale carrying containers, rendered in Docker's brand blue (#2496ED). It accepts a className for sizing and styling, and includes an accessible title of "Docker".


shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @elements in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { DockerLogo } from "@/components/logos/docker"export function Example() { return <DockerLogo className="size-6" />}- Showing the Docker brand in a tech stack, integrations list, or footer of a developer tool or DevOps product.
- Labeling a container, Kubernetes, or CI/CD feature with a recognizable Docker icon in a card, sidebar, or table.
- Placing a compact brand mark in a 'powered by' or partner logo strip where a single flat blue icon is needed.
Examples
Default icon
Renders the Docker logo with the default icon variant and dark mode color, sized with a Tailwind class.
import { DockerLogo } from "@/components/logos/docker"export function DefaultDockerLogo() { return <DockerLogo className="size-8" />}Integration list item
Uses the logo next to a label in a list of supported integrations.
import { DockerLogo } from "@/components/logos/docker"export function IntegrationItem() { return ( <div className="flex items-center gap-2"> <DockerLogo className="size-5" /> <span className="text-sm font-medium">Docker</span> </div> )}Explicit light mode
Passes mode="light" explicitly. Because both modes share the same color, the output is identical to dark mode.
import { DockerLogo } from "@/components/logos/docker"export function LightDockerLogo() { return <DockerLogo mode="light" className="h-10 w-10" />}API reference
Accessibility
- The root <svg> has role="img" and a <title>Docker</title> child, so assistive technology announces it as "Docker".
- To make the logo decorative when the surrounding text already names Docker, wrap it in an element with aria-hidden="true". The component does not accept aria props, so this must be done on a wrapper.
- Because the logo is one flat color, it is not dependent on color perception for meaning, but ensure sufficient contrast of #2496ED against its background if it is used as informative content.
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.
Use the "Docker Logo" component (elements/docker-logo) from its shadcn registry.1. Install it with: npx shadcn@latest add @elements/docker-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 { DockerLogo } from "@/components/logos/docker"export function Example() { return <DockerLogo className="size-6" />}```Files & dependencies
- registry/default/blocks/logos/docker-logo/components/logos/docker.tsx