Component recipes

Component recipe · Claude Design source

Sparkle Panel for Claude Design

Panel with sparkle/glitter border decoration

Component anatomy

Panel with sparkle/glitter border decoration

{
  "element": "div",
  "baseClasses": [
    "bg-[#fff5f7]",
    "rounded-2xl",
    "border-2 border-[#ffb7c5]/25",
    "shadow-[0_0_20px_#ffb7c515,0_0_40px_#c4b5fd10]",
    "bg-[radial-gradient(circle_2px_at_20%_30%,rgba(255,182,193,0.4)_0%,transparent_100%),radial-gradient(circle_1.5px_at_70%_20%,rgba(255,182,193,0.3)_0%,transparent_100%),radial-gradient(circle_2px_at_50%_70%,rgba(255,182,193,0.35)_0%,transparent_100%)]",
    "transition-all duration-300 ease-in-out",
    "relative"
  ]
}

Variants and parameters

Default

Romantic

border-[#fecdd3]/40 shadow-[0_0_20px_#fecdd320,0_0_40px_#ffb7c510]

Dreamy

border-[#c4b5fd]/30 shadow-[0_0_20px_#c4b5fd20,0_0_40px_#fde68a10]

Padding

select · 3 options

Interaction states

{
  "hover": [
    "hover:shadow-[0_0_25px_#ffb7c530,0_0_50px_#c4b5fd20]",
    "hover:border-[#ffb7c5]/40"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe