Dify Logo
DifyLogo is an SVG brand mark for the Dify AI platform that renders as a monochrome icon, a blue colored icon, a wordmark, or a fallback logo. It accepts a mode prop that switches the monochrome variants between white (dark) and black (light) fills.


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 { DifyLogo } from "@/components/logos/dify"export default function Example() { return <DifyLogo variant="wordmark" mode="light" className="h-6 w-auto" />}- Showing the Dify brand in an AI tool's header, sidebar, footer, or 'powered by' badge
- Choosing between a compact icon and a full wordmark depending on available width
- Switching between white-on-dark and black-on-light marks to match the surrounding theme
- Using the blue icon-color variant for brand-accent placements on light backgrounds
Examples
Icon in a dark header
Compact icon-only mark in a dark-themed navigation bar, using the default variant and mode.
import { DifyLogo } from "@/components/logos/dify"export function HeaderBrand() { return ( <div className="flex items-center gap-2 bg-black p-3"> <DifyLogo className="size-6" /> </div> )}Wordmark on a light page footer
Full wordmark in light mode for a footer with a 'powered by' label.
import { DifyLogo } from "@/components/logos/dify"export function FooterCredit() { return ( <footer className="flex items-center gap-2 p-4 text-sm text-neutral-600"> <span>Powered by</span> <DifyLogo variant="wordmark" mode="light" className="h-4 w-auto" /> </footer> )}Blue brand accent
Colored icon used as an accent beside a product title; mode has no effect on this variant.
import { DifyLogo } from "@/components/logos/dify"export function ProductTitle() { return ( <h1 className="flex items-center gap-3 text-2xl font-semibold"> <DifyLogo variant="icon-color" className="size-8" /> Dify Studio </h1> )}API reference
Accessibility
- Each svg has role="img", so assistive technologies treat it as a single image rather than a set of paths.
- The embedded <title> is hardcoded to "Dify", which provides the accessible name; there is no aria-label or title prop to override it.
- When the logo is purely decorative next to visible text such as 'Dify Studio', add aria-hidden on a wrapper or wrap it yourself, since the component does not accept aria-hidden as a prop.
- Ensure sufficient contrast: the white (dark) and black (light) fills must sit on backgrounds that meet WCAG contrast guidelines; the #03F icon-color needs a light or neutral background to remain legible.
- Size the mark with className so it remains readable at the target size; the wordmark's narrow height needs at least about 16px to stay legible.
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 "Dify Logo" component (elements/dify-logo) from its shadcn registry.1. Install it with: npx shadcn@latest add @elements/dify-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 { DifyLogo } from "@/components/logos/dify"export default function Example() { return <DifyLogo variant="wordmark" mode="light" className="h-6 w-auto" />}```Files & dependencies
- registry/default/blocks/logos/dify-logo/components/logos/dify.tsx