Skip to content
ui8kit

lib / lib

Recipes

Recipes (Tailwind classes per variant/size/state) of the composed primitives

Install

npx ui8kit add recipes

Pulls in: utils

Preview

No static preview for this item: it needs content or a parent that this page cannot supply. The code is below.

Code

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdn
npx ui8kit add recipes
compose/recipes.ts
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// Token-only recipes of the compositions (source: packages/kit-compose/variants).
type R = { base: string; keys: string[]; defaults: Record<string, string>; byKey: Record<string, Record<string, string>>; compound: Array<Record<string, string>> };
export const RECIPES: Record<string, R> = {
  "alert": {
    "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-card text-card-foreground inset-ring-border",
        "destructive": "bg-muted text-destructive inset-ring-destructive",
        "success": "bg-card text-primary inset-ring-primary",
        "warning": "bg-accent text-accent-foreground inset-ring-border"
      }
    },
    "compound": []
  },
  "badge": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-5 px-2 text-xs",
        "default": "h-6 px-3 text-xs",
        "lg": "h-8 px-4 text-sm"
      },
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary",
        "secondary": "bg-muted text-foreground inset-ring-transparent",
        "outline": "bg-transparent text-foreground inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
      }
    },
    "compound": []
  },
  "block": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "box": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "button": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
    "keys": [
      "variant",
      "size",
      "layout"
    ],
    "defaults": {
      "variant": "default",
      "size": "default",
      "layout": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
        "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
        "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
        "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
        "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
      },
      "size": {
        "sm": "h-8 px-3 text-sm",
        "default": "h-10 px-4 text-sm",
        "lg": "h-12 px-6 text-base"
      },
      "layout": {
        "default": "",
        "icon": ""
      }
    },
    "compound": [
      {
        "layout": "icon",
        "size": "sm",
        "class": "size-8 p-0 [&>svg]:size-4"
      },
      {
        "layout": "icon",
        "size": "default",
        "class": "size-10 p-0 [&>svg]:size-5"
      },
      {
        "layout": "icon",
        "size": "lg",
        "class": "size-12 p-0 [&>svg]:size-6"
      },
      {
        "variant": "outline",
        "layout": "icon",
        "class": "text-muted-foreground"
      },
      {
        "variant": "ghost",
        "layout": "icon",
        "class": "text-muted-foreground"
      }
    ]
  },
  "button-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "card": {
    "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "",
        "muted": "bg-muted",
        "ghost": "bg-transparent",
        "compact": "gap-4 p-4"
      }
    },
    "compound": []
  },
  "checkbox": {
    "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5",
        "sm": "size-4"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "container": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "dialog": {
    "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "w-70",
        "full": "h-full w-full",
        "lg": "w-100",
        "xl": "w-140"
      },
      "variant": {
        "card": "bg-card text-card-foreground",
        "default": "",
        "sheet": "min-h-screen rounded-none"
      }
    },
    "compound": []
  },
  "disclosure": {
    "base": "group",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "card": "rounded bg-card inset-ring inset-ring-border",
        "default": "rounded inset-ring inset-ring-border",
        "ghost": "",
        "item": "border-b border-border last:border-b-0"
      }
    },
    "compound": []
  },
  "fieldset": {
    "base": "grid",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "gap-2",
        "lg": "gap-4",
        "sm": "gap-2"
      },
      "variant": {
        "card": "rounded p-4 inset-ring inset-ring-border",
        "default": "",
        "inline": "flex flex-wrap items-start gap-4"
      }
    },
    "compound": []
  },
  "form": {
    "base": "grid gap-4",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-description": {
    "base": "text-xs font-semibold text-muted-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-item": {
    "base": "flex flex-col gap-2",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-message": {
    "base": "text-xs font-semibold text-destructive",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "grid": {
    "base": "grid",
    "keys": [
      "cols"
    ],
    "defaults": {
      "cols": "1"
    },
    "byKey": {
      "cols": {
        "1": "grid-cols-1",
        "2": "grid-cols-2",
        "3": "grid-cols-3",
        "4": "grid-cols-4",
        "5": "grid-cols-5",
        "6": "grid-cols-6",
        "7": "grid-cols-7",
        "8": "grid-cols-8",
        "9": "grid-cols-9",
        "10": "grid-cols-10",
        "11": "grid-cols-11",
        "12": "grid-cols-12",
        "1-2": "grid-cols-1 md:grid-cols-2",
        "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
        "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
        "2-3": "grid-cols-2 md:grid-cols-3",
        "2-4": "grid-cols-2 md:grid-cols-4",
        "2-6": "grid-cols-2 md:grid-cols-6",
        "3-6": "grid-cols-3 md:grid-cols-6"
      }
    },
    "compound": []
  },
  "group": {
    "base": "flex min-w-0",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "center",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "icon": {
    "base": "inline-block shrink-0",
    "keys": [
      "size",
      "type"
    ],
    "defaults": {
      "size": "default",
      "type": "class"
    },
    "byKey": {
      "size": {
        "xs": "size-3",
        "default": "size-4",
        "md": "size-5",
        "lg": "size-6"
      },
      "type": {
        "class": "",
        "svg": "",
        "text": ""
      }
    },
    "compound": []
  },
  "iconbadge": {
    "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-muted-foreground",
        "primary": "bg-primary text-primary-foreground",
        "accent": "bg-accent text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground",
        "outline": "text-foreground inset-ring inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground"
      },
      "size": {
        "xs": "size-6 text-xs",
        "sm": "size-8 text-xs",
        "default": "size-10 text-xs",
        "lg": "size-12 text-sm",
        "xl": "size-20 text-base"
      }
    },
    "compound": []
  },
  "image": {
    "base": "block max-w-full",
    "keys": [
      "aspect",
      "fit",
      "position",
      "size",
      "variant"
    ],
    "defaults": {
      "aspect": "auto",
      "fit": "cover",
      "position": "center",
      "size": "auto",
      "variant": "default"
    },
    "byKey": {
      "aspect": {
        "auto": "aspect-auto",
        "square": "aspect-square",
        "video": "aspect-video"
      },
      "fit": {
        "contain": "object-contain",
        "cover": "object-cover",
        "fill": "object-fill",
        "none": "object-none",
        "scale-down": "object-scale-down"
      },
      "position": {
        "bottom": "object-bottom",
        "center": "object-center",
        "left": "object-left",
        "left-bottom": "object-left-bottom",
        "left-top": "object-left-top",
        "right": "object-right",
        "right-bottom": "object-right-bottom",
        "right-top": "object-right-top",
        "top": "object-top"
      },
      "size": {
        "auto": "",
        "default": "",
        "full": "h-full w-full",
        "xs": "size-6",
        "sm": "size-8",
        "md": "size-12",
        "lg": "size-16",
        "xl": "size-20"
      },
      "variant": {
        "default": "",
        "logo": "object-contain"
      }
    },
    "compound": []
  },
  "inline": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "input": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 px-3 text-base md:text-sm",
        "default": "h-10 px-3 text-base md:text-sm",
        "lg": "h-12 px-4 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "label": {
    "base": "text-xs font-bold text-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "legend": {
    "base": "font-bold",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs",
        "default": "text-sm",
        "lg": "text-base"
      },
      "variant": {
        "default": "",
        "muted": "text-muted-foreground"
      }
    },
    "compound": []
  },
  "link": {
    "base": "inline-flex items-center underline-offset-4",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "gap-2 text-sm font-medium",
        "default": "gap-2 text-base font-semibold",
        "md": "gap-2 text-xl font-semibold",
        "lg": "gap-2 text-2xl font-semibold"
      },
      "variant": {
        "block": "flex w-full text-foreground hover:text-primary",
        "default": "text-primary hover:underline",
        "external": "text-primary hover:underline",
        "muted": "text-muted-foreground hover:text-foreground",
        "nav": "text-foreground hover:text-primary"
      }
    },
    "compound": []
  },
  "link-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "list": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "lucide-icon": {
    "base": "inline-block shrink-0",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "meter": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "progress": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "prose": {
    "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
    "keys": [
      "size",
      "width"
    ],
    "defaults": {
      "size": "base",
      "width": "narrow"
    },
    "byKey": {
      "size": {
        "sm": "text-sm leading-6",
        "base": "text-base leading-6",
        "lg": "text-lg leading-8"
      },
      "width": {
        "narrow": "max-w-2xl",
        "wide": "max-w-4xl",
        "none": "max-w-none"
      }
    },
    "compound": []
  },
  "radio": {
    "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5 [--dot:10px]",
        "sm": "size-4 [--dot:8px]"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "range": {
    "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "select": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 pl-3 pr-2 text-sm",
        "default": "h-10 pl-3 pr-2 text-sm",
        "lg": "h-12 pl-4 pr-2 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "separator": {
    "base": "shrink-0 border-0 bg-border",
    "keys": [
      "orientation",
      "variant"
    ],
    "defaults": {
      "orientation": "horizontal",
      "variant": "default"
    },
    "byKey": {
      "orientation": {
        "horizontal": "h-px w-full",
        "vertical": "h-full w-px"
      },
      "variant": {
        "default": "",
        "spaced": "my-6"
      }
    },
    "compound": []
  },
  "sheet": {
    "base": "fixed inset-0 z-50 open:flex",
    "keys": [
      "side"
    ],
    "defaults": {
      "side": "right"
    },
    "byKey": {
      "side": {
        "left": "flex-row justify-start",
        "right": "flex-row justify-end"
      }
    },
    "compound": []
  },
  "sheettrigger": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "skeleton": {
    "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
    "keys": [
      "shape"
    ],
    "defaults": {
      "shape": "line"
    },
    "byKey": {
      "shape": {
        "line": "h-4 w-full",
        "block": "h-20 w-full"
      }
    },
    "compound": []
  },
  "stack": {
    "base": "flex flex-col",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "start",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "summary": {
    "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs font-semibold",
        "default": "text-sm font-semibold",
        "lg": "text-base font-semibold"
      },
      "variant": {
        "card": "py-2 pr-4 pl-4",
        "default": "py-2 pr-4 pl-4",
        "ghost": "py-2",
        "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
      }
    },
    "compound": []
  },
  "switch": {
    "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
    "keys": [
      "size"
    ],
    "defaults": {
      "size": "default"
    },
    "byKey": {
      "size": {
        "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
        "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
      }
    },
    "compound": []
  },
  "table": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-cell": {
    "base": "px-2 py-2 align-middle",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-head-cell": {
    "base": "px-2 py-2 text-left align-middle font-semibold",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "text": {
    "base": "",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "inherit"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold",
        "inherit": ""
      }
    },
    "compound": []
  },
  "textarea": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
        "default": "min-h-20 px-3 py-2 text-base md:text-sm",
        "lg": "min-h-24 px-4 py-3 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "themetoggle": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "title": {
    "base": "text-foreground",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "semibold"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold"
      }
    },
    "compound": []
  }
};

/** Classes of recipe `id` for the given values (unset = defaults), compound variants included. */
export function rc(id: string, values: Record<string, string | number | undefined>): string {
  const r = RECIPES[id];
  const pick = (k: string) => (values[k] === undefined || values[k] === "" ? r.defaults[k] : String(values[k]));
  const out = [r.base, ...r.keys.map((k) => r.byKey[k]?.[pick(k) ?? ""] ?? "")];
  for (const c of r.compound) {
    const { class: cls, ...when } = c;
    if (Object.entries(when).every(([k, v]) => pick(k) === v)) out.push(cls);
  }
  return out.filter(Boolean).join(" ");
}

