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

is it possible to support stroke-width? #64

Closed
carlosyan1807 opened this issue Feb 27, 2021 · 2 comments
Closed

is it possible to support stroke-width? #64

carlosyan1807 opened this issue Feb 27, 2021 · 2 comments

Comments

@carlosyan1807
Copy link

like is:

<span class="iconify" data-icon="carbon:bat" data-stroke-width="5">

<!-- or css -->
<span class="iconify stroke-5" data-icon="carbon:bat">

<style>
.stroke-5 {
  stroke-width: 5;
}
</style>

reference: https://iconpark.bytedance.com/official

image

@cyberalien
Copy link
Member

Code you wrote is valid (second example with class and css), so you can use that if icon supports it.

But custom attributes - no. That would be very library specific. Iconify is meant to be used with any icon sets, so it should not contain any code specific to any icon set.

@carlosyan1807
Copy link
Author

Okay, I get it, thanks for your reply and library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants