{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gradient-text",
  "title": "Gradient Text",
  "author": "VenusUI",
  "description": "Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.",
  "files": [
    {
      "path": "registry/default/ui/gradient-text.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface GradientTextProps extends React.ComponentProps<\"span\"> {\n  /** Colors of the gradient, left to right. Defaults to a subtle sheen in the text color. */\n  colors?: string[]\n  /** Slowly move the gradient across the text. */\n  animate?: boolean\n}\n\n/**\n * Text filled with a gradient. By default it is a quiet sheen of the current\n * foreground color, so it works in light and dark themes. The text stays real\n * text; the movement stops when the user prefers reduced motion.\n */\nfunction GradientText({ colors, animate = true, className, style, ...props }: GradientTextProps) {\n  const stops = colors?.length\n    ? [...colors, colors[0]].join(\", \")\n    : \"var(--foreground), color-mix(in oklch, var(--foreground) 45%, transparent), var(--foreground)\"\n\n  return (\n    <span\n      data-slot=\"gradient-text\"\n      className={cn(\n        \"inline-block bg-size-[200%_auto] bg-clip-text text-transparent\",\n        animate && \"animate-gradient-text motion-reduce:animate-none\",\n        className\n      )}\n      style={{ backgroundImage: `linear-gradient(90deg, ${stops})`, ...style }}\n      {...props}\n    />\n  )\n}\n\nexport { GradientText, type GradientTextProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-gradient-text": "gradient-text 6s linear infinite"
    }
  },
  "css": {
    "@keyframes gradient-text": {
      "from": {
        "background-position": "0% center"
      },
      "to": {
        "background-position": "200% center"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "text",
    "animations"
  ],
  "type": "registry:ui"
}