Svelte registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdn
npx ui8kit add recipes
compose/recipes.ts
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// Token-only recipes of the compositions (source: packages/kit-compose/variants).
type R = { base: string; keys: string[]; defaults: Record<string, string>; byKey: Record<string, Record<string, string>>; compound: Array<Record<string, string>> };
export const RECIPES: Record<string, R> = {
  "alert": {
    "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-card text-card-foreground inset-ring-border",
        "destructive": "bg-muted text-destructive inset-ring-destructive",
        "success": "bg-card text-primary inset-ring-primary",
        "warning": "bg-accent text-accent-foreground inset-ring-border"
      }
    },
    "compound": []
  },
  "badge": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-5 px-2 text-xs",
        "default": "h-6 px-3 text-xs",
        "lg": "h-8 px-4 text-sm"
      },
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary",
        "secondary": "bg-muted text-foreground inset-ring-transparent",
        "outline": "bg-transparent text-foreground inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
      }
    },
    "compound": []
  },
  "block": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "box": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "button": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
    "keys": [
      "variant",
      "size",
      "layout"
    ],
    "defaults": {
      "variant": "default",
      "size": "default",
      "layout": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
        "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
        "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
        "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
        "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
      },
      "size": {
        "sm": "h-8 px-3 text-sm",
        "default": "h-10 px-4 text-sm",
        "lg": "h-12 px-6 text-base"
      },
      "layout": {
        "default": "",
        "icon": ""
      }
    },
    "compound": [
      {
        "layout": "icon",
        "size": "sm",
        "class": "size-8 p-0 [&>svg]:size-4"
      },
      {
        "layout": "icon",
        "size": "default",
        "class": "size-10 p-0 [&>svg]:size-5"
      },
      {
        "layout": "icon",
        "size": "lg",
        "class": "size-12 p-0 [&>svg]:size-6"
      },
      {
        "variant": "outline",
        "layout": "icon",
        "class": "text-muted-foreground"
      },
      {
        "variant": "ghost",
        "layout": "icon",
        "class": "text-muted-foreground"
      }
    ]
  },
  "button-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "card": {
    "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "",
        "muted": "bg-muted",
        "ghost": "bg-transparent",
        "compact": "gap-4 p-4"
      }
    },
    "compound": []
  },
  "checkbox": {
    "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5",
        "sm": "size-4"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "container": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "dialog": {
    "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "w-70",
        "full": "h-full w-full",
        "lg": "w-100",
        "xl": "w-140"
      },
      "variant": {
        "card": "bg-card text-card-foreground",
        "default": "",
        "sheet": "min-h-screen rounded-none"
      }
    },
    "compound": []
  },
  "disclosure": {
    "base": "group",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "card": "rounded bg-card inset-ring inset-ring-border",
        "default": "rounded inset-ring inset-ring-border",
        "ghost": "",
        "item": "border-b border-border last:border-b-0"
      }
    },
    "compound": []
  },
  "fieldset": {
    "base": "grid",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "gap-2",
        "lg": "gap-4",
        "sm": "gap-2"
      },
      "variant": {
        "card": "rounded p-4 inset-ring inset-ring-border",
        "default": "",
        "inline": "flex flex-wrap items-start gap-4"
      }
    },
    "compound": []
  },
  "form": {
    "base": "grid gap-4",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-description": {
    "base": "text-xs font-semibold text-muted-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-item": {
    "base": "flex flex-col gap-2",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-message": {
    "base": "text-xs font-semibold text-destructive",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "grid": {
    "base": "grid",
    "keys": [
      "cols"
    ],
    "defaults": {
      "cols": "1"
    },
    "byKey": {
      "cols": {
        "1": "grid-cols-1",
        "2": "grid-cols-2",
        "3": "grid-cols-3",
        "4": "grid-cols-4",
        "5": "grid-cols-5",
        "6": "grid-cols-6",
        "7": "grid-cols-7",
        "8": "grid-cols-8",
        "9": "grid-cols-9",
        "10": "grid-cols-10",
        "11": "grid-cols-11",
        "12": "grid-cols-12",
        "1-2": "grid-cols-1 md:grid-cols-2",
        "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
        "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
        "2-3": "grid-cols-2 md:grid-cols-3",
        "2-4": "grid-cols-2 md:grid-cols-4",
        "2-6": "grid-cols-2 md:grid-cols-6",
        "3-6": "grid-cols-3 md:grid-cols-6"
      }
    },
    "compound": []
  },
  "group": {
    "base": "flex min-w-0",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "center",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "icon": {
    "base": "inline-block shrink-0",
    "keys": [
      "size",
      "type"
    ],
    "defaults": {
      "size": "default",
      "type": "class"
    },
    "byKey": {
      "size": {
        "xs": "size-3",
        "default": "size-4",
        "md": "size-5",
        "lg": "size-6"
      },
      "type": {
        "class": "",
        "svg": "",
        "text": ""
      }
    },
    "compound": []
  },
  "iconbadge": {
    "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-muted-foreground",
        "primary": "bg-primary text-primary-foreground",
        "accent": "bg-accent text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground",
        "outline": "text-foreground inset-ring inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground"
      },
      "size": {
        "xs": "size-6 text-xs",
        "sm": "size-8 text-xs",
        "default": "size-10 text-xs",
        "lg": "size-12 text-sm",
        "xl": "size-20 text-base"
      }
    },
    "compound": []
  },
  "image": {
    "base": "block max-w-full",
    "keys": [
      "aspect",
      "fit",
      "position",
      "size",
      "variant"
    ],
    "defaults": {
      "aspect": "auto",
      "fit": "cover",
      "position": "center",
      "size": "auto",
      "variant": "default"
    },
    "byKey": {
      "aspect": {
        "auto": "aspect-auto",
        "square": "aspect-square",
        "video": "aspect-video"
      },
      "fit": {
        "contain": "object-contain",
        "cover": "object-cover",
        "fill": "object-fill",
        "none": "object-none",
        "scale-down": "object-scale-down"
      },
      "position": {
        "bottom": "object-bottom",
        "center": "object-center",
        "left": "object-left",
        "left-bottom": "object-left-bottom",
        "left-top": "object-left-top",
        "right": "object-right",
        "right-bottom": "object-right-bottom",
        "right-top": "object-right-top",
        "top": "object-top"
      },
      "size": {
        "auto": "",
        "default": "",
        "full": "h-full w-full",
        "xs": "size-6",
        "sm": "size-8",
        "md": "size-12",
        "lg": "size-16",
        "xl": "size-20"
      },
      "variant": {
        "default": "",
        "logo": "object-contain"
      }
    },
    "compound": []
  },
  "inline": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "input": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 px-3 text-base md:text-sm",
        "default": "h-10 px-3 text-base md:text-sm",
        "lg": "h-12 px-4 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "label": {
    "base": "text-xs font-bold text-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "legend": {
    "base": "font-bold",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs",
        "default": "text-sm",
        "lg": "text-base"
      },
      "variant": {
        "default": "",
        "muted": "text-muted-foreground"
      }
    },
    "compound": []
  },
  "link": {
    "base": "inline-flex items-center underline-offset-4",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "gap-2 text-sm font-medium",
        "default": "gap-2 text-base font-semibold",
        "md": "gap-2 text-xl font-semibold",
        "lg": "gap-2 text-2xl font-semibold"
      },
      "variant": {
        "block": "flex w-full text-foreground hover:text-primary",
        "default": "text-primary hover:underline",
        "external": "text-primary hover:underline",
        "muted": "text-muted-foreground hover:text-foreground",
        "nav": "text-foreground hover:text-primary"
      }
    },
    "compound": []
  },
  "link-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "list": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "lucide-icon": {
    "base": "inline-block shrink-0",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "meter": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "progress": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "prose": {
    "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
    "keys": [
      "size",
      "width"
    ],
    "defaults": {
      "size": "base",
      "width": "narrow"
    },
    "byKey": {
      "size": {
        "sm": "text-sm leading-6",
        "base": "text-base leading-6",
        "lg": "text-lg leading-8"
      },
      "width": {
        "narrow": "max-w-2xl",
        "wide": "max-w-4xl",
        "none": "max-w-none"
      }
    },
    "compound": []
  },
  "radio": {
    "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5 [--dot:10px]",
        "sm": "size-4 [--dot:8px]"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "range": {
    "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "select": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 pl-3 pr-2 text-sm",
        "default": "h-10 pl-3 pr-2 text-sm",
        "lg": "h-12 pl-4 pr-2 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "separator": {
    "base": "shrink-0 border-0 bg-border",
    "keys": [
      "orientation",
      "variant"
    ],
    "defaults": {
      "orientation": "horizontal",
      "variant": "default"
    },
    "byKey": {
      "orientation": {
        "horizontal": "h-px w-full",
        "vertical": "h-full w-px"
      },
      "variant": {
        "default": "",
        "spaced": "my-6"
      }
    },
    "compound": []
  },
  "sheet": {
    "base": "fixed inset-0 z-50 open:flex",
    "keys": [
      "side"
    ],
    "defaults": {
      "side": "right"
    },
    "byKey": {
      "side": {
        "left": "flex-row justify-start",
        "right": "flex-row justify-end"
      }
    },
    "compound": []
  },
  "sheettrigger": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "skeleton": {
    "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
    "keys": [
      "shape"
    ],
    "defaults": {
      "shape": "line"
    },
    "byKey": {
      "shape": {
        "line": "h-4 w-full",
        "block": "h-20 w-full"
      }
    },
    "compound": []
  },
  "stack": {
    "base": "flex flex-col",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "start",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "summary": {
    "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs font-semibold",
        "default": "text-sm font-semibold",
        "lg": "text-base font-semibold"
      },
      "variant": {
        "card": "py-2 pr-4 pl-4",
        "default": "py-2 pr-4 pl-4",
        "ghost": "py-2",
        "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
      }
    },
    "compound": []
  },
  "switch": {
    "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
    "keys": [
      "size"
    ],
    "defaults": {
      "size": "default"
    },
    "byKey": {
      "size": {
        "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
        "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
      }
    },
    "compound": []
  },
  "table": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-cell": {
    "base": "px-2 py-2 align-middle",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-head-cell": {
    "base": "px-2 py-2 text-left align-middle font-semibold",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "text": {
    "base": "",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "inherit"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold",
        "inherit": ""
      }
    },
    "compound": []
  },
  "textarea": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
        "default": "min-h-20 px-3 py-2 text-base md:text-sm",
        "lg": "min-h-24 px-4 py-3 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "themetoggle": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "title": {
    "base": "text-foreground",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "semibold"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold"
      }
    },
    "compound": []
  }
};

/** Classes of recipe `id` for the given values (unset = defaults), compound variants included. */
export function rc(id: string, values: Record<string, string | number | undefined>): string {
  const r = RECIPES[id];
  const pick = (k: string) => (values[k] === undefined || values[k] === "" ? r.defaults[k] : String(values[k]));
  const out = [r.base, ...r.keys.map((k) => r.byKey[k]?.[pick(k) ?? ""] ?? "")];
  for (const c of r.compound) {
    const { class: cls, ...when } = c;
    if (Object.entries(when).every(([k, v]) => pick(k) === v)) out.push(cls);
  }
  return out.filter(Boolean).join(" ");
}

React registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdn
npx ui8kit add recipes
compose/recipes.ts
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// Token-only recipes of the compositions (source: packages/kit-compose/variants).
type R = { base: string; keys: string[]; defaults: Record<string, string>; byKey: Record<string, Record<string, string>>; compound: Array<Record<string, string>> };
export const RECIPES: Record<string, R> = {
  "alert": {
    "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-card text-card-foreground inset-ring-border",
        "destructive": "bg-muted text-destructive inset-ring-destructive",
        "success": "bg-card text-primary inset-ring-primary",
        "warning": "bg-accent text-accent-foreground inset-ring-border"
      }
    },
    "compound": []
  },
  "badge": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-5 px-2 text-xs",
        "default": "h-6 px-3 text-xs",
        "lg": "h-8 px-4 text-sm"
      },
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary",
        "secondary": "bg-muted text-foreground inset-ring-transparent",
        "outline": "bg-transparent text-foreground inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
      }
    },
    "compound": []
  },
  "block": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "box": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "button": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
    "keys": [
      "variant",
      "size",
      "layout"
    ],
    "defaults": {
      "variant": "default",
      "size": "default",
      "layout": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
        "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
        "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
        "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
        "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
      },
      "size": {
        "sm": "h-8 px-3 text-sm",
        "default": "h-10 px-4 text-sm",
        "lg": "h-12 px-6 text-base"
      },
      "layout": {
        "default": "",
        "icon": ""
      }
    },
    "compound": [
      {
        "layout": "icon",
        "size": "sm",
        "class": "size-8 p-0 [&>svg]:size-4"
      },
      {
        "layout": "icon",
        "size": "default",
        "class": "size-10 p-0 [&>svg]:size-5"
      },
      {
        "layout": "icon",
        "size": "lg",
        "class": "size-12 p-0 [&>svg]:size-6"
      },
      {
        "variant": "outline",
        "layout": "icon",
        "class": "text-muted-foreground"
      },
      {
        "variant": "ghost",
        "layout": "icon",
        "class": "text-muted-foreground"
      }
    ]
  },
  "button-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "card": {
    "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "",
        "muted": "bg-muted",
        "ghost": "bg-transparent",
        "compact": "gap-4 p-4"
      }
    },
    "compound": []
  },
  "checkbox": {
    "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5",
        "sm": "size-4"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "container": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "dialog": {
    "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "w-70",
        "full": "h-full w-full",
        "lg": "w-100",
        "xl": "w-140"
      },
      "variant": {
        "card": "bg-card text-card-foreground",
        "default": "",
        "sheet": "min-h-screen rounded-none"
      }
    },
    "compound": []
  },
  "disclosure": {
    "base": "group",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "card": "rounded bg-card inset-ring inset-ring-border",
        "default": "rounded inset-ring inset-ring-border",
        "ghost": "",
        "item": "border-b border-border last:border-b-0"
      }
    },
    "compound": []
  },
  "fieldset": {
    "base": "grid",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "gap-2",
        "lg": "gap-4",
        "sm": "gap-2"
      },
      "variant": {
        "card": "rounded p-4 inset-ring inset-ring-border",
        "default": "",
        "inline": "flex flex-wrap items-start gap-4"
      }
    },
    "compound": []
  },
  "form": {
    "base": "grid gap-4",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-description": {
    "base": "text-xs font-semibold text-muted-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-item": {
    "base": "flex flex-col gap-2",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-message": {
    "base": "text-xs font-semibold text-destructive",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "grid": {
    "base": "grid",
    "keys": [
      "cols"
    ],
    "defaults": {
      "cols": "1"
    },
    "byKey": {
      "cols": {
        "1": "grid-cols-1",
        "2": "grid-cols-2",
        "3": "grid-cols-3",
        "4": "grid-cols-4",
        "5": "grid-cols-5",
        "6": "grid-cols-6",
        "7": "grid-cols-7",
        "8": "grid-cols-8",
        "9": "grid-cols-9",
        "10": "grid-cols-10",
        "11": "grid-cols-11",
        "12": "grid-cols-12",
        "1-2": "grid-cols-1 md:grid-cols-2",
        "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
        "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
        "2-3": "grid-cols-2 md:grid-cols-3",
        "2-4": "grid-cols-2 md:grid-cols-4",
        "2-6": "grid-cols-2 md:grid-cols-6",
        "3-6": "grid-cols-3 md:grid-cols-6"
      }
    },
    "compound": []
  },
  "group": {
    "base": "flex min-w-0",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "center",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "icon": {
    "base": "inline-block shrink-0",
    "keys": [
      "size",
      "type"
    ],
    "defaults": {
      "size": "default",
      "type": "class"
    },
    "byKey": {
      "size": {
        "xs": "size-3",
        "default": "size-4",
        "md": "size-5",
        "lg": "size-6"
      },
      "type": {
        "class": "",
        "svg": "",
        "text": ""
      }
    },
    "compound": []
  },
  "iconbadge": {
    "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-muted-foreground",
        "primary": "bg-primary text-primary-foreground",
        "accent": "bg-accent text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground",
        "outline": "text-foreground inset-ring inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground"
      },
      "size": {
        "xs": "size-6 text-xs",
        "sm": "size-8 text-xs",
        "default": "size-10 text-xs",
        "lg": "size-12 text-sm",
        "xl": "size-20 text-base"
      }
    },
    "compound": []
  },
  "image": {
    "base": "block max-w-full",
    "keys": [
      "aspect",
      "fit",
      "position",
      "size",
      "variant"
    ],
    "defaults": {
      "aspect": "auto",
      "fit": "cover",
      "position": "center",
      "size": "auto",
      "variant": "default"
    },
    "byKey": {
      "aspect": {
        "auto": "aspect-auto",
        "square": "aspect-square",
        "video": "aspect-video"
      },
      "fit": {
        "contain": "object-contain",
        "cover": "object-cover",
        "fill": "object-fill",
        "none": "object-none",
        "scale-down": "object-scale-down"
      },
      "position": {
        "bottom": "object-bottom",
        "center": "object-center",
        "left": "object-left",
        "left-bottom": "object-left-bottom",
        "left-top": "object-left-top",
        "right": "object-right",
        "right-bottom": "object-right-bottom",
        "right-top": "object-right-top",
        "top": "object-top"
      },
      "size": {
        "auto": "",
        "default": "",
        "full": "h-full w-full",
        "xs": "size-6",
        "sm": "size-8",
        "md": "size-12",
        "lg": "size-16",
        "xl": "size-20"
      },
      "variant": {
        "default": "",
        "logo": "object-contain"
      }
    },
    "compound": []
  },
  "inline": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "input": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 px-3 text-base md:text-sm",
        "default": "h-10 px-3 text-base md:text-sm",
        "lg": "h-12 px-4 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "label": {
    "base": "text-xs font-bold text-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "legend": {
    "base": "font-bold",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs",
        "default": "text-sm",
        "lg": "text-base"
      },
      "variant": {
        "default": "",
        "muted": "text-muted-foreground"
      }
    },
    "compound": []
  },
  "link": {
    "base": "inline-flex items-center underline-offset-4",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "gap-2 text-sm font-medium",
        "default": "gap-2 text-base font-semibold",
        "md": "gap-2 text-xl font-semibold",
        "lg": "gap-2 text-2xl font-semibold"
      },
      "variant": {
        "block": "flex w-full text-foreground hover:text-primary",
        "default": "text-primary hover:underline",
        "external": "text-primary hover:underline",
        "muted": "text-muted-foreground hover:text-foreground",
        "nav": "text-foreground hover:text-primary"
      }
    },
    "compound": []
  },
  "link-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "list": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "lucide-icon": {
    "base": "inline-block shrink-0",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "meter": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "progress": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "prose": {
    "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
    "keys": [
      "size",
      "width"
    ],
    "defaults": {
      "size": "base",
      "width": "narrow"
    },
    "byKey": {
      "size": {
        "sm": "text-sm leading-6",
        "base": "text-base leading-6",
        "lg": "text-lg leading-8"
      },
      "width": {
        "narrow": "max-w-2xl",
        "wide": "max-w-4xl",
        "none": "max-w-none"
      }
    },
    "compound": []
  },
  "radio": {
    "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5 [--dot:10px]",
        "sm": "size-4 [--dot:8px]"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "range": {
    "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "select": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 pl-3 pr-2 text-sm",
        "default": "h-10 pl-3 pr-2 text-sm",
        "lg": "h-12 pl-4 pr-2 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "separator": {
    "base": "shrink-0 border-0 bg-border",
    "keys": [
      "orientation",
      "variant"
    ],
    "defaults": {
      "orientation": "horizontal",
      "variant": "default"
    },
    "byKey": {
      "orientation": {
        "horizontal": "h-px w-full",
        "vertical": "h-full w-px"
      },
      "variant": {
        "default": "",
        "spaced": "my-6"
      }
    },
    "compound": []
  },
  "sheet": {
    "base": "fixed inset-0 z-50 open:flex",
    "keys": [
      "side"
    ],
    "defaults": {
      "side": "right"
    },
    "byKey": {
      "side": {
        "left": "flex-row justify-start",
        "right": "flex-row justify-end"
      }
    },
    "compound": []
  },
  "sheettrigger": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "skeleton": {
    "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
    "keys": [
      "shape"
    ],
    "defaults": {
      "shape": "line"
    },
    "byKey": {
      "shape": {
        "line": "h-4 w-full",
        "block": "h-20 w-full"
      }
    },
    "compound": []
  },
  "stack": {
    "base": "flex flex-col",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "start",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "summary": {
    "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs font-semibold",
        "default": "text-sm font-semibold",
        "lg": "text-base font-semibold"
      },
      "variant": {
        "card": "py-2 pr-4 pl-4",
        "default": "py-2 pr-4 pl-4",
        "ghost": "py-2",
        "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
      }
    },
    "compound": []
  },
  "switch": {
    "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
    "keys": [
      "size"
    ],
    "defaults": {
      "size": "default"
    },
    "byKey": {
      "size": {
        "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
        "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
      }
    },
    "compound": []
  },
  "table": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-cell": {
    "base": "px-2 py-2 align-middle",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-head-cell": {
    "base": "px-2 py-2 text-left align-middle font-semibold",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "text": {
    "base": "",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "inherit"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold",
        "inherit": ""
      }
    },
    "compound": []
  },
  "textarea": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
        "default": "min-h-20 px-3 py-2 text-base md:text-sm",
        "lg": "min-h-24 px-4 py-3 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "themetoggle": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "title": {
    "base": "text-foreground",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "semibold"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold"
      }
    },
    "compound": []
  }
};

