{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "starter",
  "type": "registry:base",
  "title": "Another UI Starter",
  "description": "A new Next.js app set up with Another UI: theme, fonts, dark mode, a core set of components and a welcome page.",
  "extends": "none",
  "config": {
    "style": "radix-nova",
    "iconLibrary": "phosphor",
    "rtl": false,
    "menuColor": "default",
    "menuAccent": "subtle",
    "tailwind": {
      "baseColor": "neutral"
    }
  },
  "dependencies": [
    "@phosphor-icons/react@2.1.10",
    "class-variance-authority@0.7.1",
    "next-themes@0.4.6",
    "radix-ui@1.4.3",
    "shadcn@4.21.4",
    "sonner@2.0.7",
    "tw-animate-css@1.4.0"
  ],
  "registryDependencies": [
    "https://anotherui.dev/r/another-ui-styles.json",
    "https://anotherui.dev/r/badge.json",
    "https://anotherui.dev/r/button.json",
    "https://anotherui.dev/r/card.json",
    "https://anotherui.dev/r/copy-button.json",
    "https://anotherui.dev/r/dialog.json",
    "https://anotherui.dev/r/dropdown-menu.json",
    "https://anotherui.dev/r/field.json",
    "https://anotherui.dev/r/font-geist-mono.json",
    "https://anotherui.dev/r/font-instrument-sans.json",
    "https://anotherui.dev/r/input.json",
    "https://anotherui.dev/r/label.json",
    "https://anotherui.dev/r/segmented-control.json",
    "https://anotherui.dev/r/separator.json",
    "https://anotherui.dev/r/skeleton.json",
    "https://anotherui.dev/r/sonner.json",
    "https://anotherui.dev/r/stat.json",
    "https://anotherui.dev/r/tabs.json",
    "https://anotherui.dev/r/toggle-group.json",
    "https://anotherui.dev/r/tooltip.json",
    "https://anotherui.dev/r/utils.json"
  ],
  "cssVars": {
    "theme": {
      "--font-heading": "var(--font-sans)"
    },
    "light": {
      "radius": "0.625rem",
      "background": "oklch(1 0 0)",
      "foreground": "oklch(0% 0 0)",
      "card": "oklch(1 0 0)",
      "card-foreground": "oklch(0% 0 0)",
      "popover": "oklch(1 0 0)",
      "popover-foreground": "oklch(0% 0 0)",
      "primary": "oklch(0% 0 0)",
      "primary-foreground": "oklch(0.985 0 0)",
      "secondary": "oklch(0.97 0 0)",
      "secondary-foreground": "oklch(0.205 0 0)",
      "muted": "oklch(0.97 0 0)",
      "muted-foreground": "oklch(0.556 0 0)",
      "accent": "oklch(0.97 0 0)",
      "accent-foreground": "oklch(0.205 0 0)",
      "destructive": "oklch(0.577 0.245 27.325)",
      "destructive-foreground": "oklch(0.97 0.01 17)",
      "border": "oklch(0.922 0 0)",
      "input": "oklch(0.922 0 0)",
      "ring": "oklch(0.708 0 0)",
      "chart-1": "var(--color-blue-300)",
      "chart-2": "var(--color-blue-500)",
      "chart-3": "var(--color-blue-600)",
      "chart-4": "var(--color-blue-700)",
      "chart-5": "var(--color-blue-800)",
      "sidebar": "oklch(0.985 0 0)",
      "sidebar-foreground": "oklch(0% 0 0)",
      "sidebar-primary": "oklch(0.205 0 0)",
      "sidebar-primary-foreground": "oklch(0.985 0 0)",
      "sidebar-accent": "oklch(0.97 0 0)",
      "sidebar-accent-foreground": "oklch(0.205 0 0)",
      "sidebar-border": "oklch(0.922 0 0)",
      "sidebar-ring": "oklch(0.708 0 0)"
    },
    "dark": {
      "background": "oklch(0.145 0 0)",
      "foreground": "oklch(0.985 0 0)",
      "card": "oklch(0.205 0 0)",
      "card-foreground": "oklch(0.985 0 0)",
      "popover": "oklch(0.205 0 0)",
      "popover-foreground": "oklch(0.985 0 0)",
      "primary": "oklch(0.922 0 0)",
      "primary-foreground": "oklch(0.205 0 0)",
      "secondary": "oklch(0.269 0 0)",
      "secondary-foreground": "oklch(0.985 0 0)",
      "muted": "oklch(0.269 0 0)",
      "muted-foreground": "oklch(0.708 0 0)",
      "accent": "oklch(0.371 0 0)",
      "accent-foreground": "oklch(0.985 0 0)",
      "destructive": "oklch(0.704 0.191 22.216)",
      "destructive-foreground": "oklch(0.58 0.22 27)",
      "border": "oklch(1 0 0 / 10%)",
      "input": "oklch(1 0 0 / 15%)",
      "ring": "oklch(0.556 0 0)",
      "chart-1": "var(--color-blue-300)",
      "chart-2": "var(--color-blue-500)",
      "chart-3": "var(--color-blue-600)",
      "chart-4": "var(--color-blue-700)",
      "chart-5": "var(--color-blue-800)",
      "sidebar": "oklch(0.205 0 0)",
      "sidebar-foreground": "oklch(0.985 0 0)",
      "sidebar-primary": "oklch(0.488 0.243 264.376)",
      "sidebar-primary-foreground": "oklch(0.985 0 0)",
      "sidebar-accent": "oklch(0.269 0 0)",
      "sidebar-accent-foreground": "oklch(0.985 0 0)",
      "sidebar-border": "oklch(1 0 0 / 10%)",
      "sidebar-ring": "oklch(0.439 0 0)"
    }
  },
  "css": {
    "@import \"tw-animate-css\"": {},
    "@import \"shadcn/tailwind.css\"": {},
    "@layer base": {
      "*": {
        "@apply border-border outline-ring/50": {}
      },
      "body": {
        "@apply bg-background text-foreground": {}
      }
    }
  },
  "files": [
    {
      "path": "another-starter/page.tsx",
      "content": "import {\n  ArrowRightIcon,\n  BookOpenTextIcon,\n  CubeIcon,\n  PaletteIcon,\n  SparkleIcon,\n} from \"@phosphor-icons/react/ssr\"\n\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\"\nimport { Separator } from \"@/components/ui/separator\"\nimport { Stat, StatGroup, StatIcon, StatLabel, StatValue } from \"@/components/ui/stat\"\nimport { AddCommand } from \"@/components/add-command\"\nimport { ModeToggle } from \"@/components/mode-toggle\"\nimport { SignupForm } from \"@/components/signup-form\"\n\nconst REGISTRY_URL = \"https://anotherui.dev\"\n\nexport default function Page() {\n  return (\n    <div className=\"flex min-h-svh flex-col\">\n      <header className=\"mx-auto flex w-full max-w-5xl items-center justify-between gap-4 px-4 py-4 sm:px-6\">\n        <div className=\"flex items-center gap-2 text-sm font-semibold\">\n          <CubeIcon weight=\"duotone\" className=\"size-5\" />\n          My App\n        </div>\n        <div className=\"flex items-center gap-1\">\n          <Button variant=\"ghost\" asChild>\n            <a href=\"https://anotherui.dev/docs\" target=\"_blank\" rel=\"noreferrer\">\n              Docs\n            </a>\n          </Button>\n          <ModeToggle />\n        </div>\n      </header>\n\n      <main className=\"mx-auto flex w-full max-w-5xl flex-1 flex-col gap-10 px-4 pt-10 pb-16 sm:px-6 sm:pt-16\">\n        <section className=\"flex max-w-2xl flex-col items-start gap-4\">\n          <Badge variant=\"secondary\">\n            <SparkleIcon weight=\"duotone\" />\n            Built with Another UI\n          </Badge>\n          <h1 className=\"font-heading text-4xl font-semibold tracking-tight text-balance sm:text-5xl\">\n            Your app is ready.\n          </h1>\n          <p className=\"text-base text-pretty text-muted-foreground sm:text-lg\">\n            Next.js, Tailwind and a set of Another UI components are already in place. Edit{\" \"}\n            <code className=\"rounded-md bg-muted px-1.5 py-0.5 font-mono text-sm text-foreground\">\n              app/page.tsx\n            </code>{\" \"}\n            to start.\n          </p>\n          <div className=\"flex flex-wrap gap-2\">\n            <Button size=\"lg\" asChild>\n              <a href=\"https://anotherui.dev/docs\" target=\"_blank\" rel=\"noreferrer\">\n                <BookOpenTextIcon weight=\"duotone\" data-icon=\"inline-start\" />\n                Read the docs\n              </a>\n            </Button>\n            <Button size=\"lg\" variant=\"outline\" asChild>\n              <a href=\"https://anotherui.dev/docs/components\" target=\"_blank\" rel=\"noreferrer\">\n                Browse components\n                <ArrowRightIcon weight=\"bold\" data-icon=\"inline-end\" />\n              </a>\n            </Button>\n          </div>\n        </section>\n\n        <div className=\"grid gap-4 md:grid-cols-2\">\n          <Card>\n            <CardHeader>\n              <CardTitle>Add a component</CardTitle>\n              <CardDescription>\n                Every component installs with one command. Pick your package manager and copy it.\n              </CardDescription>\n            </CardHeader>\n            <CardContent>\n              <AddCommand registryUrl={REGISTRY_URL} />\n            </CardContent>\n          </Card>\n\n          <Card>\n            <CardHeader>\n              <CardTitle>Try a form</CardTitle>\n              <CardDescription>A field, an input, a button and a toast.</CardDescription>\n            </CardHeader>\n            <CardContent>\n              <SignupForm />\n            </CardContent>\n          </Card>\n\n          <Card className=\"md:col-span-2\">\n            <CardHeader>\n              <CardTitle>What you have</CardTitle>\n              <CardDescription>Installed and ready to import from @/components/ui.</CardDescription>\n            </CardHeader>\n            <CardContent className=\"flex flex-col gap-6\">\n              <StatGroup layout=\"columns\" divided>\n                <Stat>\n                  <StatLabel>\n                    <StatIcon>\n                      <CubeIcon weight=\"duotone\" />\n                    </StatIcon>\n                    Components\n                  </StatLabel>\n                  <StatValue>{COMPONENTS.length}</StatValue>\n                </Stat>\n                <Stat>\n                  <StatLabel>\n                    <StatIcon>\n                      <PaletteIcon weight=\"duotone\" />\n                    </StatIcon>\n                    Themes\n                  </StatLabel>\n                  <StatValue>2</StatValue>\n                </Stat>\n                <Stat>\n                  <StatLabel>\n                    <StatIcon>\n                      <SparkleIcon weight=\"duotone\" />\n                    </StatIcon>\n                    Commands\n                  </StatLabel>\n                  <StatValue>1</StatValue>\n                </Stat>\n              </StatGroup>\n              <Separator />\n              <div className=\"flex flex-wrap gap-1.5\">\n                {COMPONENTS.map((name) => (\n                  <Badge key={name} variant=\"outline\" className=\"font-mono\">\n                    {name}\n                  </Badge>\n                ))}\n              </div>\n            </CardContent>\n          </Card>\n        </div>\n      </main>\n\n      <footer className=\"mx-auto w-full max-w-5xl px-4 pb-8 text-xs text-muted-foreground sm:px-6\">\n        Press <kbd className=\"font-mono\">d</kbd> to switch between light and dark.\n      </footer>\n    </div>\n  )\n}\n\nconst COMPONENTS = [\n  \"badge\",\n  \"button\",\n  \"card\",\n  \"copy-button\",\n  \"dialog\",\n  \"dropdown-menu\",\n  \"field\",\n  \"input\",\n  \"label\",\n  \"segmented-control\",\n  \"separator\",\n  \"skeleton\",\n  \"sonner\",\n  \"stat\",\n  \"tabs\",\n  \"tooltip\",\n  \"toggle-group\",\n]\n",
      "type": "registry:file",
      "target": "app/page.tsx"
    },
    {
      "path": "another-starter/theme-provider.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ThemeProvider as NextThemesProvider, useTheme } from \"next-themes\"\n\nimport { Toaster } from \"@/components/ui/sonner\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\n// The app's providers: light and dark mode from next-themes, shared tooltip\n// timing and the toast area. Press \"d\" anywhere to switch the theme.\nfunction ThemeProvider({\n  children,\n  ...props\n}: React.ComponentProps<typeof NextThemesProvider>) {\n  return (\n    <NextThemesProvider\n      attribute=\"class\"\n      defaultTheme=\"system\"\n      enableSystem\n      disableTransitionOnChange\n      {...props}\n    >\n      <ThemeHotkey />\n      <TooltipProvider>\n        {children}\n        <Toaster position=\"top-center\" />\n      </TooltipProvider>\n    </NextThemesProvider>\n  )\n}\n\nfunction isTypingTarget(target: EventTarget | null) {\n  if (!(target instanceof HTMLElement)) return false\n  return (\n    target.isContentEditable ||\n    target.tagName === \"INPUT\" ||\n    target.tagName === \"TEXTAREA\" ||\n    target.tagName === \"SELECT\"\n  )\n}\n\nfunction ThemeHotkey() {\n  const { resolvedTheme, setTheme } = useTheme()\n\n  React.useEffect(() => {\n    function onKeyDown(event: KeyboardEvent) {\n      if (event.defaultPrevented || event.repeat) return\n      if (event.metaKey || event.ctrlKey || event.altKey) return\n      if (event.key.toLowerCase() !== \"d\") return\n      if (isTypingTarget(event.target)) return\n      setTheme(resolvedTheme === \"dark\" ? \"light\" : \"dark\")\n    }\n    window.addEventListener(\"keydown\", onKeyDown)\n    return () => window.removeEventListener(\"keydown\", onKeyDown)\n  }, [resolvedTheme, setTheme])\n\n  return null\n}\n\nexport { ThemeProvider }\n",
      "type": "registry:component",
      "target": "components/theme-provider.tsx"
    },
    {
      "path": "another-starter/mode-toggle.tsx",
      "content": "\"use client\"\n\nimport { DesktopIcon, MoonIcon, SunIcon } from \"@phosphor-icons/react\"\nimport { useTheme } from \"next-themes\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuRadioGroup,\n  DropdownMenuRadioItem,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n\nfunction ModeToggle() {\n  const { theme, setTheme } = useTheme()\n\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger asChild>\n        <Button variant=\"ghost\" size=\"icon\" aria-label=\"Theme\">\n          <SunIcon weight=\"duotone\" className=\"dark:hidden\" />\n          <MoonIcon weight=\"duotone\" className=\"hidden dark:block\" />\n        </Button>\n      </DropdownMenuTrigger>\n      <DropdownMenuContent align=\"end\">\n        <DropdownMenuRadioGroup value={theme} onValueChange={setTheme}>\n          <DropdownMenuRadioItem value=\"light\">\n            <SunIcon weight=\"duotone\" />\n            Light\n          </DropdownMenuRadioItem>\n          <DropdownMenuRadioItem value=\"dark\">\n            <MoonIcon weight=\"duotone\" />\n            Dark\n          </DropdownMenuRadioItem>\n          <DropdownMenuRadioItem value=\"system\">\n            <DesktopIcon weight=\"duotone\" />\n            System\n          </DropdownMenuRadioItem>\n        </DropdownMenuRadioGroup>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  )\n}\n\nexport { ModeToggle }\n",
      "type": "registry:component",
      "target": "components/mode-toggle.tsx"
    },
    {
      "path": "another-starter/add-command.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { CopyButton } from \"@/components/ui/copy-button\"\nimport { SegmentedControl, SegmentedControlItem } from \"@/components/ui/segmented-control\"\n\nconst RUNNERS = {\n  npm: \"npx shadcn@latest add\",\n  pnpm: \"pnpm dlx shadcn@latest add\",\n  bun: \"bunx --bun shadcn@latest add\",\n} as const\n\ntype Runner = keyof typeof RUNNERS\n\n// The command that adds one more component, for the package manager you use.\nfunction AddCommand({ registryUrl }: { registryUrl: string }) {\n  const [runner, setRunner] = React.useState<Runner>(\"npm\")\n  const command = `${RUNNERS[runner]} ${registryUrl}/r/rating.json`\n\n  return (\n    <div className=\"flex min-w-0 flex-col gap-3\">\n      <SegmentedControl\n        size=\"sm\"\n        value={runner}\n        onValueChange={(value) => setRunner(value as Runner)}\n        aria-label=\"Package manager\"\n      >\n        {Object.keys(RUNNERS).map((name) => (\n          <SegmentedControlItem key={name} value={name}>\n            {name}\n          </SegmentedControlItem>\n        ))}\n      </SegmentedControl>\n      <div className=\"flex min-w-0 items-center gap-2 rounded-lg border bg-muted/50 py-1.5 pr-1.5 pl-3\">\n        <code className=\"min-w-0 flex-1 font-mono text-xs break-all\">{command}</code>\n        <CopyButton value={command} />\n      </div>\n    </div>\n  )\n}\n\nexport { AddCommand }\n",
      "type": "registry:component",
      "target": "components/add-command.tsx"
    },
    {
      "path": "another-starter/signup-form.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { toast } from \"sonner\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n\n// A small form to show fields, inputs and toasts working together.\nfunction SignupForm() {\n  const [email, setEmail] = React.useState(\"\")\n\n  return (\n    <form\n      className=\"flex flex-col gap-3\"\n      onSubmit={(event) => {\n        event.preventDefault()\n        toast.success(\"You are on the list\", {\n          description: email ? `We will write to ${email}.` : undefined,\n        })\n        setEmail(\"\")\n      }}\n    >\n      <Field>\n        <FieldLabel htmlFor=\"email\">Email</FieldLabel>\n        <Input\n          id=\"email\"\n          type=\"email\"\n          placeholder=\"you@example.com\"\n          value={email}\n          onChange={(event) => setEmail(event.target.value)}\n          required\n        />\n        <FieldDescription>Submit to see a toast.</FieldDescription>\n      </Field>\n      <Button type=\"submit\" className=\"self-start\">\n        Join the list\n      </Button>\n    </form>\n  )\n}\n\nexport { SignupForm }\n",
      "type": "registry:component",
      "target": "components/signup-form.tsx"
    }
  ]
}
