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

Add ability to use both solid and outlined font icons #363

Open
stonetip opened this issue Feb 2, 2024 · 1 comment
Open

Add ability to use both solid and outlined font icons #363

stonetip opened this issue Feb 2, 2024 · 1 comment

Comments

@stonetip
Copy link

stonetip commented Feb 2, 2024

It would be helpful to be able to use either solid or outlined versions of icons in the same web page. I would be happy to submit a pull request if this is considered a valid issue. I very much appreciate the work that went into providing this excellent resource.

As defined currently, unless I'm mistaken, this isn't possible. I was able to achieve this by making just three modifications. In the modus-outlined/fonts directory, I modified the CSS file:

@font-face {
  font-family: "modus-icons-outlined";
...
}

.modus-icons-outlined {
  font-family: "modus-icons-outlined";
...
}

I could then reference the icons like this in the same web page:

<i class="modus-icons">map</i>
<i class="modus-icons-outlined">map</i>
...
image
@coliff
Copy link
Member

coliff commented Mar 11, 2024

Firstly - Sorry for the long delay in replying! The original intention for the Modus Icon sets were that a single set was to be used per app/site and they shouldn't be mixed & matched.

We realise there are instances were it makes sense to use some icons from both sets though.

We don't have official guidance on an implementation method for this at the moment, but the way you are handling it looks good - that's what I would have done. :-)

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