icon classes like Font Awesome
Icon classes, the Font Awesome way
Add one small loader script, then write <i class="with with-home"></ anywhere in your HTML: that’s the same pattern Font Awesome made popular, and the page downloads only the icons it shows. Prefer no JavaScript? Link one stylesheet per style instead. Add a style class such as with-solid or with-sketch for the other 33 styles, and modifiers like with-2x, with-spin or with-flip-h. Click an icon below to copy its tag.
Pick an icon, copy the code
A starter set for Icon classes (<i> tags). Search to find any of all 1000.
Click an icon to copy its <i> tag. Its name opens its page; opens it in the studio.
- Interface
- home icon pageCustomize home in the studio
- search icon pageCustomize search in the studio
- settings icon pageCustomize settings in the studio
- user icon pageCustomize user in the studio
- bell icon pageCustomize bell in the studio
- menu icon pageCustomize menu in the studio
- close icon pageCustomize close in the studio
- check icon pageCustomize check in the studio
- plus icon pageCustomize plus in the studio
- minus icon pageCustomize minus in the studio
- trash icon pageCustomize trash in the studio
- pencil icon pageCustomize pencil in the studio
- download icon pageCustomize download in the studio
- upload icon pageCustomize upload in the studio
- share icon pageCustomize share in the studio
- heart icon pageCustomize heart in the studio
- star icon pageCustomize star in the studio
- bookmark icon pageCustomize bookmark in the studio
- filter icon pageCustomize filter in the studio
- sliders icon pageCustomize sliders in the studio
- lock icon pageCustomize lock in the studio
- unlock icon pageCustomize unlock in the studio
- eye icon pageCustomize eye in the studio
- eye-off icon pageCustomize eye-off in the studio
- Arrows
- arrow-right icon pageCustomize arrow-right in the studio
- arrow-left icon pageCustomize arrow-left in the studio
- arrow-up icon pageCustomize arrow-up in the studio
- arrow-down icon pageCustomize arrow-down in the studio
- arrow-up-right icon pageCustomize arrow-up-right in the studio
- chevron-right icon pageCustomize chevron-right in the studio
- chevron-down icon pageCustomize chevron-down in the studio
- chevrons-up-down icon pageCustomize chevrons-up-down in the studio
- external-link icon pageCustomize external-link in the studio
- refresh icon pageCustomize refresh in the studio
- undo icon pageCustomize undo in the studio
- redo icon pageCustomize redo in the studio
- Commerce
- shopping-cart icon pageCustomize shopping-cart in the studio
- shopping-bag icon pageCustomize shopping-bag in the studio
- store icon pageCustomize store in the studio
- credit-card icon pageCustomize credit-card in the studio
- receipt icon pageCustomize receipt in the studio
- tag icon pageCustomize tag in the studio
- ticket icon pageCustomize ticket in the studio
- gift icon pageCustomize gift in the studio
- truck icon pageCustomize truck in the studio
- package icon pageCustomize package in the studio
- banknote icon pageCustomize banknote in the studio
- wallet icon pageCustomize wallet in the studio
No icons match yet. Try a simpler word, or browse all 1000.
Want to change it first? Every icon has its own page with all 34 styles and every format, and a studio for its colours, stroke and size.
Set up
One setup line, then plain tags
Each icon is a CSS mask over currentColor, sized 1em, so it scales with font size and takes the text colour. The loader (about 6 KB gzipped) links just the CSS of the icons on the page, in any mix of styles: a line icon is about 270 bytes gzipped. No JavaScript? Link one stylesheet per style; with-line.css holds all 1000 line icons in about 26 KB gzipped. The link below is served by jsDelivr; to host it yourself, npm i @withicons/ or download with-line.css.
| Base class | with plus with-<name> |
|---|---|
| Styles | with-solid, with-duo, with-gloss, with-engrave, with-blueprint, with-sketch and more (the loader fetches each one; without it, link that style’s CSS) |
| Sizes | with-xs, with-sm, with-lg, with-2x … with-5x, with-fw |
| Motion & flips | with-spin, with-pulse, with-rotate-90, with-flip-h, with-flip-v |
| Aliases | With the optional runtime, alias names work too: with-bin → trash |
<script src="https://cdn.jsdelivr.net/npm/@withicons/classes@latest/dist/with-loader.js" defer></script>
<i class="with with-home"></i>
<i class="with with-home with-solid"></i>
<i class="with with-settings with-2x with-spin"></i>
<button><i class="with with-trash" aria-hidden="true"></i> Delete</button>Coming from Font Awesome? See the class-name map and converter.
FAQ
Questions people ask
Do I need JavaScript for the icon classes?
No. The small loader script is the lightest setup (it fetches only the icons on the page), but a stylesheet per style renders every icon of that style with no JavaScript at all. An optional runtime script adds live CSS colour variables and alias names.
How do I make an icon bigger?
Icons are 1em, so they follow font-size. Use with-lg or with-2x to with-5x, or set font-size yourself.
Is this compatible with Font Awesome class names?
The pattern is the same but the names differ (fa-house → with-home). The Font Awesome page has a name map and a converter.
How do I make an icon accessible?
Decorative icons next to text: add aria-hidden="true". Icon-only buttons: put aria-label on the button.
Find your icon in seconds
1000 free icons, 34 styles, no account. Copy, download or drag them into your work.
Browse all icons