You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at packaging options, I looked into unplugin-icons for Iconify. I see the full Carbon icon set is provided by Iconify and there's a Svelte implementation: https://icon-sets.iconify.design/carbon/4k/. Perhaps consumers of carbon-components-svelte can have the privilege of choice; they may:
Consume the forthcoming carbon-icons-svelte featuring the full Carbon icon set in node_modules
Use unplugin-icons, giving you options to use Iconify-hosted icons or have Vite process them and be bundled in shipped code via the ?raw suffix
Use Iconify's Svelte implementation to use their CDN-hosted icons that includes the Carbon icon set
Folks with certain enterprise restrictions should be able to determine which would work best for them, and we can help document the pros and cons of each option.
It may be worth thinking about how carbon-icons-svelte is setup. I've been using svelte-awesome for icons and it is very fast as it only has ~5 .svelte files. That could possibly be a better approach than generating lots of .svelte files
Ideally, we want to ship a single Icon.svelte component that can return inlined SVGs via @html. This should improve vite dev performance.
The text was updated successfully, but these errors were encountered:
From: carbon-design-system/carbon-components-svelte#1613 (comment)
And: carbon-design-system/carbon-components-svelte#1561 (comment)
Ideally, we want to ship a single
Icon.svelte
component that can return inlined SVGs via@html
. This should improvevite dev
performance.The text was updated successfully, but these errors were encountered: