I want to use heroicons which is licensed under MIT in a website.

The license states - "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.".

Where do I need to put a copy of MIT license text? If I put it as a comment inside the SVG icons they may get removed when deploying.

  • I've archived the discussion here to a chat page.
    – MadHatter
    Dec 30, 2022 at 10:24

1 Answer 1


We already have a fair amount of advice on this, in our question How to show MIT license on icons, but you've indicated you'd like a little more detail on what text to preserve. If you go for the "link to a licence page" option, that link should appear on every page that contains the icons (or better still, every page of your site), and the page itself should contain the licence text, as well as all upstream copyright notices (which will likely be of the form (c) 2020-2022 Fred Developer).

You've also indicated a preference for the "link to a licence page" option since you're not confident that the icon metadata will be preserved on deployment. Given that the licence obligations are yours to fulfil, if you're not sure of that, then a licence page is an acceptable way to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.