Skip to content

feat(icon): add heart-x icon #4264

Merged
karsa-mistmere merged 4 commits intolucide-icons:mainfrom
swastik7805:icon/heart-x
Apr 24, 2026
Merged

feat(icon): add heart-x icon #4264
karsa-mistmere merged 4 commits intolucide-icons:mainfrom
swastik7805:icon/heart-x

Conversation

@swastik7805
Copy link
Copy Markdown
Contributor

Description

closes #4113

This PR adds the heart-x icon to the library, following the visual style of existing icons like bookmark-x. It combines the universal "heart" symbol with an "X" to represent the explicit removal or rejection of a favorite state.

A special thanks to @karsa-mistmere for suggesting this icon and providing the design direction in the issue. This addition enhances the library's consistency for action-based heart icons.

Icon use case

  • Unfavoriting/Removing Likes: Ideal for apps (like comic readers or galleries) where a user needs to remove an item from their favorites. The 'X' is more intuitive for "deletion" than a standard minus sign.
  • Negative Sentiment/Dislike: Useful for social feeds or discovery platforms (e.g., dating apps) to mark content as "Not Interested" or to "Reject" a suggestion.
  • Health/Life Status: In gaming or health-tracking UIs, it can represent a "lost life" or a failed health check.
  • UI Consistency: Perfectly complements bookmark-x, allowing developers to maintain a uniform "remove" action style across different feature sets.

Alternative icon designs

Icon Design Checklist

Concept

  • I have provided valid use cases for each icon.
  • I have not added any brand or logo icon.
  • I have not used any hate symbols.
  • I have not included any religious, war/violence related or political imagery.

Author, credits & license

  • The icons are solely my own creation.
  • The icons were originally created in Icon request: Heart x #4113 by @karsa-mistmere
  • I've based them on the following Lucide icons: heart, bookmark-x
  • I've based them on the following design:

Naming

  • I've read and followed the naming conventions
  • I've named icons by what they are rather than their use case.
  • I've provided meta JSON files in icons/heart-x.json.

Design

  • I've read and followed the icon design guidelines
  • I've made sure that the icons look sharp on low DPI displays.
  • I've made sure that the icons look consistent with the icon set in size, optical volume and density.
  • I've made sure that the icons are visually centered.
  • I've correctly optimized all icons to three points of precision.

Before Submitting

@github-actions github-actions Bot added 🎨 icon About new icons 🫧 metadata Improved metadata labels Apr 4, 2026
@github-actions github-actions Bot requested a review from karsa-mistmere April 4, 2026 12:03
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 ChatGPT Tags suggestions ✨

I've asked ChatGPT for some suggestions for tags.

Comment thread icons/heart-x.json
Comment thread icons/heart-x.json Outdated
@swastik7805
Copy link
Copy Markdown
Contributor Author

hey @karsa-mistmere ,have updated the PR with removal ui & ux tag .

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

Added or changed icons

heart-x

Preview cohesion message-square-reply
heart-x
funnel
Preview stroke widths heart-x
heart-x
heart-x
DPI Preview

16px (shadcn/ui)

heart-x

24px (default)

heart-x

32px (shadcn/ui + retina)

heart-x

48px (default + retina)

heart-x
Icon X-rays heart-x
Icon Diffs heart-x
Icon Symmetry

Flip Horizontal

heart-x

Flip Vertical

heart-x

Flip Diagonal

heart-x

Rotate 180°

heart-x
Icons as code

Works for: lucide-react, lucide-react-native, lucide-preact, lucide-vue-next

const HeartXIcon = createLucideIcon('HeartX', [
  ["path",{"d":"m15.5 12.5 5 5"}],
  ["path",{"d":"m20.5 12.5-5 5"}],
  ["path",{"d":"M21.955 8.774a5.5 5.5 0 0 0-9.546-2.95.6.6 0 0 1-.818 0A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.508 5.332a2 2 0 0 0 2.57.352"}]
])

@swastik7805
Copy link
Copy Markdown
Contributor Author

@karsa-mistmere awaiting for your review

Comment thread icons/heart-x.json Outdated
@karsa-mistmere karsa-mistmere merged commit 6e42a87 into lucide-icons:main Apr 24, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎨 icon About new icons 🫧 metadata Improved metadata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icon request: Heart x

3 participants