# Palmglow full documentation # Palmglow **Palmglow — Miami dusk UI for [shadcn](https://ui.shadcn.com).** A theme, all the base primitives, and composed blocks you copy into your project. - 69 UI components - 18 blocks - One theme with `neon-night` (dark) and `day-bleach` (light) modes - Original artwork, type, and tokens. Not affiliated with Rockstar Games or Take-Two. ## Install ```bash pnpm dlx shadcn@latest add https://palmglow.dev/r/theme.json pnpm dlx shadcn@latest add https://palmglow.dev/r/button.json pnpm dlx shadcn@latest add https://palmglow.dev/r/data-table.json ``` You can also register a namespace in `components.json` and use short names: ```json { "registries": { "@palmglow": "https://palmglow.dev/r/{name}.json" } } ``` ```bash pnpm dlx shadcn@latest add @palmglow/theme @palmglow/button ``` Browse the full catalog at `/components` and `/blocks` on the site. Every item is also available as `https://palmglow.dev/r/{name}.json`. ## Ready-to-use components | Registry item | Connect it to your application | | --- | --- | | `file-upload` | Use `onFilesChange(files)` for a form or `onUpload(file, { signal, onProgress })` for immediate uploads. Resolve the promise after the server accepts the file and reject it to enable retry. Removing a file aborts its signal. | | `date-range-picker` | Supply `value` and `onValueChange` for a controlled filter. The callback receives inclusive local calendar dates as `{ from, to }`. | | `tags-input` | Supply `suggestions`, `value` and `onValueChange`. Enter or comma commits a tag. Backspace in an empty field removes the last tag. | | `number-ticker` | Pass a numeric `value`, a `locale` and `Intl.NumberFormat` options through `format`. For a percentage, supply a fraction such as `0.125` for 12.5%. | | `github-contributions` | Pass `contributions` (`Activity[]`) and `githubProfileUrl`. Use `getCachedContributions(username)` on the server or `fetchGitHubContributions(username)` on the client with `NEXT_PUBLIC_GITHUB_CONTRIBUTIONS_API_URL`. | The Project Assets block uses File Upload, Payout Stats uses Number Ticker, and Studio Dashboard uses Chart. ## Fonts The theme uses **Syne** for display and **Figtree** for UI, with **Geist Mono** for code. Load them in the consumer app and expose the CSS variables the theme expects: ```tsx import { Figtree, Syne } from "next/font/google" import { GeistMono } from "geist/font/mono" const syne = Syne({ subsets: ["latin"], variable: "--font-syne" }) const figtree = Figtree({ subsets: ["latin"], variable: "--font-figtree" }) const mono = GeistMono // ``` `GeistMono.variable` sets `--font-geist-mono`. The theme falls back to `ui-sans-serif, system-ui, sans-serif` when those variables are not present. ## Local development ```bash pnpm install pnpm dev # http://localhost:3456 pnpm registry:build pnpm build ``` `pnpm dev` and `pnpm build` publish the agent index at `/llms.txt` and generate `/llms-full.txt` from the installation guide, design guidelines, and registry sources. ## Registry - `registry.json`: source of truth for all registry items. - `components/ui`: primitive source. - `registry/blocks`: composed block source. - `public/r`: generated registry JSON and theme artifact. Validation runs in `pnpm registry:validate` and checks every declared file, import, local registry dependency, npm dependency, and gallery entry. ## Design Read [`DESIGN.md`](./DESIGN.md) for tokens, type, motion, code colors, and do/don't rules. The short version: semantic tokens only, original artwork only, no Rockstar logos, key art, HUD assets, or fonts. ## Disclaimer palmglow is an independent, fan-inspired design system. It is not affiliated with, endorsed by, or connected to Rockstar Games, Take-Two Interactive, or Grand Theft Auto. - Original colors, components, and naming only - No official logos, key art, postcards, HUD assets, or proprietary fonts - Inspired by Miami dusk and open-world nightlife aesthetics, not a game UI clone ## License MIT. See [`LICENSE`](./LICENSE). # Palmglow Miami dusk UI for the open web: neon spill, golden hour, and wet asphalt, shipped as a shadcn registry. Not affiliated with Rockstar Games, Take-Two, or Grand Theft Auto. Original tokens and components only. ## Intent A copy-paste component registry with a strong night aesthetic: rose CTAs, magenta signals, dusk gradients, and restrained motion. Inspired by contemporary Florida nightlife marketing art direction: never cloning game HUD, logos, or fonts. ## Modes | Mode | Use | |---|---| | `neon-night` (default / `.dark`) | Near-black navy, rose primary, magenta ring | | `day-bleach` (`:root`) | Hot daylight bleach, ink on pale lilac-white | Optional region moods (future CSS data attributes): `wetland`, `port`, `keys`. ## Color ### Neon night - Background: `#0b0d18` - Foreground: `#f7f4ff` - Card: `#141628` - Primary (CTA rose): `#ff9ec0` - Primary foreground: `#0b0d18` - Accent / signal magenta: `#e85ec8` - Gold: `#f0c14d` on `#0b0d18` - Muted: `#1c1f36` - Border: `#2a2e4a` - Ring: `#ff9ec0` - Dusk ramp: `#ffd56a` -> `#f4717c` -> `#c45be8` ### Day bleach - Background: `#fbf6ee` (sun-bleached sand, not lavender white) - Foreground: `#17111f` - Card: `#fffcf6` - Primary: `#bf165e` (deep hibiscus) - Accent: `#dff1ea` with `#0d5c56` text (turquoise water) - Signal: `#a21caf` - Gold: `#8a4b08` on `#fffbeb` - Muted: `#f3e8da` - Border: `#e8dbc9` ### Code - Surface: `#0c0e1a` night / `#faf3e9` day, border `#262a44` / `#e8dbc9` - Syntax: keyword rose, string dusk gold, function magenta, tag coral, operator lavender, comment muted violet - Tokens: `--code-bg`, `--code-fg`, `--code-border`, `--code-muted`, `--syntax-*` ## Typography - Display: **Syne** (expressive, geometric: not Rockstar Art Deco) - Body / UI: **Figtree** - Mono: **Geist Mono** Do not embed or redistribute proprietary game fonts. ## Radius & controls - Radius base: `0.75rem` (soft, not pill-everything) - Button height default: `36px` (`h-9`); large: `40px` - Cards: `rounded-xl`, thin border, soft rose glow on focus: no heavy multi-shadow stacks ## Motion - UI ease-out: `cubic-bezier(0.23, 1, 0.32, 1)` (`--ease-out-palm`) - Surface ease: `cubic-bezier(0.32, 0.72, 0, 1)` (`--ease-palm`) - Fast: `150-200ms` (hover, press, copy feedback) / Medium: `250-500ms` (theme swap, surfaces) - Marketing entrances may run 500-650ms; hero elements stagger by 70ms - Animate `opacity` and `translate`/`scale` only, never `width`/`height`/`top`/`left` - Prefer opacity + translate; respect `prefers-reduced-motion` - At least: hero fade-rise on load, CTA hover lift, theme crossfade, copy confirmation ## Product story Palmglow is a **shadcn theme + registry**. Visual mood is Miami dusk (palms, neon spill, rose CTAs). Demo copy should read like real product UI: login, stats, nav, project boards. Atmosphere stays in color, motion, and imagery, not in fictional district names. ## Do - Use semantic tokens (`bg-primary`, `text-muted-foreground`) - Write realistic SaaS/product examples (email login, revenue KPIs, activity feeds) - Hint atmosphere with palm silhouettes and dusk wash (original artwork only) - Ship disclaimer in README and site footer ## Don't - Ship Rockstar logos, key art, postcards, or HUD assets - Name items `gta-*`, `vice-*`, `leonida-*` - Overload demos with invented place fiction that obscures the product - Mention franchise titles outside the legal disclaimer - Nest cards inside card-like preview frames - Default to purple-on-white SaaS chrome; night mode is the brand ## Known gaps - Optional mood packs as CSS data attributes later - Motion package optional (`motion`): CSS-first for MVP ## Registry item definitions ### Palmglow Theme https://palmglow.dev/r/theme.json ```json { "name": "theme", "type": "registry:theme", "title": "Palmglow Theme", "description": "Miami dusk tokens: neon-night dark and day-bleach light. Original palette; not affiliated with any game studio.", "cssVars": { "theme": { "font-sans": "var(--font-figtree, Figtree), ui-sans-serif, system-ui, sans-serif", "font-display": "var(--font-syne, Syne), ui-sans-serif, system-ui, sans-serif", "radius": "0.75rem", "font-mono": "var(--font-geist-mono, 'Geist Mono'), ui-monospace, SFMono-Regular, monospace" }, "light": { "background": "#fbf6ee", "foreground": "#17111f", "card": "#fffcf6", "card-foreground": "#17111f", "popover": "#fffcf6", "popover-foreground": "#17111f", "primary": "#bf165e", "primary-foreground": "#fff7fb", "secondary": "#f3e8da", "secondary-foreground": "#2a1f2d", "muted": "#f3e8da", "muted-foreground": "#6b5c67", "accent": "#dff1ea", "accent-foreground": "#0d5c56", "destructive": "#b91c1c", "border": "#e8dbc9", "input": "#e8dbc9", "ring": "#bf165e", "signal": "#a21caf", "gold": "#8a4b08", "gold-foreground": "#fffbeb", "dusk-1": "#ffd56a", "dusk-2": "#f4717c", "dusk-3": "#c45be8", "chart-1": "#bf165e", "chart-2": "#0f766e", "chart-3": "#e05263", "chart-4": "#c58a00", "chart-5": "#6d28d9", "dusk-foreground": "#201529", "sidebar": "#fdfbff", "sidebar-foreground": "#0b0d18", "sidebar-primary": "#c9186a", "sidebar-primary-foreground": "#fff7fb", "sidebar-accent": "#f0ebf7", "sidebar-accent-foreground": "#1a1430", "sidebar-border": "#e4dcf0", "sidebar-ring": "#c9186a", "code-bg": "#faf3e9", "code-fg": "#1a1424", "code-border": "#e8dbc9", "code-muted": "#6b5c67", "syntax-comment": "#7a6b78", "syntax-punctuation": "#6b5c67", "syntax-keyword": "#b3165f", "syntax-string": "#8a5a00", "syntax-function": "#a21caf", "syntax-number": "#b45309", "syntax-tag": "#be123c", "syntax-attr": "#831843", "syntax-operator": "#6d28d9" }, "dark": { "background": "#0b0d18", "foreground": "#f7f4ff", "card": "#141628", "card-foreground": "#f7f4ff", "popover": "#141628", "popover-foreground": "#f7f4ff", "primary": "#ff9ec0", "primary-foreground": "#0b0d18", "secondary": "#1c1f36", "secondary-foreground": "#f7f4ff", "muted": "#1c1f36", "muted-foreground": "#a39bb8", "accent": "#2a1830", "accent-foreground": "#ff9ec0", "destructive": "#f87171", "border": "#2a2e4a", "input": "#2a2e4a", "ring": "#ff9ec0", "signal": "#e85ec8", "gold": "#f0c14d", "gold-foreground": "#0b0d18", "dusk-1": "#ffd56a", "dusk-2": "#f4717c", "dusk-3": "#c45be8", "chart-1": "#ff9ec0", "chart-2": "#e85ec8", "chart-3": "#ffd56a", "chart-4": "#9b89f5", "chart-5": "#f4717c", "dusk-foreground": "#201529", "sidebar": "#101222", "sidebar-foreground": "#f7f4ff", "sidebar-primary": "#ff9ec0", "sidebar-primary-foreground": "#0b0d18", "sidebar-accent": "#1c1f36", "sidebar-accent-foreground": "#f7f4ff", "sidebar-border": "#2a2e4a", "sidebar-ring": "#ff9ec0", "code-bg": "#0c0e1a", "code-fg": "#f2edff", "code-border": "#262a44", "code-muted": "#8f88a6", "syntax-comment": "#7a7391", "syntax-punctuation": "#b6adc9", "syntax-keyword": "#ff9ec0", "syntax-string": "#ffd56a", "syntax-function": "#e85ec8", "syntax-number": "#ffb27a", "syntax-tag": "#f4717c", "syntax-attr": "#ffc7d9", "syntax-operator": "#c9b6ff" } }, "css": { "@theme inline": { "--color-signal": "var(--signal)", "--color-dusk-1": "var(--dusk-1)", "--color-dusk-2": "var(--dusk-2)", "--color-dusk-3": "var(--dusk-3)", "--color-gold": "var(--gold)", "--color-gold-foreground": "var(--gold-foreground)", "--ease-palm": "cubic-bezier(0.32, 0.72, 0, 1)", "--color-dusk-foreground": "var(--dusk-foreground)" }, "@keyframes palm-fade": { "from": { "opacity": "0" }, "to": { "opacity": "1" } }, "@keyframes palm-rise": { "from": { "opacity": "0", "transform": "translateY(12px)" }, "to": { "opacity": "1", "transform": "translateY(0)" } }, "@keyframes dusk-drift": { "from": { "background-position": "0% 40%" }, "to": { "background-position": "100% 60%" } }, "@layer utilities": { ".bg-dusk": { "background-image": "linear-gradient(135deg, var(--dusk-1) 0%, var(--dusk-2) 45%, var(--dusk-3) 100%)", "background-size": "200% 200%" }, ".text-dusk": { "background-image": "linear-gradient(115deg, var(--dusk-1), var(--dusk-2), var(--dusk-3))", "-webkit-background-clip": "text", "background-clip": "text", "color": "transparent" }, ".glow-rose": { "box-shadow": "0 0 0 1px color-mix(in oklab, var(--primary) 35%, transparent), 0 0 24px color-mix(in oklab, var(--primary) 25%, transparent)" } }, "@media (prefers-reduced-motion: reduce)": { "*, *::before, *::after": { "animation-duration": "0.01ms !important", "animation-iteration-count": "1 !important", "transition-duration": "0.01ms !important" } } } } ``` ### Utils https://palmglow.dev/r/utils.json ```json { "name": "utils", "type": "registry:lib", "title": "Utils", "description": "cn() helper for class merging.", "dependencies": [ "clsx", "tailwind-merge", "cn" ], "files": [ { "path": "lib/utils.ts", "type": "registry:lib", "content": "import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n" } ] } ``` ### Accordion https://palmglow.dev/r/accordion.json ```json { "name": "accordion", "type": "registry:ui", "title": "Accordion", "description": "Stacked sections that expand one at a time, for FAQs and settings.", "dependencies": [ "cn", "lucide-react", "radix-ui" ], "files": [ { "path": "components/ui/accordion.tsx", "type": "registry:ui", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\nimport { ChevronDownIcon } from \"lucide-react\"\nimport { Accordion as AccordionPrimitive } from \"radix-ui\"\n\nfunction Accordion({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction AccordionItem({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n svg]:rotate-180\",\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n )\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n
{children}
\n \n )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n" } ] } ``` ### Alert Dialog https://palmglow.dev/r/alert-dialog.json ```json { "name": "alert-dialog", "type": "registry:ui", "title": "Alert Dialog", "description": "Modal that interrupts with a decision before a destructive action.", "dependencies": [ "cn", "radix-ui" ], "registryDependencies": [ "https://palmglow.dev/r/button.json" ], "files": [ { "path": "components/ui/alert-dialog.tsx", "type": "registry:ui", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\nimport { AlertDialog as AlertDialogPrimitive } from \"radix-ui\"\n\nimport { Button } from \"@/components/ui/button\"\n\nfunction AlertDialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction AlertDialogTrigger({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogPortal({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogContent({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps & {\n size?: \"default\" | \"sm\"\n}) {\n return (\n \n \n \n \n )\n}\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogMedia({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogAction({\n className,\n variant = \"default\",\n size = \"default\",\n ...props\n}: React.ComponentProps &\n Pick, \"variant\" | \"size\">) {\n return (\n \n )\n}\n\nfunction AlertDialogCancel({\n className,\n variant = \"outline\",\n size = \"default\",\n ...props\n}: React.ComponentProps &\n Pick, \"variant\" | \"size\">) {\n return (\n \n )\n}\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogMedia,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n}\n" } ] } ``` ### Alert https://palmglow.dev/r/alert.json ```json { "name": "alert", "type": "registry:ui", "title": "Alert", "description": "Inline callout for confirmations, warnings, and empty results.", "dependencies": [ "class-variance-authority", "cn" ], "files": [ { "path": "components/ui/alert.tsx", "type": "registry:ui", "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"cn\"\n\nconst alertVariants = cva(\n \"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps) {\n return (\n \n )\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nexport { Alert, AlertTitle, AlertDescription }\n" } ] } ``` ### Aspect Ratio https://palmglow.dev/r/aspect-ratio.json ```json { "name": "aspect-ratio", "type": "registry:ui", "title": "Aspect Ratio", "description": "Keeps media at a fixed ratio without layout shift.", "dependencies": [ "radix-ui" ], "files": [ { "path": "components/ui/aspect-ratio.tsx", "type": "registry:ui", "content": "\"use client\"\n\nimport { AspectRatio as AspectRatioPrimitive } from \"radix-ui\"\n\nfunction AspectRatio({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nexport { AspectRatio }\n" } ] } ``` ### Attachment https://palmglow.dev/r/attachment.json ```json { "name": "attachment", "type": "registry:ui", "title": "Attachment", "description": "File chip with upload state, preview, and remove action.", "dependencies": [ "class-variance-authority", "cn", "radix-ui" ], "registryDependencies": [ "https://palmglow.dev/r/button.json" ], "files": [ { "path": "components/ui/attachment.tsx", "type": "registry:ui", "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"cn\"\nimport { Slot } from \"radix-ui\"\n\nimport { Button } from \"@/components/ui/button\"\n\nconst attachmentVariants = cva(\n \"group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed\",\n {\n variants: {\n size: {\n default:\n \"gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2\",\n sm: \"gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5\",\n xs: \"gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1\",\n },\n orientation: {\n horizontal: \"min-w-40 items-center\",\n vertical: \"w-24 flex-col has-data-[slot=attachment-content]:w-30\",\n },\n },\n }\n)\n\nfunction Attachment({\n className,\n state = \"done\",\n size = \"default\",\n orientation = \"horizontal\",\n ...props\n}: React.ComponentProps<\"div\"> &\n VariantProps & {\n state?: \"idle\" | \"uploading\" | \"processing\" | \"error\" | \"done\"\n }) {\n return (\n \n )\n}\n\nconst attachmentMediaVariants = cva(\n \"relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5\",\n {\n variants: {\n variant: {\n icon: \"\",\n image:\n \"opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover\",\n },\n },\n defaultVariants: {\n variant: \"icon\",\n },\n }\n)\n\nfunction AttachmentMedia({\n className,\n variant = \"icon\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps) {\n return (\n \n )\n}\n\nfunction AttachmentContent({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AttachmentTitle({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n )\n}\n\nfunction AttachmentDescription({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n )\n}\n\nfunction AttachmentActions({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AttachmentAction({\n className,\n variant,\n size = \"icon-xs\",\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AttachmentTrigger({\n className,\n asChild = false,\n type,\n ...props\n}: React.ComponentProps<\"button\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot.Root : \"button\"\n\n return (\n \n )\n}\n\nfunction AttachmentGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nexport {\n Attachment,\n AttachmentGroup,\n AttachmentMedia,\n AttachmentContent,\n AttachmentTitle,\n AttachmentDescription,\n AttachmentActions,\n AttachmentAction,\n AttachmentTrigger,\n}\n" } ] } ``` ### Avatar https://palmglow.dev/r/avatar.json ```json { "name": "avatar", "type": "registry:ui", "title": "Avatar", "description": "Image, initials, or icon in a fixed circular frame.", "dependencies": [ "cn", "radix-ui" ], "files": [ { "path": "components/ui/avatar.tsx", "type": "registry:ui", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\nimport { Avatar as AvatarPrimitive } from \"radix-ui\"\n\nfunction Avatar({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps & {\n size?: \"default\" | \"sm\" | \"lg\"\n}) {\n return (\n \n )\n}\n\nfunction AvatarImage({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n svg]:hidden\",\n \"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n \"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AvatarGroupCount({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Avatar,\n AvatarImage,\n AvatarFallback,\n AvatarBadge,\n AvatarGroup,\n AvatarGroupCount,\n}\n" } ] } ``` ### Badge https://palmglow.dev/r/badge.json ```json { "name": "badge", "type": "registry:ui", "title": "Badge", "description": "Small status label for counts, states, and metadata.", "dependencies": [ "class-variance-authority", "cn", "radix-ui" ], "files": [ { "path": "components/ui/badge.tsx", "type": "registry:ui", "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"cn\"\nimport { Slot } from \"radix-ui\"\n\nconst badgeVariants = cva(\n \"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90\",\n outline:\n \"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n ghost: \"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 [a&]:hover:underline\",\n signal:\n \"border-transparent bg-signal/20 text-signal ring-1 ring-signal/40\",\n dusk: \"border-transparent bg-dusk text-dusk-foreground font-semibold\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : \"span\"\n\n return (\n \n )\n}\n\nexport { Badge, badgeVariants }\n" } ] } ``` ### Breadcrumb https://palmglow.dev/r/breadcrumb.json ```json { "name": "breadcrumb", "type": "registry:ui", "title": "Breadcrumb", "description": "Trail of parent routes for deep pages.", "dependencies": [ "cn", "lucide-react", "radix-ui" ], "files": [ { "path": "components/ui/breadcrumb.tsx", "type": "registry:ui", "content": "import * as React from \"react\"\nimport { cn } from \"cn\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\nimport { Slot } from \"radix-ui\"\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return