Feature request: Export 'sprites' folder in custom Kit package.json #20890
Marvellanius
started this conversation in
Feature Requests
Replies: 1 comment
-
|
I have encountered this same problem trying to import the svg sprite from my custom kit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
On our project we want to use a Kit as a single source of truth for both our project and design system (in Figma). We currently have a solution built around an SVG Symbol approach, and wanted to use the Kit in that way, expecting to be able to use the generated symbol in the package as the base.
Since this symbol isn't in the
package.jsonexportsobject, we cannot import the symbol as we would like.Adding this as a Feature Request and not a Bug, as I expect this is a conscious decision and not an oversight. If this was an oversight, I guess this should have been made as a Bug Issue.
Feature description
Include the
spritesfolder in thepackage.jsonexportsobject, so the generated sprite-files become available for import in application code.Alternatives
We've considered writing a script that, similarly to what we do now without a Kit, builds a sprite based on the icons we want to add (which is all the icons in a Kit). This would honestly defeat a decent portion of our purpose with a Kit (less code to maintain), but is a viable option. It would make us question why there's a sprites folder included in the package at all.
Additional context
No response
Feature request checklist
Beta Was this translation helpful? Give feedback.
All reactions