Component recipes

Component recipe · Claude Design source

Mana Bar for Claude Design

Magical energy bar with gradient fill and glow

Component anatomy

Magical energy bar with gradient fill and glow

{
  "element": "div",
  "baseClasses": [
    "relative",
    "h-5",
    "bg-[#0a0920]",
    "border border-[#fbbf24]/20",
    "rounded-sm",
    "overflow-hidden",
    "outline outline-1 outline-offset-2 outline-[#fbbf24]/15",
    "shadow-[0_0_8px_rgba(251,191,36,0.1)]"
  ]
}

Variants and parameters

Mana

[&>.fill]:bg-gradient-to-r [&>.fill]:from-[#818cf8] [&>.fill]:to-[#6366f1] shadow-[0_0_10px_rgba(129,140,248,0.2)]

Health

[&>.fill]:bg-gradient-to-r [&>.fill]:from-[#ef4444] [&>.fill]:to-[#dc2626] shadow-[0_0_10px_rgba(239,68,68,0.2)]

Stamina

[&>.fill]:bg-gradient-to-r [&>.fill]:from-[#fbbf24] [&>.fill]:to-[#f59e0b] shadow-[0_0_10px_rgba(251,191,36,0.2)]

Value

select · 4 options

Interaction states

{}

Related base style

Fixed-version source · reviewed before publishingNext component recipe