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

Swapping Layer Opacity of Duotone Icons #82

Open
timh1004 opened this issue Mar 11, 2021 · 1 comment
Open

Swapping Layer Opacity of Duotone Icons #82

timh1004 opened this issue Mar 11, 2021 · 1 comment

Comments

@timh1004
Copy link

It would be great if you could swap the layer opacity of duotone icons just like in the web component: https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons

@joeyscarim
Copy link

joeyscarim commented Aug 21, 2022

Not ideal, but this is achievable by setting the secondary opacity to 1, secondary color to your icon color, and (primary) color to an rgba value with an opacity of .4:

<FontAwesomeIcon
 icon={icon}
 size={22}
 secondaryColor="#fff"
 secondaryOpacity={1}
 color={'rgba(255, 255, 255, .4)'}
/>

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

2 participants