Component recipe · Claude Design source
Shape Card for Claude Design
Card decorated with random Memphis geometric shapes
Component anatomy
Card decorated with random Memphis geometric shapes
{
"element": "div",
"baseClasses": [
"border-4 border-black",
"relative",
"overflow-visible",
"transition-all duration-200",
"before:content-[''] before:absolute before:top-[-12px] before:right-[-12px] before:w-10 before:h-10 before:bg-[#48dbfb] before:rounded-full before:border-4 before:border-black before:z-10",
"after:content-[''] after:absolute after:bottom-[-8px] after:left-4 after:w-0 after:h-0 after:border-l-[16px] after:border-l-transparent after:border-r-[16px] after:border-r-transparent after:border-t-[20px] after:border-t-[#ff6b6b] after:z-10"
]
}Variants and parameters
Default
bg-white shadow-[8px_8px_0px_#000]
Pastel
bg-pink-100 shadow-[8px_8px_0px_#48dbfb] before:bg-pink-300 after:border-t-yellow-400
Bold
bg-yellow-300 shadow-[8px_8px_0px_#ff6b6b] before:bg-[#ff6b6b] after:border-t-[#48dbfb]
Padding
select · 3 options
Interaction states
{
"hover": [
"hover:shadow-[10px_10px_0px_#000]",
"hover:-translate-y-1"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe