ELFBAR

Gradient Button

ELFBAR brand-exclusive three-color gradient button — pink → purple → indigo — supporting 3 sizes and 5 corner options.

Stable

Gradient Button is the high-impact CTA button exclusive to the ELFBAR brand, featuring a pink-purple-indigo three-color gradient background (134° linear gradient). Use it for core actions that require the highest visual priority.

Anatomy

Gradient Button is composed of:

  1. Gradient Container — 134° linear gradient background (pink #ff5ea7 → purple #c85aff → indigo #5a74ff), with rgba(255,255,255,0.55) border
  2. Label — Fixed white text (text-fixed-white-primary), single line, no wrapping
  3. Icon — Optional, leading or trailing, with ele-sm spacing
  4. State Layer — Hover opacity-90, press opacity-80

Usage Guidelines

Do ✓

  • Use only for the most important brand-level CTAs on a page (e.g. "Shop Now", "Explore More")
  • Place at most one Gradient Button per view
  • Pair with a leading Star icon or trailing Arrow icon to guide user attention
  • Prefer full corner radius (best matches ELFBAR's soft brand personality)

Don't ✗

  • Don't place multiple Gradient Buttons on the same row
  • Don't use for secondary or low-priority actions (use brand1 or outline instead)
  • Don't modify the gradient colors (breaks brand consistency)
  • Don't layer over dark backgrounds (the gradient is already visually prominent)

Interaction Behavior

InteractionBehavior
Click / TouchTriggers associated action, opacity switches to Active state (0.8)
Hoveropacity transitions to 0.9 in 150ms ease
Keyboard Enter / SpaceTriggers click event
Keyboard TabFocus shows brand-pink focus ring
Disabledpointer-events: none, gray background, gradient disappears

Accessibility

RequirementDetails
Semantic roleUse native <button> element
Disabled stateUse disabled attribute
ContrastWhite text on gradient background contrast ≥ 4.5:1
Focus orderFollows DOM order, supports Tab navigation