{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "mesh-gradient-footer",
  "title": "Mesh Gradient Footer",
  "description": "A site footer with a giant wordmark filled by a flowing mesh gradient.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "files": [
    {
      "path": "registry/shaders/mesh-gradient-footer/mesh-gradient-footer.tsx",
      "content": "import { MeshGradient } from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype FooterColumn = {\n  title: string\n  links: { label: string; href: string }[]\n}\n\nconst DEFAULT_COLUMNS: FooterColumn[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Features\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n      { label: \"Roadmap\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#\" },\n      { label: \"Careers\", href: \"#\" },\n      { label: \"Blog\", href: \"#\" },\n      { label: \"Press\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Resources\",\n    links: [\n      { label: \"Docs\", href: \"#\" },\n      { label: \"Guides\", href: \"#\" },\n      { label: \"Support\", href: \"#\" },\n      { label: \"Status\", href: \"#\" },\n    ],\n  },\n]\n\ntype MeshGradientFooterProps = React.ComponentProps<\"footer\"> & {\n  wordmark?: string\n  description?: string\n  columns?: FooterColumn[]\n  copyright?: string\n  /** Colors of the gradient that fills the wordmark. */\n  colors?: string[]\n  /** Brightness of the gradient in the wordmark, 0 to 1. Keep it low so the footer stays calm. */\n  intensity?: number\n  speed?: number\n}\n\nfunction MeshGradientFooter({\n  wordmark = \"Lumen\",\n  description = \"Light, motion and color for the web. Built on the GPU, shipped as copy-paste components.\",\n  columns = DEFAULT_COLUMNS,\n  copyright = `© ${new Date().getFullYear()} Lumen, Inc. All rights reserved.`,\n  colors = [\"#ff6b35\", \"#f72585\", \"#7209b7\", \"#4cc9f0\"],\n  intensity = 0.35,\n  speed = 0.3,\n  className,\n  ...props\n}: MeshGradientFooterProps) {\n  return (\n    <footer\n      data-slot=\"mesh-gradient-footer\"\n      className={cn(\n        \"dark flex w-full flex-col overflow-hidden bg-black text-white\",\n        className\n      )}\n      {...props}\n    >\n      <div className=\"grid gap-12 px-6 pt-20 pb-12 md:grid-cols-[1.5fr_repeat(3,1fr)] md:px-12 lg:px-16\">\n        <div className=\"flex max-w-xs flex-col gap-3\">\n          <span className=\"font-heading text-xl\">{wordmark}</span>\n          <p className=\"text-sm text-pretty text-white/60\">{description}</p>\n        </div>\n        {columns.map((column) => (\n          <nav key={column.title} className=\"flex flex-col gap-3 text-sm\">\n            <span className=\"font-mono text-[11px] tracking-widest text-white/40 uppercase\">\n              {column.title}\n            </span>\n            {column.links.map((link) => (\n              <a\n                key={link.label}\n                href={link.href}\n                className=\"w-fit text-white/70 transition-colors hover:text-white\"\n              >\n                {link.label}\n              </a>\n            ))}\n          </nav>\n        ))}\n      </div>\n      <div className=\"flex flex-wrap items-center justify-between gap-2 border-t border-white/10 px-6 py-6 text-xs text-white/40 md:px-12 lg:px-16\">\n        <span>{copyright}</span>\n        <div className=\"flex gap-6\">\n          <a href=\"#\" className=\"hover:text-white\">\n            Privacy\n          </a>\n          <a href=\"#\" className=\"hover:text-white\">\n            Terms\n          </a>\n        </div>\n      </div>\n      {/*\n        The gradient shows only through the letters: the layer on top is black\n        with white text and multiplies over the shader, so black hides it and\n        white lets it through. This is why the footer background is black.\n        Gray text lets it through dimmed, which is how intensity works.\n      */}\n      <div\n        aria-hidden\n        className=\"@container relative isolate overflow-hidden select-none\"\n      >\n        <MeshGradient\n          className=\"absolute inset-0 size-full\"\n          colors={colors}\n          distortion={0.8}\n          swirl={0.6}\n          speed={speed}\n        />\n        <div\n          className=\"relative bg-black text-center mix-blend-multiply\"\n          style={{\n            color: `rgb(${255 * intensity} ${255 * intensity} ${255 * intensity})`,\n          }}\n        >\n          <p className=\"pb-[0.2em] font-heading text-[30cqw] leading-none tracking-tighter whitespace-nowrap\">\n            {wordmark}\n          </p>\n        </div>\n      </div>\n    </footer>\n  )\n}\n\nexport { MeshGradientFooter, type FooterColumn }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "footer"
  ],
  "type": "registry:block"
}