{
  "$schema": "https://ui.shadcn.com/schema/registry.json",
  "name": "yan",
  "homepage": "https://yan.moe",
  "items": [
    {
      "name": "yan-theme",
      "type": "registry:theme",
      "title": "Yan theme",
      "description": "Pastel moe tokens (light + dark), candy surfaces and keyframes.",
      "files": [],
      "cssVars": {
        "theme": {
          "color-yan-ink": "var(--yan-ink)",
          "color-yan-sakura": "var(--yan-sakura)",
          "color-yan-sakura-edge": "var(--yan-sakura-edge)",
          "color-yan-lavender": "var(--yan-lavender)",
          "color-yan-lavender-edge": "var(--yan-lavender-edge)",
          "color-yan-mint": "var(--yan-mint)",
          "color-yan-mint-edge": "var(--yan-mint-edge)",
          "color-yan-mint-foreground": "var(--yan-mint-foreground)",
          "color-yan-sky": "var(--yan-sky)",
          "color-yan-sky-edge": "var(--yan-sky-edge)",
          "color-yan-sky-foreground": "var(--yan-sky-foreground)",
          "color-yan-lemon": "var(--yan-lemon)",
          "color-yan-lemon-edge": "var(--yan-lemon-edge)",
          "color-yan-lemon-foreground": "var(--yan-lemon-foreground)",
          "color-yan-peach": "var(--yan-peach)",
          "color-yan-peach-edge": "var(--yan-peach-edge)",
          "color-yan-peach-foreground": "var(--yan-peach-foreground)",
          "color-yan-coral-edge": "var(--yan-coral-edge)"
        },
        "light": {
          "radius": "1.25rem",
          "background": "oklch(0.985 0.013 355)",
          "foreground": "oklch(0.3 0.075 335)",
          "card": "oklch(1 0 0)",
          "card-foreground": "oklch(0.3 0.075 335)",
          "popover": "oklch(1 0 0)",
          "popover-foreground": "oklch(0.3 0.075 335)",
          "primary": "oklch(0.8 0.135 355)",
          "primary-foreground": "oklch(0.3 0.11 355)",
          "secondary": "oklch(0.83 0.095 300)",
          "secondary-foreground": "oklch(0.3 0.1 300)",
          "muted": "oklch(0.958 0.02 345)",
          "muted-foreground": "oklch(0.52 0.055 335)",
          "accent": "oklch(0.94 0.045 355)",
          "accent-foreground": "oklch(0.3 0.075 335)",
          "destructive": "oklch(0.75 0.155 22)",
          "destructive-foreground": "oklch(0.3 0.1 22)",
          "border": "oklch(0.9 0.04 350)",
          "input": "oklch(0.87 0.05 350)",
          "ring": "oklch(0.72 0.17 355)",
          "yan-ink": "oklch(0.3 0.075 335)",
          "yan-sakura": "oklch(0.8 0.135 355)",
          "yan-sakura-edge": "oklch(0.65 0.19 355)",
          "yan-lavender": "oklch(0.83 0.095 300)",
          "yan-lavender-edge": "oklch(0.65 0.15 300)",
          "yan-mint": "oklch(0.88 0.1 165)",
          "yan-mint-edge": "oklch(0.7 0.13 165)",
          "yan-mint-foreground": "oklch(0.32 0.08 170)",
          "yan-sky": "oklch(0.86 0.08 230)",
          "yan-sky-edge": "oklch(0.68 0.12 235)",
          "yan-sky-foreground": "oklch(0.32 0.08 240)",
          "yan-lemon": "oklch(0.94 0.12 98)",
          "yan-lemon-edge": "oklch(0.8 0.14 85)",
          "yan-lemon-foreground": "oklch(0.36 0.08 80)",
          "yan-peach": "oklch(0.87 0.09 50)",
          "yan-peach-edge": "oklch(0.72 0.14 45)",
          "yan-peach-foreground": "oklch(0.34 0.09 45)",
          "yan-coral-edge": "oklch(0.6 0.18 22)",
          "yan-fx-1": "oklch(0.78 0.17 355)",
          "yan-fx-2": "oklch(0.76 0.14 300)",
          "yan-fx-3": "oklch(0.84 0.13 165)",
          "yan-fx-4": "oklch(0.9 0.15 95)",
          "yan-fx-5": "oklch(0.8 0.11 230)",
          "yan-fx-ink": "oklch(0.62 0.21 355)"
        },
        "dark": {
          "background": "oklch(0.18 0.045 305)",
          "foreground": "oklch(0.96 0.02 340)",
          "card": "oklch(0.235 0.055 308)",
          "card-foreground": "oklch(0.96 0.02 340)",
          "popover": "oklch(0.235 0.055 308)",
          "popover-foreground": "oklch(0.96 0.02 340)",
          "primary": "oklch(0.8 0.14 355)",
          "primary-foreground": "oklch(0.26 0.1 355)",
          "secondary": "oklch(0.77 0.115 300)",
          "secondary-foreground": "oklch(0.24 0.09 300)",
          "muted": "oklch(0.28 0.055 310)",
          "muted-foreground": "oklch(0.78 0.05 330)",
          "accent": "oklch(0.32 0.08 330)",
          "accent-foreground": "oklch(0.96 0.02 340)",
          "destructive": "oklch(0.74 0.16 22)",
          "destructive-foreground": "oklch(0.25 0.09 22)",
          "border": "oklch(0.36 0.07 315)",
          "input": "oklch(0.42 0.08 318)",
          "ring": "oklch(0.78 0.15 355)",
          "yan-ink": "oklch(0.96 0.02 340)",
          "yan-sakura": "oklch(0.8 0.14 355)",
          "yan-sakura-edge": "oklch(0.56 0.18 355)",
          "yan-lavender": "oklch(0.77 0.115 300)",
          "yan-lavender-edge": "oklch(0.54 0.15 300)",
          "yan-mint": "oklch(0.83 0.11 165)",
          "yan-mint-edge": "oklch(0.6 0.12 165)",
          "yan-mint-foreground": "oklch(0.25 0.07 170)",
          "yan-sky": "oklch(0.8 0.09 230)",
          "yan-sky-edge": "oklch(0.58 0.12 235)",
          "yan-sky-foreground": "oklch(0.25 0.07 240)",
          "yan-lemon": "oklch(0.9 0.12 98)",
          "yan-lemon-edge": "oklch(0.7 0.13 85)",
          "yan-lemon-foreground": "oklch(0.3 0.07 80)",
          "yan-peach": "oklch(0.82 0.1 50)",
          "yan-peach-edge": "oklch(0.62 0.14 45)",
          "yan-peach-foreground": "oklch(0.27 0.08 45)",
          "yan-coral-edge": "oklch(0.54 0.17 22)",
          "yan-fx-1": "oklch(0.8 0.17 355)",
          "yan-fx-2": "oklch(0.78 0.14 300)",
          "yan-fx-3": "oklch(0.86 0.13 165)",
          "yan-fx-4": "oklch(0.92 0.15 95)",
          "yan-fx-5": "oklch(0.82 0.11 230)",
          "yan-fx-ink": "oklch(0.76 0.19 355)"
        }
      },
      "css": {
        "@keyframes yan-pop": {
          "0%": {
            "scale": "1"
          },
          "35%": {
            "scale": "0.78"
          },
          "70%": {
            "scale": "1.16"
          },
          "100%": {
            "scale": "1"
          }
        },
        "@keyframes yan-stripes": {
          "to": {
            "background-position": "0 0, 22.63px 0"
          }
        },
        "@keyframes yan-twinkle": {
          "0%, 100%": {
            "scale": "1",
            "opacity": "1"
          },
          "50%": {
            "scale": "0.55",
            "opacity": "0.5"
          }
        },
        "@keyframes yan-pop-in": {
          "from": {
            "opacity": "0",
            "scale": "0.6"
          },
          "to": {
            "opacity": "1",
            "scale": "1"
          }
        },
        "@keyframes yan-pop-out": {
          "to": {
            "opacity": "0",
            "scale": "0.85"
          }
        },
        "@keyframes yan-fade-in": {
          "from": {
            "opacity": "0"
          },
          "to": {
            "opacity": "1"
          }
        },
        "@keyframes yan-fade-out": {
          "to": {
            "opacity": "0"
          }
        },
        "@keyframes yan-fade-up": {
          "from": {
            "opacity": "0",
            "translate": "0 8px"
          },
          "to": {
            "opacity": "1",
            "translate": "0 0"
          }
        },
        "@keyframes yan-toast-in": {
          "0%": {
            "opacity": "0",
            "translate": "120% 0",
            "scale": "1.35 0.8"
          },
          "45%": {
            "opacity": "1",
            "translate": "-3% 0",
            "scale": "0.92 1.08"
          },
          "70%": {
            "translate": "1% 0",
            "scale": "1.03 0.97"
          },
          "100%": {
            "opacity": "1",
            "translate": "0 0",
            "scale": "1 1"
          }
        },
        "@keyframes yan-drop-in": {
          "0%": {
            "opacity": "0",
            "transform": "translateY(-70px) scale(0.86, 1.14)"
          },
          "45%": {
            "opacity": "1",
            "transform": "translateY(0) scale(1.07, 0.9)"
          },
          "68%": {
            "transform": "translateY(0) scale(0.97, 1.04)"
          },
          "100%": {
            "opacity": "1",
            "transform": "none"
          }
        },
        "@keyframes yan-toast-out": {
          "to": {
            "opacity": "0",
            "translate": "110% 0"
          }
        },
        "@utility yan-candy": {
          "isolation": "isolate",
          "background-image": "linear-gradient(180deg, color-mix(in oklch, var(--yan-c, var(--primary)) 76%, white) 0%, var(--yan-c, var(--primary)) 55%, color-mix(in oklch, var(--yan-c, var(--primary)) 84%, var(--yan-edge, var(--yan-sakura-edge))) 100%)",
          "box-shadow": "inset 0 1.5px 0 0 rgb(255 255 255 / 0.8), inset 0 -7px 8px -6px var(--yan-edge, var(--yan-sakura-edge)), 0 var(--yan-depth, 5px) 0 0 var(--yan-edge, var(--yan-sakura-edge)), 0 calc(var(--yan-depth, 5px) * 2.8) calc(var(--yan-depth, 5px) * 3.4) calc(var(--yan-depth, 5px) * -1.9) var(--yan-edge, var(--yan-sakura-edge))",
          "text-shadow": "0 1px 0 rgb(255 255 255 / 0.4)",
          "&::before": {
            "content": "\"\"",
            "position": "absolute",
            "inset": "2px 9% auto 9%",
            "height": "36%",
            "border-radius": "999px",
            "background-image": "linear-gradient(180deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0))",
            "z-index": "-1",
            "pointer-events": "none"
          }
        },
        "@utility yan-candy-pressed": {
          "box-shadow": "inset 0 1.5px 0 0 rgb(255 255 255 / 0.6), inset 0 -4px 6px -4px var(--yan-edge, var(--yan-sakura-edge)), 0 1px 0 0 var(--yan-edge, var(--yan-sakura-edge)), 0 5px 8px -5px var(--yan-edge, var(--yan-sakura-edge))"
        },
        "@utility yan-stripes": {
          "background-image": "linear-gradient(180deg, oklch(1 0 0 / 0.55), oklch(1 0 0 / 0) 60%), repeating-linear-gradient(-45deg, oklch(1 0 0 / 0) 0 8px, oklch(1 0 0 / 0.32) 8px 16px)",
          "background-size": "100% 100%, 22.63px 100%"
        }
      }
    },
    {
      "name": "yan-fx",
      "type": "registry:lib",
      "title": "yan-fx",
      "description": "Zero-dependency canvas layer for sparkles, hearts, petals and onomatopoeia.",
      "files": [
        {
          "path": "registry/yan/lib/yan-fx.ts",
          "type": "registry:lib"
        }
      ]
    },
    {
      "name": "button",
      "type": "registry:ui",
      "title": "Button",
      "description": "A mochi-squishy button that pops sparkles, hearts and ぷにっ when clicked.",
      "dependencies": [
        "radix-ui",
        "class-variance-authority"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/button.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "switch",
      "type": "registry:ui",
      "title": "Switch",
      "description": "A switch whose thumb is a tiny mochi: asleep when off, wide awake when on.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/switch.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "checkbox",
      "type": "registry:ui",
      "title": "Checkbox",
      "description": "A gummy checkbox with a self-drawing tick and a candy pop.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/checkbox.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "slider",
      "type": "registry:ui",
      "title": "Slider",
      "description": "A candy-filled slider with a heart thumb that leaves sparkles as you drag.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/slider.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "progress",
      "type": "registry:ui",
      "title": "Progress",
      "description": "A candy-cane progress bar that throws a little party at 100%.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/progress.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "feedback"
      ]
    },
    {
      "name": "badge",
      "type": "registry:ui",
      "title": "Badge",
      "description": "A sticker-style label: candy fill, white outline, tiny edge shadow.",
      "dependencies": [
        "radix-ui",
        "class-variance-authority"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/badge.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "display"
      ]
    },
    {
      "name": "input",
      "type": "registry:ui",
      "title": "Input",
      "description": "A pill-shaped field pressed into the page, with a candy ring on focus.",
      "dependencies": [],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/input.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "select",
      "type": "registry:ui",
      "title": "Select",
      "description": "A pill trigger with a puffy menu that pops out underneath.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/select.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "form"
      ]
    },
    {
      "name": "tabs",
      "type": "registry:ui",
      "title": "Tabs",
      "description": "Tabs where the active one is a gummy candy sitting in a tray.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/tabs.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "navigation"
      ]
    },
    {
      "name": "tooltip",
      "type": "registry:ui",
      "title": "Tooltip",
      "description": "A little speech bubble that pops out of whatever it describes.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/tooltip.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "overlay"
      ]
    },
    {
      "name": "dialog",
      "type": "registry:ui",
      "title": "Dialog",
      "description": "A puffy modal card that bounces onto the page with sparkles.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/dialog.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "overlay"
      ]
    },
    {
      "name": "avatar",
      "type": "registry:ui",
      "title": "Avatar",
      "description": "A sticker-style avatar with a white die-cut ring and candy fallbacks.",
      "dependencies": [
        "radix-ui",
        "class-variance-authority"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/avatar.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "display"
      ]
    },
    {
      "name": "toast",
      "type": "registry:ui",
      "title": "Toast",
      "description": "Toasts that bounce in with a candy mark and an onomatopoeia sticker.",
      "dependencies": [
        "radix-ui"
      ],
      "registryDependencies": [
        "utils",
        "https://yan.moe/r/yan-theme.json",
        "https://yan.moe/r/yan-fx.json"
      ],
      "files": [
        {
          "path": "registry/yan/ui/toast.tsx",
          "type": "registry:ui"
        }
      ],
      "categories": [
        "feedback"
      ]
    },
    {
      "name": "button-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/button-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "button-variants",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/button-variants.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "button-intensity",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/button-intensity.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "button-sizes",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/button-sizes.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "switch-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/switch.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/switch-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "checkbox-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/checkbox.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/checkbox-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "slider-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/slider.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/slider-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "progress-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/progress.json",
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/progress-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "badge-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/badge.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/badge-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "input-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/input.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/input-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "select-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/select.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/select-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "tabs-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/tabs.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/tabs-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "tooltip-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/tooltip.json",
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/tooltip-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "dialog-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/dialog.json",
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/dialog-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "avatar-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/avatar.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/avatar-demo.tsx",
          "type": "registry:example"
        }
      ]
    },
    {
      "name": "toast-demo",
      "type": "registry:example",
      "registryDependencies": [
        "https://yan.moe/r/toast.json",
        "https://yan.moe/r/button.json"
      ],
      "files": [
        {
          "path": "registry/yan/examples/toast-demo.tsx",
          "type": "registry:example"
        }
      ]
    }
  ]
}
