Kubai Icons vs Font Awesome
Font Awesome is a long-running icon toolkit with a free set and a paid Pro set, used as a web font or as SVG components. Kubai Icons comes in three styles that share names, line, two-tone and layered color, and every icon has its own hover motion. Kubai Icons is MIT licensed throughout.
At a glance
| Kubai Icons | Font Awesome | |
|---|---|---|
| Style | Three styles that share names: line, two-tone solid and layered color | Free: solid, regular and brand icons. Pro adds light, thin, duotone and other styles |
| Animation | A hover motion for each icon that acts out its meaning: a bell rings, a folder opens | General animations you switch on, such as spin, beat, bounce and shake, that loop on any icon |
| Icons | About 1,440 line, 802 two-tone and 979 layered (3,105 with badged and slashed versions) | About 2,000 in the free set, including brand logos; Pro has many more |
| Sizing | A size prop in pixels | Sizes relative to the text, such as lg or 2x |
| Color | One accent color; every shade is derived from it | One color; duotone icons take a primary and a secondary color |
| Packages | React, Vue, Svelte, Solid, plain JavaScript, a web component, static SVG and SwiftUI | Web fonts with CSS, SVG with JavaScript, and components for React, Vue and Angular |
| License | MIT | Free: icons CC BY 4.0, fonts SIL OFL 1.1, code MIT. Pro: a paid license |
When to choose Font Awesome
- You need brand logos: the free set has several hundred, and Kubai Icons has none.
- Your site or theme already loads Font Awesome, and icons are written as classes such as
fa-solid fa-house. - You have a Pro license and want many styles of each icon, or features such as stacking and masking icons.
- You want a looping animation on any icon, such as a spinning loader.
When to choose Kubai Icons
- You want motion that fits each icon: a lock's shackle lifts open and a trash can's lid lifts, on hover, instead of the same spin or shake on every icon.
- You want outline, filled and two-color looks without a paid plan: line icons have four variants, and the two-tone style is solid.
- You want only the icons you use in your bundle, with no font, no stylesheet and no icon library to register.
- You want new icons in the same style. The Kubai Icons skill lets a coding agent draw them.
Switching from Font Awesome
Install the package for your framework. Here it is React:
npm install kubai-icons-reactFirst pick the style. Solid Font Awesome icons are closest to the two-tone style, regular ones to the line style, and the layered style adds color and depth. The names are the same in every style that has the icon:
// Before
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faHouse, faBell } from "@fortawesome/free-solid-svg-icons";
<FontAwesomeIcon icon={faHouse} size="2x" />
<FontAwesomeIcon icon={faBell} size="lg" shake />
// After
import { Home, Bell } from "kubai-icons-react/duotone";
<Home size={32} />
<Bell size={20} />| @fortawesome/react-fontawesome | kubai-icons-react |
|---|---|
icon={faHouse} | The component itself: <Home /> |
size="lg", "2x" … | size in pixels: multiply by your text size, so 2x next to 16-pixel text is 32 |
color, or CSS color | color; both follow the text color by default |
spin, beat, bounce, shake … | No looping animations. The icon's own motion plays on hover; to play it from your code, set hover to true |
flip, rotation, transform | CSS transform through className or style |
fixedWidth, widthAuto | Not needed: every icon is square |
title | title; without it the icon is hidden from screen readers |
Duotone colors (--fa-primary-color …) | The two-tone style, or variant="line-duo" on line icons with --kl-light |
If you registered icons with library.add and refer to them by string, such as icon="house", import the components instead, or use DynamicIcon when the name comes from data. If you use the web font, replace <i class="fa-solid fa-house"> with the web component, <kubai-icon name="home">, and add icon-style="duotone" or icon-style="line" for the other styles; see No build step. Once the last icon is gone, remove the Font Awesome stylesheet or kit script.
What has no direct equivalent
- Brand logos. Keep
@fortawesome/free-brands-svg-iconsfor those, or use each brand's own SVG. - Looping animations. For a loading spinner, keep a CSS animation on a Kubai icon such as
loader, or keep the Font Awesome one. - Stacking, masking and layering icons. Kubai badged icons, such as
folder-plusandbell-off, cover common combinations in the layered style. - Pro-only icons and styles. Search the icon library by meaning. The two-tone set is smaller than the others, so check that the icon exists in the style you import.
Name table
The closest Kubai icon for common Font Awesome Free icons. Font Awesome 6 and later also accept older names as aliases, such as faHome for faHouse.
| @fortawesome/free-solid-svg-icons | kubai-icons-react |
|---|---|
faHouse | Home |
faMagnifyingGlass | Search |
faGear | Settings |
faUser | User |
faUsers | Users |
faUserPlus | UserPlus |
faEnvelope | Mail |
faEnvelopeOpen | MailOpen |
faBell | Bell |
faBellSlash | BellOff |
faCalendar | Calendar |
faClock | Clock |
faTrashCan | Trash |
faFolder | Folder |
faFolderOpen | FolderOpen |
faFileLines | FileText |
faDownload | Download |
faHeart | Heart |
faStar | Star |
faBookmark | Bookmark |
faLock | Lock |
faLockOpen | LockOpen |
faKey | Key |
faEye | Eye |
faEyeSlash | EyeOff |
faCamera | Camera |
faImage | Image |
faPhone | Phone |
faComment | MessageCircle |
faComments | Messages |
faPaperPlane | Send |
faShareNodes | Share |
faLocationDot | MapPin |
faMap | Map |
faGlobe | Globe |
faCartShopping | ShoppingCart |
faCreditCard | CreditCard |
faGift | Gift |
faSun | Sun |
faMoon | Moon |
faCloud | Cloud |
faTerminal | Terminal |
faDatabase | Database |
faBars | Menu |
faFilter | Filter |
faCircleCheck | CircleCheck |
faTriangleExclamation | TriangleAlert |
faCircleInfo | Info |
faRocket | Rocket |
faLayerGroup | Layers |
faEllipsis | MoreHorizontal |
faLink | Link |
faPen | Pencil |
faCopy | Copy |
faRightFromBracket | LogOut |
faLightbulb | Lightbulb |
faCircleXmark | CircleX |
faCircleQuestion | CircleHelp |
faThumbsUp | ThumbsUp |
faShieldHalved | Shield |
For anything else, search the icon library by name or meaning.
Questions
Can I use Font Awesome and Kubai Icons in the same project?
Yes. The packages are independent, so you can switch one screen at a time. The drawings differ, so keep one library per toolbar, and keep Font Awesome only for what Kubai Icons lacks, such as brand logos.
Is there a solid style like Font Awesome's?
Yes. The two-tone style from kubai-icons-react/duotone is solid, on a 16 grid. Line icons also have variant="fill", with closed shapes filled and details cut out.
Can I make an icon move without hover?
Yes. Set hover to true to play the icon's motion and back to false to return it, for example when a new message arrives. trigger="parent" plays it when a parent element is hovered.
Can I use Kubai Icons in commercial projects?
Yes. Kubai Icons is MIT licensed, which allows commercial use as long as the license notice is kept. Font Awesome Free's icons are under CC BY 4.0, which asks for attribution; Font Awesome Pro needs a paid license.