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

Add support for SVG icons #39

Open
ES-Alexander opened this issue Jan 2, 2025 · 0 comments
Open

Add support for SVG icons #39

ES-Alexander opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ES-Alexander
Copy link
Collaborator

ES-Alexander commented Jan 2, 2025

It would be nice to be able to import and inline SVG files via a shortcode.

It seems reasonable to not need to meaningfully parse or modify the actual file (e.g. we can assume it includes things like fill="currentColor" internally on relevant path components), but it would be nice to include a CSS icon class with properties like width:24px;height:24px;display:inline.


For context, I'm wanting to include things like menu item icons in the headings of the corresponding documentation. It may work to do that via an iconify plugin for tailwind (instead of specifically handling custom SVG files and including the relevant individual files in the relevant docs repo), but I'm not sure whether they would then not be the colour of the surrounding text, which would be a problem, and I don't love the idea of importing thousands of icons when only a few are needed. That would also be insufficient if the softwares are using any custom icons that we want to reproduce in the docs.

@ES-Alexander ES-Alexander added the enhancement New feature or request label Jan 2, 2025
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

1 participant