Component recipes

Component recipe · Claude Design source

Button for Claude Design

Pastel App UI style button

Component anatomy

Pastel App UI style button

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "border border-[#66508f]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#66508f] text-white

Secondary

bg-[#fff8f0] text-[#66508f]

Outline

bg-transparent text-[#66508f]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-90"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe