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

How to add a gradient to an icon? #66

Open
grandslammer opened this issue Feb 17, 2021 · 0 comments
Open

How to add a gradient to an icon? #66

grandslammer opened this issue Feb 17, 2021 · 0 comments

Comments

@grandslammer
Copy link

grandslammer commented Feb 17, 2021

I have tried using a linear gradient background on the icon, which I have working for normal text. The icon just appears as black though.

background: linear-gradient(93.08deg, #f42b03 8.39%, #0076ff 91.55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;

I am able to make the icon a solid color just by specifying a color property in the CSS. How can I add a gradient to an icon?

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