{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "filament",
  "type": "registry:ui",
  "title": "Filament",
  "description": "An animated conic-gradient border — a white-hot filament head trailing a cool silver-blue tail that desaturates and fades to a faint slate trace. Pure CSS @property animation, zero JS, zero dependencies.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/cards/filament/filament.tsx",
      "type": "registry:ui",
      "target": "components/crucible/filament.tsx",
      "content": "import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface FilamentProps extends React.ComponentPropsWithoutRef<\"div\"> {\n  /** Card content. */\n  children: React.ReactNode;\n  /**\n   * Four stops for the traveling filament: `[head, hot, cool, trace]` — a\n   * white-hot leading point, the bright silver it cools through, the cool\n   * blue-gray it desaturates to, and a faint slate trace before it fades.\n   */\n  colors?: [string, string, string, string];\n  /** Border radius in px. */\n  radius?: number;\n  /** Ring thickness in px. */\n  thickness?: number;\n  /** Seconds for one full lap. */\n  duration?: number;\n  /** Freeze the animation, holding the current frame. */\n  paused?: boolean;\n}\n\n/**\n * Filament — an animated conic-gradient border, a filament of light\n * orbiting the card: a white-hot head trailing a silver-to-blue tail that\n * cools and desaturates, leaving a faint slate trace before it fades.\n * Pure CSS via `@property`-animated conic gradient — zero JS, zero\n * dependencies. Honors prefers-reduced-motion by freezing the wire in place.\n */\nexport function Filament({\n  children,\n  colors = [\"#ffffff\", \"#dbe4f0\", \"#93a8c4\", \"#5f7896\"],\n  radius = 16,\n  thickness = 1.5,\n  duration = 6,\n  paused = false,\n  className,\n  style,\n  ...rest\n}: FilamentProps) {\n  return (\n    <div\n      data-crucible=\"filament\"\n      className={cn(\"relative isolate overflow-hidden bg-neutral-900\", className)}\n      style={\n        {\n          \"--filament-head\": colors[0],\n          \"--filament-hot\": colors[1],\n          \"--filament-cool\": colors[2],\n          \"--filament-trace\": colors[3],\n          \"--filament-thickness\": `${thickness}px`,\n          \"--filament-duration\": `${duration}s`,\n          \"--filament-play\": paused ? \"paused\" : \"running\",\n          \"--filament-angle\": \"0deg\",\n          borderRadius: radius,\n          ...style,\n        } as React.CSSProperties\n      }\n      {...rest}\n    >\n      <style>{`\n        @property --filament-angle {\n          syntax: '<angle>';\n          inherits: false;\n          initial-value: 0deg;\n        }\n        @keyframes crucible-filament-spin {\n          to { --filament-angle: 360deg; }\n        }\n        [data-crucible=\"filament\"] .filament-ring {\n          position: absolute;\n          inset: 0;\n          border-radius: inherit;\n          padding: var(--filament-thickness);\n          background: conic-gradient(\n            from var(--filament-angle),\n            var(--filament-head) 0%,\n            var(--filament-hot) 3%,\n            var(--filament-cool) 9%,\n            color-mix(in oklab, var(--filament-cool) 25%, transparent) 15%,\n            transparent 20%,\n            color-mix(in oklab, var(--filament-trace) 35%, transparent) 30%,\n            transparent 38%,\n            transparent 100%\n          );\n          -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n          -webkit-mask-composite: xor;\n          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n          mask-composite: exclude;\n          animation: crucible-filament-spin var(--filament-duration) linear infinite;\n          animation-play-state: var(--filament-play);\n        }\n        @media (prefers-reduced-motion: reduce) {\n          [data-crucible=\"filament\"] .filament-ring {\n            animation: none;\n            --filament-angle: 20deg;\n          }\n        }\n      `}</style>\n\n      <span aria-hidden className=\"filament-ring pointer-events-none\" />\n\n      <div className=\"relative z-10\">{children}</div>\n    </div>\n  );\n}\n"
    }
  ]
}