Component recipes

Component recipe · Claude Design source

Card for Claude Design

Liquid glass card with multi-layer depth, rainbow edge refraction and top highlight

Component anatomy

Liquid glass card with multi-layer depth, rainbow edge refraction and top highlight

{
  "element": "div",
  "baseClasses": [
    "relative",
    "bg-white/10",
    "backdrop-blur-[40px] backdrop-saturate-[1.8]",
    "rounded-[24px]",
    "shadow-xl shadow-black/10",
    "before:absolute before:inset-0 before:rounded-[24px]",
    "before:p-[1px] before:-z-10",
    "before:bg-gradient-to-br before:from-[#ff6b6b] before:via-[#4ecdc4] before:to-[#a855f7]",
    "after:absolute after:inset-[1px] after:rounded-[23px] after:-z-10",
    "after:bg-gradient-to-b after:from-white/15 after:to-transparent",
    "[box-shadow:inset_0_1px_0_rgba(255,255,255,0.4)]",
    "transition-all duration-500 ease-out"
  ]
}

Variants and parameters

Default

Light

bg-white/15

Dark

bg-black/20

Accent

bg-[#007AFF]/15 before:bg-gradient-to-br before:from-[#007AFF] before:to-[#5AC8FA]

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:bg-white/15",
    "hover:shadow-2xl hover:shadow-[0_0_30px_rgba(168,85,247,0.2)]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe