Moey Icons
2,100+ line icons in 45 categories, as one variable web font. Included with Moey, and also usable on its own.
Add the stylesheet, then use an <i> with mi plus the icon's name. Icons take the current text color and size, and are sized automatically inside buttons and the sidebar.
<link rel="stylesheet" href="icons/dist/moey-icons.css">
<i class="mi mi-house"></i>
<i class="mi mi-settings mi-lg"></i> <!-- mi-xs mi-sm mi-lg mi-xl mi-2x mi-3x -->
<i class="mi mi-loader-circle mi-spin"></i> <!-- spinning -->
<i class="mi mi-user mi-fw"></i> <!-- fixed width, lines up in lists -->
<button class="btn btn-default"><i class="mi mi-plus"></i>New order</button>
Icons always need the mi class. If an icon is the only content of a button or link, give that button an aria-label.
Stroke width
Set the line in pixels — it stays exactly that thick at every icon size.
The font's weight axis is the stroke width. CSS works out each icon's size and picks the weight that draws your stroke exactly. Default: 1.5px.
Stroke classes
1
1.25
1.5
1.75
2
2.5
3
<i class="mi mi-house mi-stroke-1"></i> <!-- 1px -->
<i class="mi mi-house mi-stroke-2"></i> <!-- 2px -->
<style> .icon-stroke-custom { --mi-stroke: 1.2; } </style> <!-- any value -->
<i class="mi mi-house icon-stroke-custom"></i>
| Class | Stroke |
|---|---|
mi-stroke-1 · -1.25 · -1.5 · -1.75 · -2 · -2.5 · -3 | That many px |
mi-stroke-thin · -light · -medium · -bold | 1 · 1.25 · 2 · 2.5px |
mi-stroke-scale | Classic: the line grows with the icon |
Non-scaling
The same 1.5px line at 16, 24, 48 and 72px:
With mi-stroke-scale the line grows instead:
On a parent
The classes work on any element, so one class sets the weight of a whole area — a sidebar, a toolbar, or the whole app:
<nav class="mi-stroke-thin"> … </nav>
<div class="mi-stroke-bold"> … </div>
:root { --mi-stroke: 2; } /* change the default everywhere */
Prefer inline SVG? The same icons and classes are available as an SVG sprite — see icons/README.md.