/** Classes of recipe `id` for the given values (unset = defaults), compound variants included. */
export function rc(id: string, values: Record<string, string | number | undefined>): string {
  const r = RECIPES[id];
  const pick = (k: string) => (values[k] === undefined || values[k] === "" ? r.defaults[k] : String(values[k]));
  const out = [r.base, ...r.keys.map((k) => r.byKey[k]?.[pick(k) ?? ""] ?? "")];
  for (const c of r.compound) {
    const { class: cls, ...when } = c;
    if (Object.entries(when).every(([k, v]) => pick(k) === v)) out.push(cls);
  }
  return out.filter(Boolean).join(" ");
}

Vue registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdn
npx ui8kit add recipes
compose/recipes.ts
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// Token-only recipes of the compositions (source: packages/kit-compose/variants).
type R = { base: string; keys: string[]; defaults: Record<string, string>; byKey: Record<string, Record<string, string>>; compound: Array<Record<string, string>> };
export const RECIPES: Record<string, R> = {
  "alert": {
    "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-card text-card-foreground inset-ring-border",
        "destructive": "bg-muted text-destructive inset-ring-destructive",
        "success": "bg-card text-primary inset-ring-primary",
        "warning": "bg-accent text-accent-foreground inset-ring-border"
      }
    },
    "compound": []
  },
  "badge": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-5 px-2 text-xs",
        "default": "h-6 px-3 text-xs",
        "lg": "h-8 px-4 text-sm"
      },
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary",
        "secondary": "bg-muted text-foreground inset-ring-transparent",
        "outline": "bg-transparent text-foreground inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
      }
    },
    "compound": []
  },
  "block": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "box": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "button": {
    "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
    "keys": [
      "variant",
      "size",
      "layout"
    ],
    "defaults": {
      "variant": "default",
      "size": "default",
      "layout": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
        "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
        "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
        "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
        "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
      },
      "size": {
        "sm": "h-8 px-3 text-sm",
        "default": "h-10 px-4 text-sm",
        "lg": "h-12 px-6 text-base"
      },
      "layout": {
        "default": "",
        "icon": ""
      }
    },
    "compound": [
      {
        "layout": "icon",
        "size": "sm",
        "class": "size-8 p-0 [&>svg]:size-4"
      },
      {
        "layout": "icon",
        "size": "default",
        "class": "size-10 p-0 [&>svg]:size-5"
      },
      {
        "layout": "icon",
        "size": "lg",
        "class": "size-12 p-0 [&>svg]:size-6"
      },
      {
        "variant": "outline",
        "layout": "icon",
        "class": "text-muted-foreground"
      },
      {
        "variant": "ghost",
        "layout": "icon",
        "class": "text-muted-foreground"
      }
    ]
  },
  "button-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "card": {
    "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "default": "",
        "muted": "bg-muted",
        "ghost": "bg-transparent",
        "compact": "gap-4 p-4"
      }
    },
    "compound": []
  },
  "checkbox": {
    "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5",
        "sm": "size-4"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "container": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "dialog": {
    "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "w-70",
        "full": "h-full w-full",
        "lg": "w-100",
        "xl": "w-140"
      },
      "variant": {
        "card": "bg-card text-card-foreground",
        "default": "",
        "sheet": "min-h-screen rounded-none"
      }
    },
    "compound": []
  },
  "disclosure": {
    "base": "group",
    "keys": [
      "variant"
    ],
    "defaults": {
      "variant": "default"
    },
    "byKey": {
      "variant": {
        "card": "rounded bg-card inset-ring inset-ring-border",
        "default": "rounded inset-ring inset-ring-border",
        "ghost": "",
        "item": "border-b border-border last:border-b-0"
      }
    },
    "compound": []
  },
  "fieldset": {
    "base": "grid",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "gap-2",
        "lg": "gap-4",
        "sm": "gap-2"
      },
      "variant": {
        "card": "rounded p-4 inset-ring inset-ring-border",
        "default": "",
        "inline": "flex flex-wrap items-start gap-4"
      }
    },
    "compound": []
  },
  "form": {
    "base": "grid gap-4",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-description": {
    "base": "text-xs font-semibold text-muted-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-item": {
    "base": "flex flex-col gap-2",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "form-message": {
    "base": "text-xs font-semibold text-destructive",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "grid": {
    "base": "grid",
    "keys": [
      "cols"
    ],
    "defaults": {
      "cols": "1"
    },
    "byKey": {
      "cols": {
        "1": "grid-cols-1",
        "2": "grid-cols-2",
        "3": "grid-cols-3",
        "4": "grid-cols-4",
        "5": "grid-cols-5",
        "6": "grid-cols-6",
        "7": "grid-cols-7",
        "8": "grid-cols-8",
        "9": "grid-cols-9",
        "10": "grid-cols-10",
        "11": "grid-cols-11",
        "12": "grid-cols-12",
        "1-2": "grid-cols-1 md:grid-cols-2",
        "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
        "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
        "2-3": "grid-cols-2 md:grid-cols-3",
        "2-4": "grid-cols-2 md:grid-cols-4",
        "2-6": "grid-cols-2 md:grid-cols-6",
        "3-6": "grid-cols-3 md:grid-cols-6"
      }
    },
    "compound": []
  },
  "group": {
    "base": "flex min-w-0",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "center",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "icon": {
    "base": "inline-block shrink-0",
    "keys": [
      "size",
      "type"
    ],
    "defaults": {
      "size": "default",
      "type": "class"
    },
    "byKey": {
      "size": {
        "xs": "size-3",
        "default": "size-4",
        "md": "size-5",
        "lg": "size-6"
      },
      "type": {
        "class": "",
        "svg": "",
        "text": ""
      }
    },
    "compound": []
  },
  "iconbadge": {
    "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-muted-foreground",
        "primary": "bg-primary text-primary-foreground",
        "accent": "bg-accent text-accent-foreground",
        "secondary": "bg-secondary text-secondary-foreground",
        "outline": "text-foreground inset-ring inset-ring-border",
        "destructive": "bg-destructive text-destructive-foreground"
      },
      "size": {
        "xs": "size-6 text-xs",
        "sm": "size-8 text-xs",
        "default": "size-10 text-xs",
        "lg": "size-12 text-sm",
        "xl": "size-20 text-base"
      }
    },
    "compound": []
  },
  "image": {
    "base": "block max-w-full",
    "keys": [
      "aspect",
      "fit",
      "position",
      "size",
      "variant"
    ],
    "defaults": {
      "aspect": "auto",
      "fit": "cover",
      "position": "center",
      "size": "auto",
      "variant": "default"
    },
    "byKey": {
      "aspect": {
        "auto": "aspect-auto",
        "square": "aspect-square",
        "video": "aspect-video"
      },
      "fit": {
        "contain": "object-contain",
        "cover": "object-cover",
        "fill": "object-fill",
        "none": "object-none",
        "scale-down": "object-scale-down"
      },
      "position": {
        "bottom": "object-bottom",
        "center": "object-center",
        "left": "object-left",
        "left-bottom": "object-left-bottom",
        "left-top": "object-left-top",
        "right": "object-right",
        "right-bottom": "object-right-bottom",
        "right-top": "object-right-top",
        "top": "object-top"
      },
      "size": {
        "auto": "",
        "default": "",
        "full": "h-full w-full",
        "xs": "size-6",
        "sm": "size-8",
        "md": "size-12",
        "lg": "size-16",
        "xl": "size-20"
      },
      "variant": {
        "default": "",
        "logo": "object-contain"
      }
    },
    "compound": []
  },
  "inline": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "input": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 px-3 text-base md:text-sm",
        "default": "h-10 px-3 text-base md:text-sm",
        "lg": "h-12 px-4 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "label": {
    "base": "text-xs font-bold text-foreground",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "legend": {
    "base": "font-bold",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs",
        "default": "text-sm",
        "lg": "text-base"
      },
      "variant": {
        "default": "",
        "muted": "text-muted-foreground"
      }
    },
    "compound": []
  },
  "link": {
    "base": "inline-flex items-center underline-offset-4",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "gap-2 text-sm font-medium",
        "default": "gap-2 text-base font-semibold",
        "md": "gap-2 text-xl font-semibold",
        "lg": "gap-2 text-2xl font-semibold"
      },
      "variant": {
        "block": "flex w-full text-foreground hover:text-primary",
        "default": "text-primary hover:underline",
        "external": "text-primary hover:underline",
        "muted": "text-muted-foreground hover:text-foreground",
        "nav": "text-foreground hover:text-primary"
      }
    },
    "compound": []
  },
  "link-plain": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "list": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "lucide-icon": {
    "base": "inline-block shrink-0",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "meter": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "progress": {
    "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-1",
        "default": "h-2",
        "lg": "h-3"
      },
      "variant": {
        "default": "[--bar:var(--color-primary)]",
        "muted": "[--bar:var(--color-muted-foreground)]"
      }
    },
    "compound": []
  },
  "prose": {
    "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
    "keys": [
      "size",
      "width"
    ],
    "defaults": {
      "size": "base",
      "width": "narrow"
    },
    "byKey": {
      "size": {
        "sm": "text-sm leading-6",
        "base": "text-base leading-6",
        "lg": "text-lg leading-8"
      },
      "width": {
        "narrow": "max-w-2xl",
        "wide": "max-w-4xl",
        "none": "max-w-none"
      }
    },
    "compound": []
  },
  "radio": {
    "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "default": "size-5 [--dot:10px]",
        "sm": "size-4 [--dot:8px]"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted"
      }
    },
    "compound": []
  },
  "range": {
    "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "select": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "h-8 pl-3 pr-2 text-sm",
        "default": "h-10 pl-3 pr-2 text-sm",
        "lg": "h-12 pl-4 pr-2 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "separator": {
    "base": "shrink-0 border-0 bg-border",
    "keys": [
      "orientation",
      "variant"
    ],
    "defaults": {
      "orientation": "horizontal",
      "variant": "default"
    },
    "byKey": {
      "orientation": {
        "horizontal": "h-px w-full",
        "vertical": "h-full w-px"
      },
      "variant": {
        "default": "",
        "spaced": "my-6"
      }
    },
    "compound": []
  },
  "sheet": {
    "base": "fixed inset-0 z-50 open:flex",
    "keys": [
      "side"
    ],
    "defaults": {
      "side": "right"
    },
    "byKey": {
      "side": {
        "left": "flex-row justify-start",
        "right": "flex-row justify-end"
      }
    },
    "compound": []
  },
  "sheettrigger": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "skeleton": {
    "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
    "keys": [
      "shape"
    ],
    "defaults": {
      "shape": "line"
    },
    "byKey": {
      "shape": {
        "line": "h-4 w-full",
        "block": "h-20 w-full"
      }
    },
    "compound": []
  },
  "stack": {
    "base": "flex flex-col",
    "keys": [
      "gap",
      "align",
      "justify"
    ],
    "defaults": {
      "gap": "auto",
      "align": "start",
      "justify": "start"
    },
    "byKey": {
      "gap": {
        "0": "gap-0",
        "2": "gap-2",
        "4": "gap-4",
        "6": "gap-6",
        "8": "gap-8",
        "10": "gap-10",
        "12": "gap-12",
        "auto": ""
      },
      "align": {
        "start": "items-start",
        "center": "items-center",
        "end": "items-end",
        "stretch": "items-stretch",
        "baseline": "items-baseline"
      },
      "justify": {
        "start": "justify-start",
        "center": "justify-center",
        "end": "justify-end",
        "between": "justify-between"
      }
    },
    "compound": []
  },
  "summary": {
    "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
    "keys": [
      "size",
      "variant"
    ],
    "defaults": {
      "size": "default",
      "variant": "default"
    },
    "byKey": {
      "size": {
        "sm": "text-xs font-semibold",
        "default": "text-sm font-semibold",
        "lg": "text-base font-semibold"
      },
      "variant": {
        "card": "py-2 pr-4 pl-4",
        "default": "py-2 pr-4 pl-4",
        "ghost": "py-2",
        "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
      }
    },
    "compound": []
  },
  "switch": {
    "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
    "keys": [
      "size"
    ],
    "defaults": {
      "size": "default"
    },
    "byKey": {
      "size": {
        "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
        "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
      }
    },
    "compound": []
  },
  "table": {
    "base": "",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-cell": {
    "base": "px-2 py-2 align-middle",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "table-head-cell": {
    "base": "px-2 py-2 text-left align-middle font-semibold",
    "keys": [],
    "defaults": {},
    "byKey": {},
    "compound": []
  },
  "text": {
    "base": "",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "inherit"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold",
        "inherit": ""
      }
    },
    "compound": []
  },
  "textarea": {
    "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
    "keys": [
      "size",
      "variant",
      "state"
    ],
    "defaults": {
      "size": "default",
      "variant": "default",
      "state": "default"
    },
    "byKey": {
      "size": {
        "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
        "default": "min-h-20 px-3 py-2 text-base md:text-sm",
        "lg": "min-h-24 px-4 py-3 text-base"
      },
      "variant": {
        "default": "",
        "ghost": "bg-muted inset-ring-transparent"
      },
      "state": {
        "default": "",
        "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
      }
    },
    "compound": []
  },
  "themetoggle": {
    "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
    "keys": [
      "variant",
      "size"
    ],
    "defaults": {
      "variant": "default",
      "size": "default"
    },
    "byKey": {
      "variant": {
        "default": "bg-muted text-foreground hover:bg-accent",
        "ghost": "bg-transparent text-foreground hover:bg-muted",
        "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
        "current": "bg-transparent text-current hover:bg-current/10"
      },
      "size": {
        "sm": "size-8",
        "default": "size-10",
        "lg": "size-12"
      }
    },
    "compound": []
  },
  "title": {
    "base": "text-foreground",
    "keys": [
      "size",
      "weight"
    ],
    "defaults": {
      "size": "inherit",
      "weight": "semibold"
    },
    "byKey": {
      "size": {
        "xs": "text-xs",
        "sm": "text-sm",
        "base": "text-base",
        "lg": "text-lg",
        "xl": "text-xl",
        "2xl": "text-2xl",
        "3xl": "text-3xl",
        "4xl": "text-4xl",
        "5xl": "text-5xl",
        "inherit": ""
      },
      "weight": {
        "regular": "font-normal",
        "medium": "font-medium",
        "semibold": "font-semibold",
        "bold": "font-bold"
      }
    },
    "compound": []
  }
};

/** Classes of recipe `id` for the given values (unset = defaults), compound variants included. */
export function rc(id: string, values: Record<string, string | number | undefined>): string {
  const r = RECIPES[id];
  const pick = (k: string) => (values[k] === undefined || values[k] === "" ? r.defaults[k] : String(values[k]));
  const out = [r.base, ...r.keys.map((k) => r.byKey[k]?.[pick(k) ?? ""] ?? "")];
  for (const c of r.compound) {
    const { class: cls, ...when } = c;
    if (Object.entries(when).every(([k, v]) => pick(k) === v)) out.push(cls);
  }
  return out.filter(Boolean).join(" ");
}

Solid registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework templ --dir src --registry-url https://registry.buildy.tw/templ --strict-cdn
npx ui8kit add recipes
compose/compose.go
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.

// Package compose: codegen-x compositions over the installed UI8Kit 3 templ primitives (packages/kit/templ).
package compose

import (
	_ "embed"
	"encoding/json"
	"strconv"
	"strings"

	"github.com/a-h/templ"
)

//go:embed compose.json
var composeJSON []byte

type recipe struct {
	Base     string                       `json:"base"`
	Keys     []string                     `json:"keys"`
	Defaults map[string]string            `json:"defaults"`
	ByKey    map[string]map[string]string `json:"byKey"`
	Compound []map[string]string          `json:"compound"`
}

var recipes = func() map[string]recipe {
	var d struct {
		Recipes map[string]recipe `json:"recipes"`
	}
	if err := json.Unmarshal(composeJSON, &d); err != nil {
		panic(err)
	}
	return d.Recipes
}()

// Rc returns the classes of recipe id for the given values (unset = defaults), compound variants included.
func Rc(id string, values map[string]string) string {
	r := recipes[id]
	pick := func(k string) string {
		if v := values[k]; v != "" {
			return v
		}
		return r.Defaults[k]
	}
	out := []string{r.Base}
	for _, k := range r.Keys {
		out = append(out, r.ByKey[k][pick(k)])
	}
	for _, c := range r.Compound {
		hit := true
		for k, v := range c {
			if k != "class" && pick(k) != v {
				hit = false
			}
		}
		if hit {
			out = append(out, c["class"])
		}
	}
	return Join(out...)
}

// Join joins the non-empty class lists (the primitive merges them).
func Join(parts ...string) string {
	out := parts[:0:0]
	for _, p := range parts {
		if p != "" {
			out = append(out, p)
		}
	}
	return strings.Join(out, " ")
}

// Heading maps a heading level ("1".."6") to h1..h6, else fallback.
func Heading(as string, fallback string) string {
	if n, err := strconv.Atoi(as); err == nil && n >= 1 && n <= 6 {
		return "h" + as
	}
	return fallback
}

// Or returns v, or d when v is empty.
func Or(v, d string) string {
	if v == "" {
		return d
	}
	return v
}

// WithAttrs puts the fixed attributes under the caller's (the caller wins, as in the JS runtimes).
func WithAttrs(user templ.Attributes, fixed map[string]string) templ.Attributes {
	out := templ.Attributes{}
	for k, v := range fixed {
		out[k] = v
	}
	for k, v := range user {
		out[k] = v
	}
	return out
}
compose/compose.json
{
  "recipes": {
    "alert": {
      "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-card text-card-foreground inset-ring-border",
          "destructive": "bg-muted text-destructive inset-ring-destructive",
          "success": "bg-card text-primary inset-ring-primary",
          "warning": "bg-accent text-accent-foreground inset-ring-border"
        }
      },
      "compound": []
    },
    "badge": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-5 px-2 text-xs",
          "default": "h-6 px-3 text-xs",
          "lg": "h-8 px-4 text-sm"
        },
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary",
          "secondary": "bg-muted text-foreground inset-ring-transparent",
          "outline": "bg-transparent text-foreground inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
        }
      },
      "compound": []
    },
    "block": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "box": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "button": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "defaults": {
        "variant": "default",
        "size": "default",
        "layout": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
          "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
          "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
          "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
          "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
        },
        "size": {
          "sm": "h-8 px-3 text-sm",
          "default": "h-10 px-4 text-sm",
          "lg": "h-12 px-6 text-base"
        },
        "layout": {
          "default": "",
          "icon": ""
        }
      },
      "compound": [
        {
          "layout": "icon",
          "size": "sm",
          "class": "size-8 p-0 [&>svg]:size-4"
        },
        {
          "layout": "icon",
          "size": "default",
          "class": "size-10 p-0 [&>svg]:size-5"
        },
        {
          "layout": "icon",
          "size": "lg",
          "class": "size-12 p-0 [&>svg]:size-6"
        },
        {
          "variant": "outline",
          "layout": "icon",
          "class": "text-muted-foreground"
        },
        {
          "variant": "ghost",
          "layout": "icon",
          "class": "text-muted-foreground"
        }
      ]
    },
    "button-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "card": {
      "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "",
          "muted": "bg-muted",
          "ghost": "bg-transparent",
          "compact": "gap-4 p-4"
        }
      },
      "compound": []
    },
    "checkbox": {
      "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5",
          "sm": "size-4"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "container": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "dialog": {
      "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "w-70",
          "full": "h-full w-full",
          "lg": "w-100",
          "xl": "w-140"
        },
        "variant": {
          "card": "bg-card text-card-foreground",
          "default": "",
          "sheet": "min-h-screen rounded-none"
        }
      },
      "compound": []
    },
    "disclosure": {
      "base": "group",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "card": "rounded bg-card inset-ring inset-ring-border",
          "default": "rounded inset-ring inset-ring-border",
          "ghost": "",
          "item": "border-b border-border last:border-b-0"
        }
      },
      "compound": []
    },
    "fieldset": {
      "base": "grid",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "gap-2",
          "lg": "gap-4",
          "sm": "gap-2"
        },
        "variant": {
          "card": "rounded p-4 inset-ring inset-ring-border",
          "default": "",
          "inline": "flex flex-wrap items-start gap-4"
        }
      },
      "compound": []
    },
    "form": {
      "base": "grid gap-4",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-description": {
      "base": "text-xs font-semibold text-muted-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-item": {
      "base": "flex flex-col gap-2",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-message": {
      "base": "text-xs font-semibold text-destructive",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "grid": {
      "base": "grid",
      "keys": [
        "cols"
      ],
      "defaults": {
        "cols": "1"
      },
      "byKey": {
        "cols": {
          "1": "grid-cols-1",
          "2": "grid-cols-2",
          "3": "grid-cols-3",
          "4": "grid-cols-4",
          "5": "grid-cols-5",
          "6": "grid-cols-6",
          "7": "grid-cols-7",
          "8": "grid-cols-8",
          "9": "grid-cols-9",
          "10": "grid-cols-10",
          "11": "grid-cols-11",
          "12": "grid-cols-12",
          "1-2": "grid-cols-1 md:grid-cols-2",
          "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
          "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
          "2-3": "grid-cols-2 md:grid-cols-3",
          "2-4": "grid-cols-2 md:grid-cols-4",
          "2-6": "grid-cols-2 md:grid-cols-6",
          "3-6": "grid-cols-3 md:grid-cols-6"
        }
      },
      "compound": []
    },
    "group": {
      "base": "flex min-w-0",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "center",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "icon": {
      "base": "inline-block shrink-0",
      "keys": [
        "size",
        "type"
      ],
      "defaults": {
        "size": "default",
        "type": "class"
      },
      "byKey": {
        "size": {
          "xs": "size-3",
          "default": "size-4",
          "md": "size-5",
          "lg": "size-6"
        },
        "type": {
          "class": "",
          "svg": "",
          "text": ""
        }
      },
      "compound": []
    },
    "iconbadge": {
      "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-muted-foreground",
          "primary": "bg-primary text-primary-foreground",
          "accent": "bg-accent text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground",
          "outline": "text-foreground inset-ring inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground"
        },
        "size": {
          "xs": "size-6 text-xs",
          "sm": "size-8 text-xs",
          "default": "size-10 text-xs",
          "lg": "size-12 text-sm",
          "xl": "size-20 text-base"
        }
      },
      "compound": []
    },
    "image": {
      "base": "block max-w-full",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "defaults": {
        "aspect": "auto",
        "fit": "cover",
        "position": "center",
        "size": "auto",
        "variant": "default"
      },
      "byKey": {
        "aspect": {
          "auto": "aspect-auto",
          "square": "aspect-square",
          "video": "aspect-video"
        },
        "fit": {
          "contain": "object-contain",
          "cover": "object-cover",
          "fill": "object-fill",
          "none": "object-none",
          "scale-down": "object-scale-down"
        },
        "position": {
          "bottom": "object-bottom",
          "center": "object-center",
          "left": "object-left",
          "left-bottom": "object-left-bottom",
          "left-top": "object-left-top",
          "right": "object-right",
          "right-bottom": "object-right-bottom",
          "right-top": "object-right-top",
          "top": "object-top"
        },
        "size": {
          "auto": "",
          "default": "",
          "full": "h-full w-full",
          "xs": "size-6",
          "sm": "size-8",
          "md": "size-12",
          "lg": "size-16",
          "xl": "size-20"
        },
        "variant": {
          "default": "",
          "logo": "object-contain"
        }
      },
      "compound": []
    },
    "inline": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "input": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 px-3 text-base md:text-sm",
          "default": "h-10 px-3 text-base md:text-sm",
          "lg": "h-12 px-4 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "label": {
      "base": "text-xs font-bold text-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "legend": {
      "base": "font-bold",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs",
          "default": "text-sm",
          "lg": "text-base"
        },
        "variant": {
          "default": "",
          "muted": "text-muted-foreground"
        }
      },
      "compound": []
    },
    "link": {
      "base": "inline-flex items-center underline-offset-4",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "gap-2 text-sm font-medium",
          "default": "gap-2 text-base font-semibold",
          "md": "gap-2 text-xl font-semibold",
          "lg": "gap-2 text-2xl font-semibold"
        },
        "variant": {
          "block": "flex w-full text-foreground hover:text-primary",
          "default": "text-primary hover:underline",
          "external": "text-primary hover:underline",
          "muted": "text-muted-foreground hover:text-foreground",
          "nav": "text-foreground hover:text-primary"
        }
      },
      "compound": []
    },
    "link-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "list": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "lucide-icon": {
      "base": "inline-block shrink-0",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "meter": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "progress": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "prose": {
      "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
      "keys": [
        "size",
        "width"
      ],
      "defaults": {
        "size": "base",
        "width": "narrow"
      },
      "byKey": {
        "size": {
          "sm": "text-sm leading-6",
          "base": "text-base leading-6",
          "lg": "text-lg leading-8"
        },
        "width": {
          "narrow": "max-w-2xl",
          "wide": "max-w-4xl",
          "none": "max-w-none"
        }
      },
      "compound": []
    },
    "radio": {
      "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5 [--dot:10px]",
          "sm": "size-4 [--dot:8px]"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "range": {
      "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "select": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 pl-3 pr-2 text-sm",
          "default": "h-10 pl-3 pr-2 text-sm",
          "lg": "h-12 pl-4 pr-2 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "separator": {
      "base": "shrink-0 border-0 bg-border",
      "keys": [
        "orientation",
        "variant"
      ],
      "defaults": {
        "orientation": "horizontal",
        "variant": "default"
      },
      "byKey": {
        "orientation": {
          "horizontal": "h-px w-full",
          "vertical": "h-full w-px"
        },
        "variant": {
          "default": "",
          "spaced": "my-6"
        }
      },
      "compound": []
    },
    "sheet": {
      "base": "fixed inset-0 z-50 open:flex",
      "keys": [
        "side"
      ],
      "defaults": {
        "side": "right"
      },
      "byKey": {
        "side": {
          "left": "flex-row justify-start",
          "right": "flex-row justify-end"
        }
      },
      "compound": []
    },
    "sheettrigger": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "skeleton": {
      "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
      "keys": [
        "shape"
      ],
      "defaults": {
        "shape": "line"
      },
      "byKey": {
        "shape": {
          "line": "h-4 w-full",
          "block": "h-20 w-full"
        }
      },
      "compound": []
    },
    "stack": {
      "base": "flex flex-col",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "start",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "summary": {
      "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs font-semibold",
          "default": "text-sm font-semibold",
          "lg": "text-base font-semibold"
        },
        "variant": {
          "card": "py-2 pr-4 pl-4",
          "default": "py-2 pr-4 pl-4",
          "ghost": "py-2",
          "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
        }
      },
      "compound": []
    },
    "switch": {
      "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
      "keys": [
        "size"
      ],
      "defaults": {
        "size": "default"
      },
      "byKey": {
        "size": {
          "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
          "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
        }
      },
      "compound": []
    },
    "table": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-cell": {
      "base": "px-2 py-2 align-middle",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-head-cell": {
      "base": "px-2 py-2 text-left align-middle font-semibold",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "text": {
      "base": "",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "inherit"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold",
          "inherit": ""
        }
      },
      "compound": []
    },
    "textarea": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
          "default": "min-h-20 px-3 py-2 text-base md:text-sm",
          "lg": "min-h-24 px-4 py-3 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "themetoggle": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "title": {
      "base": "text-foreground",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "semibold"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold"
        }
      },
      "compound": []
    }
  },
  "compositions": {
    "Box": {
      "primitive": "Box",
      "recipe": "box",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Block": {
      "primitive": "Box",
      "recipe": "block",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Stack": {
      "primitive": "Box",
      "recipe": "stack",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Group": {
      "primitive": "Box",
      "recipe": "group",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Grid": {
      "primitive": "Box",
      "recipe": "grid",
      "keys": [
        "cols"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "GridCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Container": {
      "primitive": "Box",
      "recipe": "container",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Inline": {
      "primitive": "Text",
      "recipe": "inline",
      "keys": [],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "List": {
      "primitive": "Box",
      "recipe": "list",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "ul"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "ListItem": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "li",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Skeleton": {
      "primitive": "Box",
      "recipe": "skeleton",
      "keys": [
        "shape"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "aria-hidden": "true"
      }
    },
    "Prose": {
      "primitive": "Box",
      "recipe": "prose",
      "keys": [
        "size",
        "width"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Alert": {
      "primitive": "Box",
      "recipe": "alert",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "role": "alert",
        "data-slot": "alert"
      }
    },
    "Card": {
      "primitive": "Box",
      "recipe": "card",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "card"
      }
    },
    "CardHeader": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "grid auto-rows-min items-start gap-2",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardTitle": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "font-semibold leading-none",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h3"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardDescription": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "text-sm text-muted-foreground",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardContent": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardFooter": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "flex items-center",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Table": {
      "primitive": "Box",
      "recipe": "table",
      "keys": [],
      "extra": "",
      "tag": "table",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCaption": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "caption",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHead": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "thead",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableBody": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tbody",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableFoot": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tfoot",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableRow": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tr",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHeadCell": {
      "primitive": "Box",
      "recipe": "table-head-cell",
      "keys": [],
      "extra": "",
      "tag": "th",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCell": {
      "primitive": "Box",
      "recipe": "table-cell",
      "keys": [],
      "extra": "",
      "tag": "td",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableColGroup": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "colgroup",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "col",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Fieldset": {
      "primitive": "Box",
      "recipe": "fieldset",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "fieldset",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Legend": {
      "primitive": "Text",
      "recipe": "legend",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "legend",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormItem": {
      "primitive": "Box",
      "recipe": "form-item",
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormDescription": {
      "primitive": "Text",
      "recipe": "form-description",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormMessage": {
      "primitive": "Text",
      "recipe": "form-message",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Text": {
      "primitive": "Text",
      "recipe": "text",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "p"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Title": {
      "primitive": "Text",
      "recipe": "title",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h2"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Badge": {
      "primitive": "Text",
      "recipe": "badge",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "badge"
      }
    },
    "IconBadge": {
      "primitive": "Text",
      "recipe": "iconbadge",
      "keys": [
        "variant",
        "size"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LucideIcon": {
      "primitive": "Icon",
      "recipe": "lucide-icon",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Icon": {
      "primitive": "Icon",
      "recipe": "icon",
      "keys": [
        "size",
        "type"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Button": {
      "primitive": "Button",
      "recipe": "button",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "button"
      }
    },
    "ButtonPlain": {
      "primitive": "Button",
      "recipe": "button-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Link": {
      "primitive": "Link",
      "recipe": "link",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LinkPlain": {
      "primitive": "Link",
      "recipe": "link-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Label": {
      "primitive": "Label",
      "recipe": "label",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Form": {
      "primitive": "Form",
      "recipe": "form",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Input": {
      "primitive": "Input",
      "recipe": "input",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Range": {
      "primitive": "Input",
      "recipe": "range",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {
        "type": "range"
      },
      "fixedAttrs": {}
    },
    "Textarea": {
      "primitive": "Textarea",
      "recipe": "textarea",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Select": {
      "primitive": "Select",
      "recipe": "select",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Checkbox": {
      "primitive": "Checkbox",
      "recipe": "checkbox",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Radio": {
      "primitive": "Radio",
      "recipe": "radio",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Switch": {
      "primitive": "Switch",
      "recipe": "switch",
      "keys": [
        "size"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Image": {
      "primitive": "Image",
      "recipe": "image",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Separator": {
      "primitive": "Separator",
      "recipe": "separator",
      "keys": [
        "orientation",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Dialog": {
      "primitive": "Dialog",
      "recipe": "dialog",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Sheet": {
      "primitive": "Dialog",
      "recipe": "sheet",
      "keys": [
        "side"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Disclosure": {
      "primitive": "Disclosure",
      "recipe": "disclosure",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Summary": {
      "primitive": "Summary",
      "recipe": "summary",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "trail": "<span class=\"size-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180\" aria-hidden=\"true\" data-slot=\"summary-indicator\"></span>"
    },
    "Meter": {
      "primitive": "Meter",
      "recipe": "meter",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Progress": {
      "primitive": "Progress",
      "recipe": "progress",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    }
  }
}
compose/lucide.go
// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.

package compose

// Lucide icons (lucide.dev), markup shared with every runtime (src/manual.ts).
const lucideSun = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><path d=\"M12 2v2\"></path><path d=\"M12 20v2\"></path><path d=\"m4.93 4.93 1.41 1.41\"></path><path d=\"m17.66 17.66 1.41 1.41\"></path><path d=\"M2 12h2\"></path><path d=\"M20 12h2\"></path><path d=\"m6.34 17.66-1.41 1.41\"></path><path d=\"m19.07 4.93-1.41 1.41\"></path></svg>"
const lucideMoon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\"></path></svg>"
const lucideMenu = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 12h16\"></path><path d=\"M4 6h16\"></path><path d=\"M4 18h16\"></path></svg>"
const lucideX = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 6 6 18\"></path><path d=\"m6 6 12 12\"></path></svg>"

templ registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework twig --dir src --registry-url https://registry.buildy.tw/twig --strict-cdn
npx ui8kit add recipes
compose/Compose.php
<?php

// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// codegen-x compositions: props(name, params) -> the params of the installed primitive (recipe classes, tag, fixed props/attrs).

declare(strict_types=1);

namespace CodegenX\Compose\Twig;

final class Compose
{
    private static ?array $data = null;

    private static function data(): array
    {
        return self::$data ??= json_decode((string) file_get_contents(__DIR__ . '/compose.json'), true, 512, JSON_THROW_ON_ERROR);
    }

    private static function isSet(mixed $v): bool
    {
        return $v !== null && $v !== '';
    }

    public static function rc(string $id, array $values): string
    {
        $r = self::data()['recipes'][$id];
        $pick = static fn (string $k): string => self::isSet($values[$k] ?? null) ? (string) $values[$k] : (string) ($r['defaults'][$k] ?? '');
        $out = [$r['base']];
        foreach ($r['keys'] as $k) {
            $out[] = $r['byKey'][$k][$pick($k)] ?? '';
        }
        foreach ($r['compound'] as $c) {
            $hit = true;
            foreach ($c as $k => $v) {
                if ($k !== 'class' && $pick($k) !== $v) {
                    $hit = false;
                }
            }
            if ($hit) {
                $out[] = $c['class'];
            }
        }
        return implode(' ', array_filter($out, static fn ($x) => $x !== ''));
    }

    /** @param list<mixed> $parts */
    public static function join(array $parts): string
    {
        return implode(' ', array_filter(array_map('strval', $parts), static fn ($x) => $x !== ''));
    }

    public static function props(string $name, array $p): array
    {
        $s = self::data()['compositions'][$name];
        $q = array_filter($p, static fn ($k) => !is_string($k) || $k === '' || $k[0] !== '_', ARRAY_FILTER_USE_KEY);
        $values = [];
        foreach ($s['keys'] as $k) {
            $values[$k] = $q[$k] ?? null;
            unset($q[$k]);
        }
        $as = $q['as'] ?? null;
        if ($s['tagFrom'] !== null && $s['tagFrom']['heading']) {
            unset($q['as']);
        }
        $q['class'] = implode(' ', array_filter([$s['recipe'] !== null ? self::rc($s['recipe'], $values) : '', $s['extra'], (string) ($q['class'] ?? '')], static fn ($x) => $x !== ''));
        if ($s['tag'] !== null) {
            $q['tag'] = $s['tag'];
        } elseif ($s['tagFrom'] !== null && $s['tagFrom']['heading']) {
            $n = is_numeric($as) ? (int) $as : 0;
            $q['tag'] = $n >= 1 && $n <= 6 ? 'h' . $n : $s['tagFrom']['fallback'];
        } elseif ($s['tagFrom'] !== null) {
            $q['tag'] = $q['tag'] ?? $s['tagFrom']['fallback'];
            if ($q['tag'] === '') {
                $q['tag'] = $s['tagFrom']['fallback'];
            }
        }
        foreach ($s['fixedProps'] as $k => $v) {
            if (!self::isSet($q[$k] ?? null)) {
                $q[$k] = $v;
            }
        }
        if ($s['fixedAttrs'] !== []) {
            $q['attrs'] = array_merge($s['fixedAttrs'], (array) ($q['attrs'] ?? []));
        }
        $im = $s['implies'] ?? null;
        if ($im !== null && ($values[$im['key']] ?? null) === $im['value'] && !self::isSet($q[$im['prop']] ?? null)) {
            $q[$im['prop']] = $im['set'];
        }
        if (isset($s['trail'])) {
            $q['children'] = (string) ($q['children'] ?? '') . $s['trail'];
        }
        return $q;
    }
}
compose/ComposeExtension.php
<?php

// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.

declare(strict_types=1);

namespace CodegenX\Compose\Twig;

use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

/** compose_props(name, _context): register next to the kit's \UI8Kit\Twig\TwigExtension. */
final class ComposeExtension extends AbstractExtension
{
    public function getFunctions(): array
    {
        return [
            new TwigFunction('compose_props', [Compose::class, 'props']),
            new TwigFunction('compose_rc', [Compose::class, 'rc']),
            new TwigFunction('compose_join', [Compose::class, 'join']),
        ];
    }
}
compose/compose.json
{
  "recipes": {
    "alert": {
      "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-card text-card-foreground inset-ring-border",
          "destructive": "bg-muted text-destructive inset-ring-destructive",
          "success": "bg-card text-primary inset-ring-primary",
          "warning": "bg-accent text-accent-foreground inset-ring-border"
        }
      },
      "compound": []
    },
    "badge": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-5 px-2 text-xs",
          "default": "h-6 px-3 text-xs",
          "lg": "h-8 px-4 text-sm"
        },
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary",
          "secondary": "bg-muted text-foreground inset-ring-transparent",
          "outline": "bg-transparent text-foreground inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
        }
      },
      "compound": []
    },
    "block": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "box": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "button": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "defaults": {
        "variant": "default",
        "size": "default",
        "layout": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
          "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
          "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
          "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
          "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
        },
        "size": {
          "sm": "h-8 px-3 text-sm",
          "default": "h-10 px-4 text-sm",
          "lg": "h-12 px-6 text-base"
        },
        "layout": {
          "default": "",
          "icon": ""
        }
      },
      "compound": [
        {
          "layout": "icon",
          "size": "sm",
          "class": "size-8 p-0 [&>svg]:size-4"
        },
        {
          "layout": "icon",
          "size": "default",
          "class": "size-10 p-0 [&>svg]:size-5"
        },
        {
          "layout": "icon",
          "size": "lg",
          "class": "size-12 p-0 [&>svg]:size-6"
        },
        {
          "variant": "outline",
          "layout": "icon",
          "class": "text-muted-foreground"
        },
        {
          "variant": "ghost",
          "layout": "icon",
          "class": "text-muted-foreground"
        }
      ]
    },
    "button-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "card": {
      "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "",
          "muted": "bg-muted",
          "ghost": "bg-transparent",
          "compact": "gap-4 p-4"
        }
      },
      "compound": []
    },
    "checkbox": {
      "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5",
          "sm": "size-4"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "container": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "dialog": {
      "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "w-70",
          "full": "h-full w-full",
          "lg": "w-100",
          "xl": "w-140"
        },
        "variant": {
          "card": "bg-card text-card-foreground",
          "default": "",
          "sheet": "min-h-screen rounded-none"
        }
      },
      "compound": []
    },
    "disclosure": {
      "base": "group",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "card": "rounded bg-card inset-ring inset-ring-border",
          "default": "rounded inset-ring inset-ring-border",
          "ghost": "",
          "item": "border-b border-border last:border-b-0"
        }
      },
      "compound": []
    },
    "fieldset": {
      "base": "grid",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "gap-2",
          "lg": "gap-4",
          "sm": "gap-2"
        },
        "variant": {
          "card": "rounded p-4 inset-ring inset-ring-border",
          "default": "",
          "inline": "flex flex-wrap items-start gap-4"
        }
      },
      "compound": []
    },
    "form": {
      "base": "grid gap-4",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-description": {
      "base": "text-xs font-semibold text-muted-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-item": {
      "base": "flex flex-col gap-2",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-message": {
      "base": "text-xs font-semibold text-destructive",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "grid": {
      "base": "grid",
      "keys": [
        "cols"
      ],
      "defaults": {
        "cols": "1"
      },
      "byKey": {
        "cols": {
          "1": "grid-cols-1",
          "2": "grid-cols-2",
          "3": "grid-cols-3",
          "4": "grid-cols-4",
          "5": "grid-cols-5",
          "6": "grid-cols-6",
          "7": "grid-cols-7",
          "8": "grid-cols-8",
          "9": "grid-cols-9",
          "10": "grid-cols-10",
          "11": "grid-cols-11",
          "12": "grid-cols-12",
          "1-2": "grid-cols-1 md:grid-cols-2",
          "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
          "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
          "2-3": "grid-cols-2 md:grid-cols-3",
          "2-4": "grid-cols-2 md:grid-cols-4",
          "2-6": "grid-cols-2 md:grid-cols-6",
          "3-6": "grid-cols-3 md:grid-cols-6"
        }
      },
      "compound": []
    },
    "group": {
      "base": "flex min-w-0",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "center",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "icon": {
      "base": "inline-block shrink-0",
      "keys": [
        "size",
        "type"
      ],
      "defaults": {
        "size": "default",
        "type": "class"
      },
      "byKey": {
        "size": {
          "xs": "size-3",
          "default": "size-4",
          "md": "size-5",
          "lg": "size-6"
        },
        "type": {
          "class": "",
          "svg": "",
          "text": ""
        }
      },
      "compound": []
    },
    "iconbadge": {
      "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-muted-foreground",
          "primary": "bg-primary text-primary-foreground",
          "accent": "bg-accent text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground",
          "outline": "text-foreground inset-ring inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground"
        },
        "size": {
          "xs": "size-6 text-xs",
          "sm": "size-8 text-xs",
          "default": "size-10 text-xs",
          "lg": "size-12 text-sm",
          "xl": "size-20 text-base"
        }
      },
      "compound": []
    },
    "image": {
      "base": "block max-w-full",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "defaults": {
        "aspect": "auto",
        "fit": "cover",
        "position": "center",
        "size": "auto",
        "variant": "default"
      },
      "byKey": {
        "aspect": {
          "auto": "aspect-auto",
          "square": "aspect-square",
          "video": "aspect-video"
        },
        "fit": {
          "contain": "object-contain",
          "cover": "object-cover",
          "fill": "object-fill",
          "none": "object-none",
          "scale-down": "object-scale-down"
        },
        "position": {
          "bottom": "object-bottom",
          "center": "object-center",
          "left": "object-left",
          "left-bottom": "object-left-bottom",
          "left-top": "object-left-top",
          "right": "object-right",
          "right-bottom": "object-right-bottom",
          "right-top": "object-right-top",
          "top": "object-top"
        },
        "size": {
          "auto": "",
          "default": "",
          "full": "h-full w-full",
          "xs": "size-6",
          "sm": "size-8",
          "md": "size-12",
          "lg": "size-16",
          "xl": "size-20"
        },
        "variant": {
          "default": "",
          "logo": "object-contain"
        }
      },
      "compound": []
    },
    "inline": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "input": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 px-3 text-base md:text-sm",
          "default": "h-10 px-3 text-base md:text-sm",
          "lg": "h-12 px-4 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "label": {
      "base": "text-xs font-bold text-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "legend": {
      "base": "font-bold",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs",
          "default": "text-sm",
          "lg": "text-base"
        },
        "variant": {
          "default": "",
          "muted": "text-muted-foreground"
        }
      },
      "compound": []
    },
    "link": {
      "base": "inline-flex items-center underline-offset-4",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "gap-2 text-sm font-medium",
          "default": "gap-2 text-base font-semibold",
          "md": "gap-2 text-xl font-semibold",
          "lg": "gap-2 text-2xl font-semibold"
        },
        "variant": {
          "block": "flex w-full text-foreground hover:text-primary",
          "default": "text-primary hover:underline",
          "external": "text-primary hover:underline",
          "muted": "text-muted-foreground hover:text-foreground",
          "nav": "text-foreground hover:text-primary"
        }
      },
      "compound": []
    },
    "link-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "list": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "lucide-icon": {
      "base": "inline-block shrink-0",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "meter": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "progress": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "prose": {
      "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
      "keys": [
        "size",
        "width"
      ],
      "defaults": {
        "size": "base",
        "width": "narrow"
      },
      "byKey": {
        "size": {
          "sm": "text-sm leading-6",
          "base": "text-base leading-6",
          "lg": "text-lg leading-8"
        },
        "width": {
          "narrow": "max-w-2xl",
          "wide": "max-w-4xl",
          "none": "max-w-none"
        }
      },
      "compound": []
    },
    "radio": {
      "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5 [--dot:10px]",
          "sm": "size-4 [--dot:8px]"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "range": {
      "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "select": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 pl-3 pr-2 text-sm",
          "default": "h-10 pl-3 pr-2 text-sm",
          "lg": "h-12 pl-4 pr-2 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "separator": {
      "base": "shrink-0 border-0 bg-border",
      "keys": [
        "orientation",
        "variant"
      ],
      "defaults": {
        "orientation": "horizontal",
        "variant": "default"
      },
      "byKey": {
        "orientation": {
          "horizontal": "h-px w-full",
          "vertical": "h-full w-px"
        },
        "variant": {
          "default": "",
          "spaced": "my-6"
        }
      },
      "compound": []
    },
    "sheet": {
      "base": "fixed inset-0 z-50 open:flex",
      "keys": [
        "side"
      ],
      "defaults": {
        "side": "right"
      },
      "byKey": {
        "side": {
          "left": "flex-row justify-start",
          "right": "flex-row justify-end"
        }
      },
      "compound": []
    },
    "sheettrigger": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "skeleton": {
      "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
      "keys": [
        "shape"
      ],
      "defaults": {
        "shape": "line"
      },
      "byKey": {
        "shape": {
          "line": "h-4 w-full",
          "block": "h-20 w-full"
        }
      },
      "compound": []
    },
    "stack": {
      "base": "flex flex-col",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "start",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "summary": {
      "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs font-semibold",
          "default": "text-sm font-semibold",
          "lg": "text-base font-semibold"
        },
        "variant": {
          "card": "py-2 pr-4 pl-4",
          "default": "py-2 pr-4 pl-4",
          "ghost": "py-2",
          "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
        }
      },
      "compound": []
    },
    "switch": {
      "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
      "keys": [
        "size"
      ],
      "defaults": {
        "size": "default"
      },
      "byKey": {
        "size": {
          "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
          "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
        }
      },
      "compound": []
    },
    "table": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-cell": {
      "base": "px-2 py-2 align-middle",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-head-cell": {
      "base": "px-2 py-2 text-left align-middle font-semibold",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "text": {
      "base": "",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "inherit"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold",
          "inherit": ""
        }
      },
      "compound": []
    },
    "textarea": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
          "default": "min-h-20 px-3 py-2 text-base md:text-sm",
          "lg": "min-h-24 px-4 py-3 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "themetoggle": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "title": {
      "base": "text-foreground",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "semibold"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold"
        }
      },
      "compound": []
    }
  },
  "compositions": {
    "Box": {
      "primitive": "Box",
      "recipe": "box",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Block": {
      "primitive": "Box",
      "recipe": "block",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Stack": {
      "primitive": "Box",
      "recipe": "stack",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Group": {
      "primitive": "Box",
      "recipe": "group",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Grid": {
      "primitive": "Box",
      "recipe": "grid",
      "keys": [
        "cols"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "GridCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Container": {
      "primitive": "Box",
      "recipe": "container",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Inline": {
      "primitive": "Text",
      "recipe": "inline",
      "keys": [],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "List": {
      "primitive": "Box",
      "recipe": "list",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "ul"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "ListItem": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "li",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Skeleton": {
      "primitive": "Box",
      "recipe": "skeleton",
      "keys": [
        "shape"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "aria-hidden": "true"
      }
    },
    "Prose": {
      "primitive": "Box",
      "recipe": "prose",
      "keys": [
        "size",
        "width"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Alert": {
      "primitive": "Box",
      "recipe": "alert",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "role": "alert",
        "data-slot": "alert"
      }
    },
    "Card": {
      "primitive": "Box",
      "recipe": "card",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "card"
      }
    },
    "CardHeader": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "grid auto-rows-min items-start gap-2",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardTitle": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "font-semibold leading-none",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h3"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardDescription": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "text-sm text-muted-foreground",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardContent": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardFooter": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "flex items-center",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Table": {
      "primitive": "Box",
      "recipe": "table",
      "keys": [],
      "extra": "",
      "tag": "table",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCaption": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "caption",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHead": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "thead",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableBody": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tbody",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableFoot": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tfoot",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableRow": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tr",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHeadCell": {
      "primitive": "Box",
      "recipe": "table-head-cell",
      "keys": [],
      "extra": "",
      "tag": "th",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCell": {
      "primitive": "Box",
      "recipe": "table-cell",
      "keys": [],
      "extra": "",
      "tag": "td",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableColGroup": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "colgroup",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "col",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Fieldset": {
      "primitive": "Box",
      "recipe": "fieldset",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "fieldset",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Legend": {
      "primitive": "Text",
      "recipe": "legend",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "legend",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormItem": {
      "primitive": "Box",
      "recipe": "form-item",
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormDescription": {
      "primitive": "Text",
      "recipe": "form-description",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormMessage": {
      "primitive": "Text",
      "recipe": "form-message",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Text": {
      "primitive": "Text",
      "recipe": "text",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "p"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Title": {
      "primitive": "Text",
      "recipe": "title",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h2"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Badge": {
      "primitive": "Text",
      "recipe": "badge",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "badge"
      }
    },
    "IconBadge": {
      "primitive": "Text",
      "recipe": "iconbadge",
      "keys": [
        "variant",
        "size"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LucideIcon": {
      "primitive": "Icon",
      "recipe": "lucide-icon",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Icon": {
      "primitive": "Icon",
      "recipe": "icon",
      "keys": [
        "size",
        "type"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Button": {
      "primitive": "Button",
      "recipe": "button",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "button"
      }
    },
    "ButtonPlain": {
      "primitive": "Button",
      "recipe": "button-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Link": {
      "primitive": "Link",
      "recipe": "link",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LinkPlain": {
      "primitive": "Link",
      "recipe": "link-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Label": {
      "primitive": "Label",
      "recipe": "label",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Form": {
      "primitive": "Form",
      "recipe": "form",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Input": {
      "primitive": "Input",
      "recipe": "input",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Range": {
      "primitive": "Input",
      "recipe": "range",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {
        "type": "range"
      },
      "fixedAttrs": {}
    },
    "Textarea": {
      "primitive": "Textarea",
      "recipe": "textarea",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Select": {
      "primitive": "Select",
      "recipe": "select",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Checkbox": {
      "primitive": "Checkbox",
      "recipe": "checkbox",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Radio": {
      "primitive": "Radio",
      "recipe": "radio",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Switch": {
      "primitive": "Switch",
      "recipe": "switch",
      "keys": [
        "size"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Image": {
      "primitive": "Image",
      "recipe": "image",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Separator": {
      "primitive": "Separator",
      "recipe": "separator",
      "keys": [
        "orientation",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Dialog": {
      "primitive": "Dialog",
      "recipe": "dialog",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Sheet": {
      "primitive": "Dialog",
      "recipe": "sheet",
      "keys": [
        "side"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Disclosure": {
      "primitive": "Disclosure",
      "recipe": "disclosure",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Summary": {
      "primitive": "Summary",
      "recipe": "summary",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "trail": "<span class=\"size-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180\" aria-hidden=\"true\" data-slot=\"summary-indicator\"></span>"
    },
    "Meter": {
      "primitive": "Meter",
      "recipe": "meter",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Progress": {
      "primitive": "Progress",
      "recipe": "progress",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    }
  }
}

Twig registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework latte --dir src --registry-url https://registry.buildy.tw/latte --strict-cdn
npx ui8kit add recipes
compose/Compose.php
<?php

// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
// codegen-x compositions: props(name, params) -> the params of the installed primitive (recipe classes, tag, fixed props/attrs).

declare(strict_types=1);

namespace CodegenX\Compose\Latte;

final class Compose
{
    private static ?array $data = null;

    private static function data(): array
    {
        return self::$data ??= json_decode((string) file_get_contents(__DIR__ . '/compose.json'), true, 512, JSON_THROW_ON_ERROR);
    }

    private static function isSet(mixed $v): bool
    {
        return $v !== null && $v !== '';
    }

    public static function rc(string $id, array $values): string
    {
        $r = self::data()['recipes'][$id];
        $pick = static fn (string $k): string => self::isSet($values[$k] ?? null) ? (string) $values[$k] : (string) ($r['defaults'][$k] ?? '');
        $out = [$r['base']];
        foreach ($r['keys'] as $k) {
            $out[] = $r['byKey'][$k][$pick($k)] ?? '';
        }
        foreach ($r['compound'] as $c) {
            $hit = true;
            foreach ($c as $k => $v) {
                if ($k !== 'class' && $pick($k) !== $v) {
                    $hit = false;
                }
            }
            if ($hit) {
                $out[] = $c['class'];
            }
        }
        return implode(' ', array_filter($out, static fn ($x) => $x !== ''));
    }

    /** @param list<mixed> $parts */
    public static function join(array $parts): string
    {
        return implode(' ', array_filter(array_map('strval', $parts), static fn ($x) => $x !== ''));
    }

    public static function props(string $name, array $p): array
    {
        $s = self::data()['compositions'][$name];
        $q = array_filter($p, static fn ($k) => !is_string($k) || $k === '' || $k[0] !== '_', ARRAY_FILTER_USE_KEY);
        $values = [];
        foreach ($s['keys'] as $k) {
            $values[$k] = $q[$k] ?? null;
            unset($q[$k]);
        }
        $as = $q['as'] ?? null;
        if ($s['tagFrom'] !== null && $s['tagFrom']['heading']) {
            unset($q['as']);
        }
        $q['class'] = implode(' ', array_filter([$s['recipe'] !== null ? self::rc($s['recipe'], $values) : '', $s['extra'], (string) ($q['class'] ?? '')], static fn ($x) => $x !== ''));
        if ($s['tag'] !== null) {
            $q['tag'] = $s['tag'];
        } elseif ($s['tagFrom'] !== null && $s['tagFrom']['heading']) {
            $n = is_numeric($as) ? (int) $as : 0;
            $q['tag'] = $n >= 1 && $n <= 6 ? 'h' . $n : $s['tagFrom']['fallback'];
        } elseif ($s['tagFrom'] !== null) {
            $q['tag'] = $q['tag'] ?? $s['tagFrom']['fallback'];
            if ($q['tag'] === '') {
                $q['tag'] = $s['tagFrom']['fallback'];
            }
        }
        foreach ($s['fixedProps'] as $k => $v) {
            if (!self::isSet($q[$k] ?? null)) {
                $q[$k] = $v;
            }
        }
        if ($s['fixedAttrs'] !== []) {
            $q['attrs'] = array_merge($s['fixedAttrs'], (array) ($q['attrs'] ?? []));
        }
        $im = $s['implies'] ?? null;
        if ($im !== null && ($values[$im['key']] ?? null) === $im['value'] && !self::isSet($q[$im['prop']] ?? null)) {
            $q[$im['prop']] = $im['set'];
        }
        if (isset($s['trail'])) {
            $q['children'] = (string) ($q['children'] ?? '') . $s['trail'];
        }
        return $q;
    }
}
compose/compose.json
{
  "recipes": {
    "alert": {
      "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-card text-card-foreground inset-ring-border",
          "destructive": "bg-muted text-destructive inset-ring-destructive",
          "success": "bg-card text-primary inset-ring-primary",
          "warning": "bg-accent text-accent-foreground inset-ring-border"
        }
      },
      "compound": []
    },
    "badge": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-5 px-2 text-xs",
          "default": "h-6 px-3 text-xs",
          "lg": "h-8 px-4 text-sm"
        },
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary",
          "secondary": "bg-muted text-foreground inset-ring-transparent",
          "outline": "bg-transparent text-foreground inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
        }
      },
      "compound": []
    },
    "block": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "box": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "button": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "defaults": {
        "variant": "default",
        "size": "default",
        "layout": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
          "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
          "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
          "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
          "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
        },
        "size": {
          "sm": "h-8 px-3 text-sm",
          "default": "h-10 px-4 text-sm",
          "lg": "h-12 px-6 text-base"
        },
        "layout": {
          "default": "",
          "icon": ""
        }
      },
      "compound": [
        {
          "layout": "icon",
          "size": "sm",
          "class": "size-8 p-0 [&>svg]:size-4"
        },
        {
          "layout": "icon",
          "size": "default",
          "class": "size-10 p-0 [&>svg]:size-5"
        },
        {
          "layout": "icon",
          "size": "lg",
          "class": "size-12 p-0 [&>svg]:size-6"
        },
        {
          "variant": "outline",
          "layout": "icon",
          "class": "text-muted-foreground"
        },
        {
          "variant": "ghost",
          "layout": "icon",
          "class": "text-muted-foreground"
        }
      ]
    },
    "button-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "card": {
      "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "",
          "muted": "bg-muted",
          "ghost": "bg-transparent",
          "compact": "gap-4 p-4"
        }
      },
      "compound": []
    },
    "checkbox": {
      "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5",
          "sm": "size-4"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "container": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "dialog": {
      "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "w-70",
          "full": "h-full w-full",
          "lg": "w-100",
          "xl": "w-140"
        },
        "variant": {
          "card": "bg-card text-card-foreground",
          "default": "",
          "sheet": "min-h-screen rounded-none"
        }
      },
      "compound": []
    },
    "disclosure": {
      "base": "group",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "card": "rounded bg-card inset-ring inset-ring-border",
          "default": "rounded inset-ring inset-ring-border",
          "ghost": "",
          "item": "border-b border-border last:border-b-0"
        }
      },
      "compound": []
    },
    "fieldset": {
      "base": "grid",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "gap-2",
          "lg": "gap-4",
          "sm": "gap-2"
        },
        "variant": {
          "card": "rounded p-4 inset-ring inset-ring-border",
          "default": "",
          "inline": "flex flex-wrap items-start gap-4"
        }
      },
      "compound": []
    },
    "form": {
      "base": "grid gap-4",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-description": {
      "base": "text-xs font-semibold text-muted-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-item": {
      "base": "flex flex-col gap-2",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-message": {
      "base": "text-xs font-semibold text-destructive",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "grid": {
      "base": "grid",
      "keys": [
        "cols"
      ],
      "defaults": {
        "cols": "1"
      },
      "byKey": {
        "cols": {
          "1": "grid-cols-1",
          "2": "grid-cols-2",
          "3": "grid-cols-3",
          "4": "grid-cols-4",
          "5": "grid-cols-5",
          "6": "grid-cols-6",
          "7": "grid-cols-7",
          "8": "grid-cols-8",
          "9": "grid-cols-9",
          "10": "grid-cols-10",
          "11": "grid-cols-11",
          "12": "grid-cols-12",
          "1-2": "grid-cols-1 md:grid-cols-2",
          "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
          "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
          "2-3": "grid-cols-2 md:grid-cols-3",
          "2-4": "grid-cols-2 md:grid-cols-4",
          "2-6": "grid-cols-2 md:grid-cols-6",
          "3-6": "grid-cols-3 md:grid-cols-6"
        }
      },
      "compound": []
    },
    "group": {
      "base": "flex min-w-0",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "center",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "icon": {
      "base": "inline-block shrink-0",
      "keys": [
        "size",
        "type"
      ],
      "defaults": {
        "size": "default",
        "type": "class"
      },
      "byKey": {
        "size": {
          "xs": "size-3",
          "default": "size-4",
          "md": "size-5",
          "lg": "size-6"
        },
        "type": {
          "class": "",
          "svg": "",
          "text": ""
        }
      },
      "compound": []
    },
    "iconbadge": {
      "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-muted-foreground",
          "primary": "bg-primary text-primary-foreground",
          "accent": "bg-accent text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground",
          "outline": "text-foreground inset-ring inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground"
        },
        "size": {
          "xs": "size-6 text-xs",
          "sm": "size-8 text-xs",
          "default": "size-10 text-xs",
          "lg": "size-12 text-sm",
          "xl": "size-20 text-base"
        }
      },
      "compound": []
    },
    "image": {
      "base": "block max-w-full",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "defaults": {
        "aspect": "auto",
        "fit": "cover",
        "position": "center",
        "size": "auto",
        "variant": "default"
      },
      "byKey": {
        "aspect": {
          "auto": "aspect-auto",
          "square": "aspect-square",
          "video": "aspect-video"
        },
        "fit": {
          "contain": "object-contain",
          "cover": "object-cover",
          "fill": "object-fill",
          "none": "object-none",
          "scale-down": "object-scale-down"
        },
        "position": {
          "bottom": "object-bottom",
          "center": "object-center",
          "left": "object-left",
          "left-bottom": "object-left-bottom",
          "left-top": "object-left-top",
          "right": "object-right",
          "right-bottom": "object-right-bottom",
          "right-top": "object-right-top",
          "top": "object-top"
        },
        "size": {
          "auto": "",
          "default": "",
          "full": "h-full w-full",
          "xs": "size-6",
          "sm": "size-8",
          "md": "size-12",
          "lg": "size-16",
          "xl": "size-20"
        },
        "variant": {
          "default": "",
          "logo": "object-contain"
        }
      },
      "compound": []
    },
    "inline": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "input": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 px-3 text-base md:text-sm",
          "default": "h-10 px-3 text-base md:text-sm",
          "lg": "h-12 px-4 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "label": {
      "base": "text-xs font-bold text-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "legend": {
      "base": "font-bold",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs",
          "default": "text-sm",
          "lg": "text-base"
        },
        "variant": {
          "default": "",
          "muted": "text-muted-foreground"
        }
      },
      "compound": []
    },
    "link": {
      "base": "inline-flex items-center underline-offset-4",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "gap-2 text-sm font-medium",
          "default": "gap-2 text-base font-semibold",
          "md": "gap-2 text-xl font-semibold",
          "lg": "gap-2 text-2xl font-semibold"
        },
        "variant": {
          "block": "flex w-full text-foreground hover:text-primary",
          "default": "text-primary hover:underline",
          "external": "text-primary hover:underline",
          "muted": "text-muted-foreground hover:text-foreground",
          "nav": "text-foreground hover:text-primary"
        }
      },
      "compound": []
    },
    "link-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "list": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "lucide-icon": {
      "base": "inline-block shrink-0",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "meter": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "progress": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "prose": {
      "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
      "keys": [
        "size",
        "width"
      ],
      "defaults": {
        "size": "base",
        "width": "narrow"
      },
      "byKey": {
        "size": {
          "sm": "text-sm leading-6",
          "base": "text-base leading-6",
          "lg": "text-lg leading-8"
        },
        "width": {
          "narrow": "max-w-2xl",
          "wide": "max-w-4xl",
          "none": "max-w-none"
        }
      },
      "compound": []
    },
    "radio": {
      "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5 [--dot:10px]",
          "sm": "size-4 [--dot:8px]"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "range": {
      "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "select": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 pl-3 pr-2 text-sm",
          "default": "h-10 pl-3 pr-2 text-sm",
          "lg": "h-12 pl-4 pr-2 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "separator": {
      "base": "shrink-0 border-0 bg-border",
      "keys": [
        "orientation",
        "variant"
      ],
      "defaults": {
        "orientation": "horizontal",
        "variant": "default"
      },
      "byKey": {
        "orientation": {
          "horizontal": "h-px w-full",
          "vertical": "h-full w-px"
        },
        "variant": {
          "default": "",
          "spaced": "my-6"
        }
      },
      "compound": []
    },
    "sheet": {
      "base": "fixed inset-0 z-50 open:flex",
      "keys": [
        "side"
      ],
      "defaults": {
        "side": "right"
      },
      "byKey": {
        "side": {
          "left": "flex-row justify-start",
          "right": "flex-row justify-end"
        }
      },
      "compound": []
    },
    "sheettrigger": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "skeleton": {
      "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
      "keys": [
        "shape"
      ],
      "defaults": {
        "shape": "line"
      },
      "byKey": {
        "shape": {
          "line": "h-4 w-full",
          "block": "h-20 w-full"
        }
      },
      "compound": []
    },
    "stack": {
      "base": "flex flex-col",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "start",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "summary": {
      "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs font-semibold",
          "default": "text-sm font-semibold",
          "lg": "text-base font-semibold"
        },
        "variant": {
          "card": "py-2 pr-4 pl-4",
          "default": "py-2 pr-4 pl-4",
          "ghost": "py-2",
          "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
        }
      },
      "compound": []
    },
    "switch": {
      "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
      "keys": [
        "size"
      ],
      "defaults": {
        "size": "default"
      },
      "byKey": {
        "size": {
          "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
          "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
        }
      },
      "compound": []
    },
    "table": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-cell": {
      "base": "px-2 py-2 align-middle",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-head-cell": {
      "base": "px-2 py-2 text-left align-middle font-semibold",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "text": {
      "base": "",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "inherit"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold",
          "inherit": ""
        }
      },
      "compound": []
    },
    "textarea": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
          "default": "min-h-20 px-3 py-2 text-base md:text-sm",
          "lg": "min-h-24 px-4 py-3 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "themetoggle": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "title": {
      "base": "text-foreground",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "semibold"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold"
        }
      },
      "compound": []
    }
  },
  "compositions": {
    "Box": {
      "primitive": "Box",
      "recipe": "box",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Block": {
      "primitive": "Box",
      "recipe": "block",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Stack": {
      "primitive": "Box",
      "recipe": "stack",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Group": {
      "primitive": "Box",
      "recipe": "group",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Grid": {
      "primitive": "Box",
      "recipe": "grid",
      "keys": [
        "cols"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "GridCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Container": {
      "primitive": "Box",
      "recipe": "container",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Inline": {
      "primitive": "Text",
      "recipe": "inline",
      "keys": [],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "List": {
      "primitive": "Box",
      "recipe": "list",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "ul"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "ListItem": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "li",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Skeleton": {
      "primitive": "Box",
      "recipe": "skeleton",
      "keys": [
        "shape"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "aria-hidden": "true"
      }
    },
    "Prose": {
      "primitive": "Box",
      "recipe": "prose",
      "keys": [
        "size",
        "width"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Alert": {
      "primitive": "Box",
      "recipe": "alert",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "role": "alert",
        "data-slot": "alert"
      }
    },
    "Card": {
      "primitive": "Box",
      "recipe": "card",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "card"
      }
    },
    "CardHeader": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "grid auto-rows-min items-start gap-2",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardTitle": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "font-semibold leading-none",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h3"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardDescription": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "text-sm text-muted-foreground",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardContent": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardFooter": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "flex items-center",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Table": {
      "primitive": "Box",
      "recipe": "table",
      "keys": [],
      "extra": "",
      "tag": "table",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCaption": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "caption",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHead": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "thead",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableBody": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tbody",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableFoot": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tfoot",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableRow": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tr",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHeadCell": {
      "primitive": "Box",
      "recipe": "table-head-cell",
      "keys": [],
      "extra": "",
      "tag": "th",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCell": {
      "primitive": "Box",
      "recipe": "table-cell",
      "keys": [],
      "extra": "",
      "tag": "td",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableColGroup": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "colgroup",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "col",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Fieldset": {
      "primitive": "Box",
      "recipe": "fieldset",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "fieldset",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Legend": {
      "primitive": "Text",
      "recipe": "legend",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "legend",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormItem": {
      "primitive": "Box",
      "recipe": "form-item",
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormDescription": {
      "primitive": "Text",
      "recipe": "form-description",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormMessage": {
      "primitive": "Text",
      "recipe": "form-message",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Text": {
      "primitive": "Text",
      "recipe": "text",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "p"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Title": {
      "primitive": "Text",
      "recipe": "title",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h2"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Badge": {
      "primitive": "Text",
      "recipe": "badge",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "badge"
      }
    },
    "IconBadge": {
      "primitive": "Text",
      "recipe": "iconbadge",
      "keys": [
        "variant",
        "size"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LucideIcon": {
      "primitive": "Icon",
      "recipe": "lucide-icon",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Icon": {
      "primitive": "Icon",
      "recipe": "icon",
      "keys": [
        "size",
        "type"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Button": {
      "primitive": "Button",
      "recipe": "button",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "button"
      }
    },
    "ButtonPlain": {
      "primitive": "Button",
      "recipe": "button-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Link": {
      "primitive": "Link",
      "recipe": "link",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LinkPlain": {
      "primitive": "Link",
      "recipe": "link-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Label": {
      "primitive": "Label",
      "recipe": "label",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Form": {
      "primitive": "Form",
      "recipe": "form",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Input": {
      "primitive": "Input",
      "recipe": "input",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Range": {
      "primitive": "Input",
      "recipe": "range",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {
        "type": "range"
      },
      "fixedAttrs": {}
    },
    "Textarea": {
      "primitive": "Textarea",
      "recipe": "textarea",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Select": {
      "primitive": "Select",
      "recipe": "select",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Checkbox": {
      "primitive": "Checkbox",
      "recipe": "checkbox",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Radio": {
      "primitive": "Radio",
      "recipe": "radio",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Switch": {
      "primitive": "Switch",
      "recipe": "switch",
      "keys": [
        "size"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Image": {
      "primitive": "Image",
      "recipe": "image",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Separator": {
      "primitive": "Separator",
      "recipe": "separator",
      "keys": [
        "orientation",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Dialog": {
      "primitive": "Dialog",
      "recipe": "dialog",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Sheet": {
      "primitive": "Dialog",
      "recipe": "sheet",
      "keys": [
        "side"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Disclosure": {
      "primitive": "Disclosure",
      "recipe": "disclosure",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Summary": {
      "primitive": "Summary",
      "recipe": "summary",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "trail": "<span class=\"size-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180\" aria-hidden=\"true\" data-slot=\"summary-indicator\"></span>"
    },
    "Meter": {
      "primitive": "Meter",
      "recipe": "meter",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Progress": {
      "primitive": "Progress",
      "recipe": "progress",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    }
  }
}

Latte registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework jinja2 --dir src --registry-url https://registry.buildy.tw/jinja2 --strict-cdn
npx ui8kit add recipes
compose/compose.json
{
  "recipes": {
    "alert": {
      "base": "flex min-h-8 items-center gap-2 px-2 text-xs font-semibold inset-ring rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-card text-card-foreground inset-ring-border",
          "destructive": "bg-muted text-destructive inset-ring-destructive",
          "success": "bg-card text-primary inset-ring-primary",
          "warning": "bg-accent text-accent-foreground inset-ring-border"
        }
      },
      "compound": []
    },
    "badge": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring rounded-full",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-5 px-2 text-xs",
          "default": "h-6 px-3 text-xs",
          "lg": "h-8 px-4 text-sm"
        },
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary",
          "secondary": "bg-muted text-foreground inset-ring-transparent",
          "outline": "bg-transparent text-foreground inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40"
        }
      },
      "compound": []
    },
    "block": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "box": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "button": {
      "base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium inset-ring transition-colors disabled:pointer-events-none disabled:opacity-50 rounded",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "defaults": {
        "variant": "default",
        "size": "default",
        "layout": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-primary text-primary-foreground inset-ring-primary hover:bg-primary/90",
          "outline": "bg-card text-foreground inset-ring-border hover:bg-accent hover:text-accent-foreground",
          "ghost": "bg-transparent text-foreground inset-ring-transparent hover:bg-accent hover:text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground inset-ring-border hover:bg-secondary/80",
          "destructive": "bg-destructive text-destructive-foreground hover:bg-destructive-hover inset-ring-transparent focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
          "link": "text-primary inset-ring-transparent underline-offset-4 hover:underline"
        },
        "size": {
          "sm": "h-8 px-3 text-sm",
          "default": "h-10 px-4 text-sm",
          "lg": "h-12 px-6 text-base"
        },
        "layout": {
          "default": "",
          "icon": ""
        }
      },
      "compound": [
        {
          "layout": "icon",
          "size": "sm",
          "class": "size-8 p-0 [&>svg]:size-4"
        },
        {
          "layout": "icon",
          "size": "default",
          "class": "size-10 p-0 [&>svg]:size-5"
        },
        {
          "layout": "icon",
          "size": "lg",
          "class": "size-12 p-0 [&>svg]:size-6"
        },
        {
          "variant": "outline",
          "layout": "icon",
          "class": "text-muted-foreground"
        },
        {
          "variant": "ghost",
          "layout": "icon",
          "class": "text-muted-foreground"
        }
      ]
    },
    "button-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "card": {
      "base": "flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "default": "",
          "muted": "bg-muted",
          "ghost": "bg-transparent",
          "compact": "gap-4 p-4"
        }
      },
      "compound": []
    },
    "checkbox": {
      "base": "peer shrink-0 appearance-none bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary checkbox-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5",
          "sm": "size-4"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "container": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "dialog": {
      "base": "m-auto open:flex open:flex-col bg-background text-foreground inset-ring inset-ring-border shadow-lg backdrop:bg-foreground/20 rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "w-70",
          "full": "h-full w-full",
          "lg": "w-100",
          "xl": "w-140"
        },
        "variant": {
          "card": "bg-card text-card-foreground",
          "default": "",
          "sheet": "min-h-screen rounded-none"
        }
      },
      "compound": []
    },
    "disclosure": {
      "base": "group",
      "keys": [
        "variant"
      ],
      "defaults": {
        "variant": "default"
      },
      "byKey": {
        "variant": {
          "card": "rounded bg-card inset-ring inset-ring-border",
          "default": "rounded inset-ring inset-ring-border",
          "ghost": "",
          "item": "border-b border-border last:border-b-0"
        }
      },
      "compound": []
    },
    "fieldset": {
      "base": "grid",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "gap-2",
          "lg": "gap-4",
          "sm": "gap-2"
        },
        "variant": {
          "card": "rounded p-4 inset-ring inset-ring-border",
          "default": "",
          "inline": "flex flex-wrap items-start gap-4"
        }
      },
      "compound": []
    },
    "form": {
      "base": "grid gap-4",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-description": {
      "base": "text-xs font-semibold text-muted-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-item": {
      "base": "flex flex-col gap-2",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "form-message": {
      "base": "text-xs font-semibold text-destructive",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "grid": {
      "base": "grid",
      "keys": [
        "cols"
      ],
      "defaults": {
        "cols": "1"
      },
      "byKey": {
        "cols": {
          "1": "grid-cols-1",
          "2": "grid-cols-2",
          "3": "grid-cols-3",
          "4": "grid-cols-4",
          "5": "grid-cols-5",
          "6": "grid-cols-6",
          "7": "grid-cols-7",
          "8": "grid-cols-8",
          "9": "grid-cols-9",
          "10": "grid-cols-10",
          "11": "grid-cols-11",
          "12": "grid-cols-12",
          "1-2": "grid-cols-1 md:grid-cols-2",
          "1-3": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
          "1-4": "grid-cols-1 sm:grid-cols-2 md:grid-cols-4",
          "2-3": "grid-cols-2 md:grid-cols-3",
          "2-4": "grid-cols-2 md:grid-cols-4",
          "2-6": "grid-cols-2 md:grid-cols-6",
          "3-6": "grid-cols-3 md:grid-cols-6"
        }
      },
      "compound": []
    },
    "group": {
      "base": "flex min-w-0",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "center",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "icon": {
      "base": "inline-block shrink-0",
      "keys": [
        "size",
        "type"
      ],
      "defaults": {
        "size": "default",
        "type": "class"
      },
      "byKey": {
        "size": {
          "xs": "size-3",
          "default": "size-4",
          "md": "size-5",
          "lg": "size-6"
        },
        "type": {
          "class": "",
          "svg": "",
          "text": ""
        }
      },
      "compound": []
    },
    "iconbadge": {
      "base": "inline-flex shrink-0 items-center justify-center font-bold rounded",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-muted-foreground",
          "primary": "bg-primary text-primary-foreground",
          "accent": "bg-accent text-accent-foreground",
          "secondary": "bg-secondary text-secondary-foreground",
          "outline": "text-foreground inset-ring inset-ring-border",
          "destructive": "bg-destructive text-destructive-foreground"
        },
        "size": {
          "xs": "size-6 text-xs",
          "sm": "size-8 text-xs",
          "default": "size-10 text-xs",
          "lg": "size-12 text-sm",
          "xl": "size-20 text-base"
        }
      },
      "compound": []
    },
    "image": {
      "base": "block max-w-full",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "defaults": {
        "aspect": "auto",
        "fit": "cover",
        "position": "center",
        "size": "auto",
        "variant": "default"
      },
      "byKey": {
        "aspect": {
          "auto": "aspect-auto",
          "square": "aspect-square",
          "video": "aspect-video"
        },
        "fit": {
          "contain": "object-contain",
          "cover": "object-cover",
          "fill": "object-fill",
          "none": "object-none",
          "scale-down": "object-scale-down"
        },
        "position": {
          "bottom": "object-bottom",
          "center": "object-center",
          "left": "object-left",
          "left-bottom": "object-left-bottom",
          "left-top": "object-left-top",
          "right": "object-right",
          "right-bottom": "object-right-bottom",
          "right-top": "object-right-top",
          "top": "object-top"
        },
        "size": {
          "auto": "",
          "default": "",
          "full": "h-full w-full",
          "xs": "size-6",
          "sm": "size-8",
          "md": "size-12",
          "lg": "size-16",
          "xl": "size-20"
        },
        "variant": {
          "default": "",
          "logo": "object-contain"
        }
      },
      "compound": []
    },
    "inline": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "input": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 px-3 text-base md:text-sm",
          "default": "h-10 px-3 text-base md:text-sm",
          "lg": "h-12 px-4 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "label": {
      "base": "text-xs font-bold text-foreground",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "legend": {
      "base": "font-bold",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs",
          "default": "text-sm",
          "lg": "text-base"
        },
        "variant": {
          "default": "",
          "muted": "text-muted-foreground"
        }
      },
      "compound": []
    },
    "link": {
      "base": "inline-flex items-center underline-offset-4",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "gap-2 text-sm font-medium",
          "default": "gap-2 text-base font-semibold",
          "md": "gap-2 text-xl font-semibold",
          "lg": "gap-2 text-2xl font-semibold"
        },
        "variant": {
          "block": "flex w-full text-foreground hover:text-primary",
          "default": "text-primary hover:underline",
          "external": "text-primary hover:underline",
          "muted": "text-muted-foreground hover:text-foreground",
          "nav": "text-foreground hover:text-primary"
        }
      },
      "compound": []
    },
    "link-plain": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "list": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "lucide-icon": {
      "base": "inline-block shrink-0",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "meter": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "progress": {
      "base": "w-full appearance-none overflow-hidden bg-muted progress-bar rounded",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-1",
          "default": "h-2",
          "lg": "h-3"
        },
        "variant": {
          "default": "[--bar:var(--color-primary)]",
          "muted": "[--bar:var(--color-muted-foreground)]"
        }
      },
      "compound": []
    },
    "prose": {
      "base": "w-full min-w-0 mx-auto break-words [&>*+*]:mt-4 [&>:first-child]:mt-0 [&_h2]:mt-8 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li+li]:mt-2 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded [&_code]:rounded [&_code]:bg-muted [&_code]:px-2 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-4 [&_table]:w-full [&_table]:border-collapse [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-4 [&_th]:text-left [&_th]:font-semibold [&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-4 [&_figcaption]:mt-2 [&_figcaption]:text-sm [&_figcaption]:text-muted-foreground [&_.wp-caption-text]:mt-2 [&_.wp-caption-text]:text-sm [&_.wp-caption-text]:text-muted-foreground [&_.wp-element-caption]:mt-2 [&_.wp-element-caption]:text-sm [&_.wp-element-caption]:text-muted-foreground [&_.aligncenter]:mx-auto [&_.alignwide]:w-full [&_.alignfull]:w-full",
      "keys": [
        "size",
        "width"
      ],
      "defaults": {
        "size": "base",
        "width": "narrow"
      },
      "byKey": {
        "size": {
          "sm": "text-sm leading-6",
          "base": "text-base leading-6",
          "lg": "text-lg leading-8"
        },
        "width": {
          "narrow": "max-w-2xl",
          "wide": "max-w-4xl",
          "none": "max-w-none"
        }
      },
      "compound": []
    },
    "radio": {
      "base": "shrink-0 appearance-none rounded-full bg-background inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary radio-glyph disabled:cursor-not-allowed disabled:opacity-50",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "default": "size-5 [--dot:10px]",
          "sm": "size-4 [--dot:8px]"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted"
        }
      },
      "compound": []
    },
    "range": {
      "base": "h-5 w-full cursor-pointer appearance-none bg-transparent accent-primary disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded [&::-webkit-slider-runnable-track]:bg-muted [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded [&::-moz-range-track]:bg-muted [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "select": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "h-8 pl-3 pr-2 text-sm",
          "default": "h-10 pl-3 pr-2 text-sm",
          "lg": "h-12 pl-4 pr-2 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "separator": {
      "base": "shrink-0 border-0 bg-border",
      "keys": [
        "orientation",
        "variant"
      ],
      "defaults": {
        "orientation": "horizontal",
        "variant": "default"
      },
      "byKey": {
        "orientation": {
          "horizontal": "h-px w-full",
          "vertical": "h-full w-px"
        },
        "variant": {
          "default": "",
          "spaced": "my-6"
        }
      },
      "compound": []
    },
    "sheet": {
      "base": "fixed inset-0 z-50 open:flex",
      "keys": [
        "side"
      ],
      "defaults": {
        "side": "right"
      },
      "byKey": {
        "side": {
          "left": "flex-row justify-start",
          "right": "flex-row justify-end"
        }
      },
      "compound": []
    },
    "sheettrigger": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "skeleton": {
      "base": "animate-pulse bg-muted motion-reduce:animate-none rounded",
      "keys": [
        "shape"
      ],
      "defaults": {
        "shape": "line"
      },
      "byKey": {
        "shape": {
          "line": "h-4 w-full",
          "block": "h-20 w-full"
        }
      },
      "compound": []
    },
    "stack": {
      "base": "flex flex-col",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "defaults": {
        "gap": "auto",
        "align": "start",
        "justify": "start"
      },
      "byKey": {
        "gap": {
          "0": "gap-0",
          "2": "gap-2",
          "4": "gap-4",
          "6": "gap-6",
          "8": "gap-8",
          "10": "gap-10",
          "12": "gap-12",
          "auto": ""
        },
        "align": {
          "start": "items-start",
          "center": "items-center",
          "end": "items-end",
          "stretch": "items-stretch",
          "baseline": "items-baseline"
        },
        "justify": {
          "start": "justify-start",
          "center": "justify-center",
          "end": "justify-end",
          "between": "justify-between"
        }
      },
      "compound": []
    },
    "summary": {
      "base": "flex cursor-pointer list-none items-center justify-between gap-2 [&::-webkit-details-marker]:hidden",
      "keys": [
        "size",
        "variant"
      ],
      "defaults": {
        "size": "default",
        "variant": "default"
      },
      "byKey": {
        "size": {
          "sm": "text-xs font-semibold",
          "default": "text-sm font-semibold",
          "lg": "text-base font-semibold"
        },
        "variant": {
          "card": "py-2 pr-4 pl-4",
          "default": "py-2 pr-4 pl-4",
          "ghost": "py-2",
          "item": "py-4 text-muted-foreground hover:text-foreground group-open:text-foreground"
        }
      },
      "compound": []
    },
    "switch": {
      "base": "relative shrink-0 appearance-none bg-muted inset-ring inset-ring-input checked:bg-primary checked:inset-ring-primary switch-knob disabled:cursor-not-allowed disabled:opacity-50 rounded-full",
      "keys": [
        "size"
      ],
      "defaults": {
        "size": "default"
      },
      "byKey": {
        "size": {
          "default": "h-5 w-9 [--knob:12px] [--pad:4px]",
          "sm": "h-4 w-8 [--knob:12px] [--pad:2px]"
        }
      },
      "compound": []
    },
    "table": {
      "base": "",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-cell": {
      "base": "px-2 py-2 align-middle",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "table-head-cell": {
      "base": "px-2 py-2 text-left align-middle font-semibold",
      "keys": [],
      "defaults": {},
      "byKey": {},
      "compound": []
    },
    "text": {
      "base": "",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "inherit"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold",
          "inherit": ""
        }
      },
      "compound": []
    },
    "textarea": {
      "base": "w-full min-w-0 bg-background text-foreground inset-ring inset-ring-input outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:inset-ring-ring rounded aria-invalid:inset-ring-destructive",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "defaults": {
        "size": "default",
        "variant": "default",
        "state": "default"
      },
      "byKey": {
        "size": {
          "sm": "min-h-16 px-3 py-2 text-base md:text-sm",
          "default": "min-h-20 px-3 py-2 text-base md:text-sm",
          "lg": "min-h-24 px-4 py-3 text-base"
        },
        "variant": {
          "default": "",
          "ghost": "bg-muted inset-ring-transparent"
        },
        "state": {
          "default": "",
          "error": "inset-ring-destructive focus-visible:inset-ring-destructive"
        }
      },
      "compound": []
    },
    "themetoggle": {
      "base": "inline-flex shrink-0 cursor-pointer items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
      "keys": [
        "variant",
        "size"
      ],
      "defaults": {
        "variant": "default",
        "size": "default"
      },
      "byKey": {
        "variant": {
          "default": "bg-muted text-foreground hover:bg-accent",
          "ghost": "bg-transparent text-foreground hover:bg-muted",
          "contrast": "bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20",
          "current": "bg-transparent text-current hover:bg-current/10"
        },
        "size": {
          "sm": "size-8",
          "default": "size-10",
          "lg": "size-12"
        }
      },
      "compound": []
    },
    "title": {
      "base": "text-foreground",
      "keys": [
        "size",
        "weight"
      ],
      "defaults": {
        "size": "inherit",
        "weight": "semibold"
      },
      "byKey": {
        "size": {
          "xs": "text-xs",
          "sm": "text-sm",
          "base": "text-base",
          "lg": "text-lg",
          "xl": "text-xl",
          "2xl": "text-2xl",
          "3xl": "text-3xl",
          "4xl": "text-4xl",
          "5xl": "text-5xl",
          "inherit": ""
        },
        "weight": {
          "regular": "font-normal",
          "medium": "font-medium",
          "semibold": "font-semibold",
          "bold": "font-bold"
        }
      },
      "compound": []
    }
  },
  "compositions": {
    "Box": {
      "primitive": "Box",
      "recipe": "box",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Block": {
      "primitive": "Box",
      "recipe": "block",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Stack": {
      "primitive": "Box",
      "recipe": "stack",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Group": {
      "primitive": "Box",
      "recipe": "group",
      "keys": [
        "gap",
        "align",
        "justify"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Grid": {
      "primitive": "Box",
      "recipe": "grid",
      "keys": [
        "cols"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "GridCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Container": {
      "primitive": "Box",
      "recipe": "container",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "div"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Inline": {
      "primitive": "Text",
      "recipe": "inline",
      "keys": [],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "List": {
      "primitive": "Box",
      "recipe": "list",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "ul"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "ListItem": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "li",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Skeleton": {
      "primitive": "Box",
      "recipe": "skeleton",
      "keys": [
        "shape"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "aria-hidden": "true"
      }
    },
    "Prose": {
      "primitive": "Box",
      "recipe": "prose",
      "keys": [
        "size",
        "width"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Alert": {
      "primitive": "Box",
      "recipe": "alert",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "role": "alert",
        "data-slot": "alert"
      }
    },
    "Card": {
      "primitive": "Box",
      "recipe": "card",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "card"
      }
    },
    "CardHeader": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "grid auto-rows-min items-start gap-2",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardTitle": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "font-semibold leading-none",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h3"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardDescription": {
      "primitive": "Text",
      "recipe": null,
      "keys": [],
      "extra": "text-sm text-muted-foreground",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardContent": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "CardFooter": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "flex items-center",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Table": {
      "primitive": "Box",
      "recipe": "table",
      "keys": [],
      "extra": "",
      "tag": "table",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCaption": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "caption",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHead": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "thead",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableBody": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tbody",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableFoot": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tfoot",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableRow": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "tr",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableHeadCell": {
      "primitive": "Box",
      "recipe": "table-head-cell",
      "keys": [],
      "extra": "",
      "tag": "th",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCell": {
      "primitive": "Box",
      "recipe": "table-cell",
      "keys": [],
      "extra": "",
      "tag": "td",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableColGroup": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "colgroup",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "TableCol": {
      "primitive": "Box",
      "recipe": null,
      "keys": [],
      "extra": "",
      "tag": "col",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Fieldset": {
      "primitive": "Box",
      "recipe": "fieldset",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "fieldset",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Legend": {
      "primitive": "Text",
      "recipe": "legend",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "legend",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormItem": {
      "primitive": "Box",
      "recipe": "form-item",
      "keys": [],
      "extra": "",
      "tag": "div",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormDescription": {
      "primitive": "Text",
      "recipe": "form-description",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "FormMessage": {
      "primitive": "Text",
      "recipe": "form-message",
      "keys": [],
      "extra": "",
      "tag": "p",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Text": {
      "primitive": "Text",
      "recipe": "text",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": false,
        "fallback": "p"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Title": {
      "primitive": "Text",
      "recipe": "title",
      "keys": [
        "size",
        "weight"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": {
        "heading": true,
        "fallback": "h2"
      },
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Badge": {
      "primitive": "Text",
      "recipe": "badge",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "badge"
      }
    },
    "IconBadge": {
      "primitive": "Text",
      "recipe": "iconbadge",
      "keys": [
        "variant",
        "size"
      ],
      "extra": "",
      "tag": "span",
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LucideIcon": {
      "primitive": "Icon",
      "recipe": "lucide-icon",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Icon": {
      "primitive": "Icon",
      "recipe": "icon",
      "keys": [
        "size",
        "type"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Button": {
      "primitive": "Button",
      "recipe": "button",
      "keys": [
        "variant",
        "size",
        "layout"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {
        "data-slot": "button"
      }
    },
    "ButtonPlain": {
      "primitive": "Button",
      "recipe": "button-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Link": {
      "primitive": "Link",
      "recipe": "link",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "LinkPlain": {
      "primitive": "Link",
      "recipe": "link-plain",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Label": {
      "primitive": "Label",
      "recipe": "label",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Form": {
      "primitive": "Form",
      "recipe": "form",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Input": {
      "primitive": "Input",
      "recipe": "input",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Range": {
      "primitive": "Input",
      "recipe": "range",
      "keys": [],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {
        "type": "range"
      },
      "fixedAttrs": {}
    },
    "Textarea": {
      "primitive": "Textarea",
      "recipe": "textarea",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Select": {
      "primitive": "Select",
      "recipe": "select",
      "keys": [
        "size",
        "variant",
        "state"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "implies": {
        "key": "state",
        "value": "error",
        "prop": "ariaInvalid",
        "set": "true"
      }
    },
    "Checkbox": {
      "primitive": "Checkbox",
      "recipe": "checkbox",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Radio": {
      "primitive": "Radio",
      "recipe": "radio",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Switch": {
      "primitive": "Switch",
      "recipe": "switch",
      "keys": [
        "size"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Image": {
      "primitive": "Image",
      "recipe": "image",
      "keys": [
        "aspect",
        "fit",
        "position",
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Separator": {
      "primitive": "Separator",
      "recipe": "separator",
      "keys": [
        "orientation",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Dialog": {
      "primitive": "Dialog",
      "recipe": "dialog",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Sheet": {
      "primitive": "Dialog",
      "recipe": "sheet",
      "keys": [
        "side"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Disclosure": {
      "primitive": "Disclosure",
      "recipe": "disclosure",
      "keys": [
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Summary": {
      "primitive": "Summary",
      "recipe": "summary",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {},
      "trail": "<span class=\"size-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180\" aria-hidden=\"true\" data-slot=\"summary-indicator\"></span>"
    },
    "Meter": {
      "primitive": "Meter",
      "recipe": "meter",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    },
    "Progress": {
      "primitive": "Progress",
      "recipe": "progress",
      "keys": [
        "size",
        "variant"
      ],
      "extra": "",
      "tag": null,
      "tagFrom": null,
      "fixedProps": {},
      "fixedAttrs": {}
    }
  }
}
compose/compose_env.py
# Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.
"""codegen-x compositions for Jinja2: environment() = the installed kit environment (packages/kit/jinja2) + the compose/
templates, and compose_props(name, p) -> the props of the primitive (recipe classes, tag, fixed props/attrs).
Templates: compose/<name>.html.j2, called like a primitive: render(p={...}, children=Markup(...))."""

import json
import os
from typing import Any

from jinja2 import ChoiceLoader, FileSystemLoader

HERE = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(HERE, "compose.json"), encoding="utf-8") as f:
    DATA = json.load(f)


def _pascal(k: str) -> str:
    return k[:1].upper() + k[1:]


def _set(v: Any) -> bool:
    # None, "" and Jinja Undefined (p['Missing']) are unset
    return v is not None and str(v) != ""


def rc(rid: str, values: dict) -> str:
    r = DATA["recipes"][rid]

    def pick(k: str) -> str:
        v = values.get(k)
        return str(v) if _set(v) else r["defaults"].get(k, "")

    out = [r["base"]] + [r["byKey"].get(k, {}).get(pick(k), "") for k in r["keys"]]
    for c in r["compound"]:
        if all(pick(k) == v for k, v in c.items() if k != "class"):
            out.append(c["class"])
    return " ".join(x for x in out if x)


def _heading(v: Any, fallback: str) -> str:
    try:
        n = int(str(v))
    except (TypeError, ValueError):
        return fallback
    return f"h{n}" if 1 <= n <= 6 else fallback


def compose_props(name: str, p: Any) -> dict:
    s = DATA["compositions"][name]
    q = dict(p or {})
    values = {k: q.pop(_pascal(k), None) for k in s["keys"]}
    as_ = q.pop("As", None) if s["tagFrom"] and s["tagFrom"]["heading"] else None
    q["Class"] = " ".join(x for x in [rc(s["recipe"], values) if s["recipe"] else "", s["extra"], q.get("Class") or ""] if x)
    if s["tag"]:
        q["Tag"] = s["tag"]
    elif s["tagFrom"] and s["tagFrom"]["heading"]:
        q["Tag"] = _heading(as_, s["tagFrom"]["fallback"])
    elif s["tagFrom"]:
        q["Tag"] = q.get("Tag") if q.get("Tag") is not None else s["tagFrom"]["fallback"]
    for k, v in s["fixedProps"].items():
        if not _set(q.get(_pascal(k))):
            q[_pascal(k)] = v
    if s["fixedAttrs"]:
        q["Attrs"] = {**s["fixedAttrs"], **(q.get("Attrs") or {})}
    im = s.get("implies")
    if im and values.get(im["key"]) == im["value"] and not _set(q.get(_pascal(im["prop"]))):
        q[_pascal(im["prop"])] = im["set"]
    return q


def compose_trail(name: str, children: Any = None):
    from markupsafe import Markup

    t = DATA["compositions"][name].get("trail", "")
    return Markup(children if children is not None and str(children) != "" else "") + Markup(t)


def environment(kit_root: str, **options: Any):
    """kit_root: the installed kit (packages/kit/jinja2/src); its ui8kit_jinja must be importable."""
    from ui8kit_jinja import environment as kit_environment

    env = kit_environment(kit_root, **options)
    env.loader = ChoiceLoader([FileSystemLoader(kit_root), FileSystemLoader(os.path.dirname(HERE))])
    env.globals["compose_props"] = compose_props
    env.globals["compose_trail"] = compose_trail
    env.globals["compose_rc"] = rc
    env.globals["compose_join"] = lambda parts: " ".join(str(x) for x in parts if x)
    return env

Jinja2 registry item (JSON)

Props

Names and types come from the xgen specs of the source. Standard HTML attributes (id, role, tabIndex, aria-*) pass through to the root element; the class prop is className in React.

No props data for this item.