{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button",
  "title": "Button",
  "description": "Seven variants and five sizes in uppercase mono. `primary` is filled phosphor; `signal` marks urgent states.",
  "dependencies": [
    "@base-ui/react",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@afterglow/theme"
  ],
  "files": [
    {
      "path": "registry/terminal/ui/button.tsx",
      "content": "import { Button as ButtonPrimitive } from \"@base-ui/react/button\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst buttonVariants = cva(\n  \"inline-flex shrink-0 items-center justify-center gap-2 rounded-none border border-transparent font-mono font-bold uppercase whitespace-nowrap outline-none transition duration-150 ease-terminal active:transition-none focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-phosphor-bright disabled:pointer-events-none disabled:opacity-40 data-disabled:pointer-events-none data-disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    compoundVariants: [\n      {\n        class: \"hover:-translate-y-px active:translate-y-px active:shadow-none\",\n        variant: [\"default\", \"destructive\", \"outline\", \"primary\", \"signal\"],\n      },\n    ],\n    defaultVariants: { size: \"default\", variant: \"default\" },\n    variants: {\n      size: {\n        default: \"h-9 px-3.5 text-1xs tracking-terminal-lg\",\n        icon: \"size-9\",\n        \"icon-sm\": \"size-8\",\n        lg: \"h-11 px-6 text-xs tracking-terminal-3xl\",\n        sm: \"h-8 gap-1.5 px-2.5 text-2xs tracking-terminal\",\n      },\n      variant: {\n        default:\n          \"border-line bg-secondary text-phosphor hover:border-line-strong hover:bg-accent hover:text-phosphor-bright hover:shadow-glow active:bg-accent active:text-phosphor\",\n        destructive:\n          \"border-destructive bg-destructive/15 text-destructive hover:bg-destructive hover:text-white active:bg-destructive/70 active:text-white\",\n        ghost:\n          \"text-muted-foreground hover:bg-accent/50 hover:text-phosphor active:bg-accent active:text-phosphor-bright\",\n        link: \"text-phosphor underline-offset-4 hover:underline active:text-phosphor-bright\",\n        outline:\n          \"border-line text-phosphor hover:border-line-strong hover:bg-accent/60 hover:text-phosphor-bright active:border-line active:bg-accent/80 active:text-phosphor\",\n        primary:\n          \"border-primary bg-primary text-primary-foreground shadow-glow hover:bg-phosphor-bright hover:shadow-glow-strong active:bg-primary\",\n        signal:\n          \"bg-signal text-void shadow-signal-control hover:bg-signal-soft hover:shadow-glow-signal active:bg-signal\",\n      },\n    },\n  }\n);\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  ...props\n}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {\n  return (\n    <ButtonPrimitive\n      className={cn(buttonVariants({ className, size, variant }))}\n      data-size={size}\n      data-slot=\"button\"\n      data-variant={variant}\n      {...props}\n    />\n  );\n}\n\nexport { Button, buttonVariants };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}