lucide icon indicating copy to clipboard operation
lucide copied to clipboard

Feature Request: Link to icon

Open SamuelStevenson opened this issue 3 years ago • 2 comments

Is there any chance that we could get an option to copy a link to the icon with the currently set colour? I've been using the original Feather Icons in my Notion database and would love to be able to use the Lucide icons instead. Thanks!

SamuelStevenson avatar Dec 31 '21 06:12 SamuelStevenson

@SamuelStevenson I'm don't think I totally understand what you want to accomplish. The way how we create the svg files is exactly the same as Feather Icons. So the color of each icon is set to "currentColor" that's the font size color of the document. Can you explain how you use feather inside notion? Maybe we can make lucide work their too.

ericfennis avatar Jan 02 '22 14:01 ericfennis

I believe they want a feature to copy a link from the website, which would show a particular icon with the color selected in the customize dialog.

moeenio avatar Feb 03 '22 18:02 moeenio

They want a copyable URL which would return as a response the SVG source of a certain icon with the current customization options which they could then insert into Notion's custom icon dropdown: image

I think a better solution would be to what Simple.ink does and allow copying a data URI which would be a much more generic solution: https://notionicons.simple.ink/

karsa-mistmere avatar Apr 27 '23 14:04 karsa-mistmere

I've in the new website, created an endpoint for directly requesting icons.

This will be an example of a request URL. http://lucide.dev/api/icons/airplay?strokeWidth=1&color=ff0 This API will be running on the edge and aggressively cached.

@karsa-mistmere For the data url, I think aslo nice idea to add to website

ericfennis avatar May 02 '23 18:05 ericfennis

what does "the edge" mean here?

moeenio avatar May 04 '23 10:05 moeenio

what does "the edge" mean here?

Vercel's Edge Network.

karsa-mistmere avatar May 04 '23 10:05 karsa-mistmere

The new website is live, and the endpoint from my latest comment is available. So have fun!

http://lucide.dev/api/icons/airplay?strokeWidth=1&color=ff0

ericfennis avatar Jun 11 '23 18:06 ericfennis

Copy Data Url also works with Notion.

image

jguddas avatar Jun 11 '23 19:06 jguddas

Amazing! It works beautifully. Thanks so much for the added functionality!

On Sun, Jun 11, 2023 at 12:20 PM Jakob Guddas @.***> wrote:

Copy Data Url also works with Notion.

[image: image] https://user-images.githubusercontent.com/25524993/244962068-1b509c45-3919-4008-b6f1-188688f714f6.png

— Reply to this email directly, view it on GitHub https://github.com/lucide-icons/lucide/issues/461#issuecomment-1586304973, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKCMJ3DYKJAB344UVXA5IM3XKYLAZANCNFSM5LA3IERA . You are receiving this because you were mentioned.Message ID: @.***>

SamuelStevenson avatar Jun 12 '23 17:06 SamuelStevenson