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

Generate styles with sprite dimensions #36

Open
keasy9 opened this issue Feb 10, 2025 · 0 comments
Open

Generate styles with sprite dimensions #36

keasy9 opened this issue Feb 10, 2025 · 0 comments

Comments

@keasy9
Copy link

keasy9 commented Feb 10, 2025

It will be usefull to generate css, less or any other stylesheet for sprites, for e.g.:

icon--arrow {
    width: 32px;
    height: 64px;
}

where width and height based on svg size attributes or viewBox.

The problem for me is that when inserting sprites via the <use> tag, it has default SVG dimensions (300*150) no matter what size the icon is, so I need to manually write the dimensions for each icon in my stylesheets.

If this feature is welcomed, I may try to do some PR.

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

No branches or pull requests

1 participant