-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
I want you to support stroke-width in heroicons/react #263
Comments
ru88s
changed the title
I want you to support stroke-width
I want you to support stroke-width in heroicons/react
Apr 24, 2021
Duplicate of #241 |
Yes, it's pretty simple. You just need to write some css as follows: /* Set heroicon's stroke width */
.heroicon-sw-2 path {
stroke-width: 2 !important;
}
.heroicon-sw-1\.75 path {
stroke-width: 1.75 !important;
}
.heroicon-sw-1\.5 path {
stroke-width: 1.5 !important;
}
.heroicon-sw-1\.2 path {
stroke-width: 1.2 !important;
} Finally: <BookOpenIcon className="w-10 h-10 heroicon-sw-1.5" /> Although the above example uses the jsx version, it can also be applied to the svg version #241 . |
Duplicate of #241 |
With Tailwind ^3.0 you could use arbitrary properties like this: <BookOpenIcon className="w-10 h-10 [&>path]:stroke-[2]" /> you can even use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stroke-1 does not work.
Is there a way to adjust the stroke-width?
The text was updated successfully, but these errors were encountered: