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

feat: add new icon styles and update all fonts #46

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

Angelmmiguel
Copy link
Owner

@Angelmmiguel Angelmmiguel commented Nov 27, 2022

Update all the new icon styles and update existing fonts. Now, developers can select between the five different icon styles:

  • Regular
  • Sharp
  • Round
  • Two Tone
  • Outlined

Every style is defined in a separate stylesheet. This feature allows developers to select only the styles required for ttheir projects. It avoids to load all font files if they are not used.

To cover the new styles, I introduced a four new helper methods:

  • mi.outlined.shape(:home)
  • mi.sharp.shape(:home)
  • mi.outlined.shape(:home)
  • mi.twotone.shape(:home)

As you can see in the following screenshot, it shows the selected style:

A screenshot showing a basic rails page with the home icon in the 5 available styles

I also updated the README.md file with all the instructions about how to use these styles.

This PR closes multiple issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icons missing Logout icon not working Calendar_today icon Add support for other styles as well
1 participant