Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(icons): added heart-plus & heart-minus icon #2842

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Ayberkyvs
Copy link

@Ayberkyvs Ayberkyvs commented Feb 25, 2025

What is the purpose of this pull request?

  • New Icon

Description

Added new heart-plus and heart-minus icons.

Icon use case

Purpose of the Heart Plus (+) Icon

This icon represents the action of adding something related to favorites, health, or support. It is commonly used in applications where users can save, like, or follow something, often related to medical services, social interactions, or user preferences.

Purpose of the Heart Minus (-) Icon

This icon represents the action of removing or unfollowing something related to favorites, health, or support. It is commonly used in apps where users can unfavorite, remove, or detach items from lists, profiles, or medical records.

Real-Life Use Cases

Medical & Health Apps

  1. Adding/removing a health record → In a health tracking app, users can tap heart-plus to add a new medical entry and heart-minus to remove one.
  2. Saving/removing a preferred doctor or hospital → A telemedicine app may use these icons to let users mark a doctor/clinic as a favorite or remove them.
  3. Adding/removing emergency contacts → In a first-aid or emergency app, these icons could allow users to manage their trusted emergency contacts.

Social & Community Features

  1. Following/unfollowing a person or group → In a social networking app, heart-plus can be used to follow a new friend, influencer, or community, while heart-minus allows unfollowing.
  2. Adding/removing an event from favorites → In an event app, users can use these icons to manage their saved events.
  3. Supporting/unsupporting a cause → Donation or charity platforms can use these icons to manage favorite causes or organizations.

E-commerce & Shopping

  1. Adding/removing a product from a wishlist → Online stores can use these icons to let users save and remove items from their wishlists.
  2. Saving/removing a favorite store or brand → Retail apps may use these icons to let users follow or unfollow specific brands or shops.

Entertainment & Media

  1. Bookmarking/unbookmarking a song, movie, or book → Streaming platforms can use these icons for adding/removing content from personal libraries.
  2. Subscribing/unsubscribing to a creator or channel → On content platforms like YouTube, these icons could indicate following or unfollowing creators.

Productivity & Personalization

  1. Saving/removing a note or document → Note-taking apps might use these icons for managing important notes.
  2. Creating/deleting a personalized list → A to-do list app could allow users to mark and unmark high-priority tasks.

Alternative icon designs

Icon Design Checklist

Concept

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

Author, credits & license

  • The icons are solely my own creation.
  • The icons were originally created in # by @Ayberkyvs
  • I've based them on the following Lucide icons: heart
  • 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/[iconName].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 Feb 25, 2025
Copy link

github-actions bot commented Feb 25, 2025

Added or changed icons

icons/heart-minus.svgicons/heart-plus.svg

Preview cohesion icons/square-percent.svgicons/message-square.svg
icons/heart-minus.svgicons/heart-plus.svg
icons/chart-area.svgicons/reply.svg
Preview stroke widths icons/heart-minus.svgicons/heart-plus.svg
icons/heart-minus.svgicons/heart-plus.svg
icons/heart-minus.svgicons/heart-plus.svg
DPI Preview (24px) icons/heart-minus.svg icons/heart-plus.svg
Icon X-rays icons/heart-minus.svg icons/heart-plus.svg
Icon Diffs icons/heart-minus.svg icons/heart-plus.svg
Icons as code

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

const HeartMinusIcon = createLucideIcon('HeartMinus', [
  ["path",{"d":"M13.5 19.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5A5.5 5.5 0 0 1 7.5 3c1.76 0 3 .5 4.5 2 1.5-1.5 2.74-2 4.5-2a5.5 5.5 0 0 1 5.402 6.5"}],
  ["path",{"d":"M15 15h6"}]
])

const HeartPlusIcon = createLucideIcon('HeartPlus', [
  ["path",{"d":"M13.5 19.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5A5.5 5.5 0 0 1 7.5 3c1.76 0 3 .5 4.5 2 1.5-1.5 2.74-2 4.5-2a5.5 5.5 0 0 1 5.402 6.5"}],
  ["path",{"d":"M15 15h6"}],
  ["path",{"d":"M18 12v6"}]
])

@UsamaKhan
Copy link

IMO, there isn't enough space between the plus and the heart:

image

Here's a version with more space:

icons
Open lucide studio

- Updated icons/heart-plus.svg
- Updated icons/heart-plus.json
@stormyzio
Copy link

Copy??? #2789

@Ayberkyvs
Copy link
Author

Copy??? #2789

You requested an icon, so I created this one myself based on the Lucide Heart icon as a reference. wdym?

- Refined the heart-plus icon design for better clarity.
- Updated its metadata accordingly.
- Added heart-minus as the inverse of heart-plus.
- Included its metadata file.
@Ayberkyvs Ayberkyvs changed the title feat(icons): added heart-plus icon feat(icons): added heart-plus & heart-minus icon Feb 27, 2025
@stormyzio
Copy link

Oh sorry I didn't notice, nevermind...

Copy link
Member

@ericfennis ericfennis left a comment

Choose a reason for hiding this comment

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

Nice, solid use cases!

The tags should be checked.

- Update heart-plus.json
- Remove ui & ux metadata tag
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.

4 participants