Skip to content

Iconify support second try #1731

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

VanceVisarisTenenbaum
Copy link

@VanceVisarisTenenbaum VanceVisarisTenenbaum commented May 30, 2025

📑 Summary

Iconify support added to the live editor.

Resolves #1566

📏 Design Decisions

In config tab you have this by default.
{ "theme": "dark" }

Now you can add your icons from iconify like this.

{ "theme": "dark" "icons" : { "name": "npm package" } }

Using the example from architecture docs your config should be:

{ "theme": "dark", "icons": { "logos": "@iconify-json/logos" } }

The icons are downloaded from unpkg url, just like the docs.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

Additional notes

I already tried to add icons using an extension a long time ago. Now I have tried directly using the live editor.

There is some small issue in the editor, that it tells you that "icons" is not a property from MermaidConfig (which is true) and rn idk how to solve, but I would like some feedback from devs for this.

Copy link

netlify bot commented May 30, 2025

Deploy Preview for mermaidjs ready!

Name Link
🔨 Latest commit 49b2328
🔍 Latest deploy log https://app.netlify.com/projects/mermaidjs/deploys/683b69a21a86fd0008ff6e84
😎 Deploy Preview https://deploy-preview-1731--mermaidjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Architecure icons not working
1 participant