GithubHelp home page GithubHelp logo

halfmage / majesticons Goto Github PK

View Code? Open in Web Editor NEW
141.0 3.0 9.0 2.18 MB

๐Ÿ‘‘ Free Version โ€“ A versatile, beautiful, and scalable iconset. 760 icons each in line and solid style.

Home Page: https://majesticons.com

License: MIT License

icons svg iconset icon-pack line-icons solid-icons svg-icons

majesticons's Introduction

Majesticons

Majesticons - A high-quality SVG iconset that you can use for your web projects, your application, or print them to hang them on your wall! MIT-licensed

Latest Release License GitHub stars

majesticons.com โ€ข Figma community file โ€ข Browse free icons โ€ข Get 3000+ icons


Some facts for you: All icons are ...

  • designed to be used in a variety of topics
  • made with a basic 24x24 pixel grid
  • build with strokes (line-version)
  • optimized with SVGO

Usage

To use these icons in your project, simply copy and paste the SVG sourcecode in your HTML:

<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  <path
    d="M7 8h10M7 12h5m4.8..."
    stroke="currentColor"
    stroke-width="2"
    stroke-linecap="round"
    stroke-linejoin="round"
  />
</svg>

Contribute

Let me know if you use majesticons, I would like to prepare a showcase section on the website! If you run in any errors or have suggestion, please let me know via email or create a github issue ๐Ÿ‘‹

majesticons's People

Contributors

halfmage avatar nhoizey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

majesticons's Issues

Several icons cannot be converted to web-fonts using tools such as Fontastic or Fontello

Background explanation

Using the icons as suggested in the readme (i.e. injecting svg directly into the web page) is not very scalable. In modern apps, the icons are preferably embedded into custom web-fonts, providing a nice level of abstraction between the icon name and the actual svg code.
Copy and pasting the same svg everywhere can very rapidly become a nightmare in big apps for several reasons :

  • if you copied the same svg at several locations and want to replace it, you have to change it everywhere
  • each copied svg would have to be styled as its own separate markup entity which is not desirable

Instead, I would generate a custom webfont from the icons I like, using tools such as Fontastic or Fontello. This webfont would be loaded once and cached correctly into clients browsers. Then I can abstract the font glyph even further by creating a custom vuejs or react (or whatever modern js framework) component icon so I can write this in my code <icon name="user" /> or <icon name="arrow-up" />. The font is loaded once, and I can style the whole font on its own as I would with any kind of actual text, which is awesome.

The actual issue with majesticons

The reason I am saying all this is because with several icons in Majesticons (I tested 6 or 7 of them), the tools that perform the conversion from svg to web-fonts (Fontastic and Fontello are those I tested) complain that the svg markup cannot be converted properly. Fontello gives a warning while importing e.g. the plus icon like this :

Screenshot_1

The fontello github repo actually gives very thorough explanations about the limitations of web-fonts from SVG.

Fontastic (which is a bit clunky to be honest) messes up the icons like so (I imported both the svg copied from majesticon directly, then copied the svg generated by Figma from the project):

Screenshot_2

By the way the empty icon on the left is the plus icon I mentioned earlier. While generating this set, Fontastic simply crashes. This kind of issue never occured while using svg markups from fontawesome.

I am not an svg specialist and don't have any clue about the level of compromise needed to pass those limitations, but I think this would be very desirable that the icons in Majsticons could be converted directly to webfont glyphs.

Sorry for the wall of text by the way ๐Ÿ˜…

Icon wishlist

๐Ÿ‘ A place to mention icons that you miss and would like to be added!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.