lucide
lucide copied to clipboard
Feature Request: Link to icon
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 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.
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.
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:
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/
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
what does "the edge" mean here?
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
Copy Data Url
also works with Notion.
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: @.***>