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

Can you do fill? If so, how? #41

Open
palladius opened this issue Aug 19, 2023 · 1 comment
Open

Can you do fill? If so, how? #41

palladius opened this issue Aug 19, 2023 · 1 comment

Comments

@palladius
Copy link

Hi, I was looking for an option like fill: 'yellow'
but I can't get it to work.

Can you help me create a yellow star, for instance? A small code snippet would help.

@puffo
Copy link

puffo commented Sep 7, 2023

Those kinds of options aren't really needed if you're using something like Tailwindcss. You can achieve this quite easily by just adding the necessary stroke styling classes.

Here's an example:

<%= heroicon "star", variant: :outline,  options: { class: "stroke-1 stroke-yellow-600 fill-yellow-600 w-5 h-5" } %>

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