Skip to content
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

Feat: export multiple icons as symbol #119

Open
3 tasks done
ijkml opened this issue Feb 27, 2023 · 2 comments
Open
3 tasks done

Feat: export multiple icons as symbol #119

ijkml opened this issue Feb 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ijkml
Copy link

ijkml commented Feb 27, 2023

Clear and concise description of the problem

After adding some icons to bag, there are options to download as icon font or svg zip. The "Export as symbols" options should download an svg file containing the symbols of each icon.

Suggested solution

Currently, I haven't checked, but I'd be willing to implement this if pointed in the right direction.
The svg file would look like this:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <symbol id="icon-name-1" viewBox="0 0 2048 2048">
      <!-- icon here -->
    </symbol>
    <symbol viewBox="0 0 32 32" id="cib-facebook-f">
      <path fill="currentColor" d="..." />
    </symbol>
  </defs>
</svg>

Alternative

Copy svg symbol one by one

Additional context

No response

Validations

@ijkml ijkml added the enhancement New feature or request label Feb 27, 2023
@AustinGil
Copy link

This would be a great addition. Much more handy than generating symbols one at a time.

@userquin
Copy link
Member

unocss/unocss#2675

iamyuu added a commit to iamyuu/icones that referenced this issue Aug 28, 2023
@antfu antfu changed the title Bag: export multiple icons as symbol Feat: export multiple icons as symbol Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants