Skip to content

Gradient for icons? #1831

Closed Answered by karsa-mistmere
manuelpoelzl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @manuelpoelzl,

Personally, I think Lucide is by nature an icon library, not a UI kit, implementing a proper solution for adding gradient support to our icons falls well outside a range of what a simple icon lib should be doing.

Gradient definitions should in practice be declared just once per app and reused over and over again by their IDs, however, the way each of our JS libraries could handle this varies vastly based on the library itself (e.g. in React we could use an app wrapper component and states, in Angular an injectable service and Renderer2 etc), so it would be super hard to implement a consistent and similar solution between different libraries and in some cases would requir…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@manuelpoelzl
Comment options

Answer selected by manuelpoelzl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants