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 IconsFont Awesome
StyleThree styles that share names: line, two-tone solid and layered colorFree: solid, regular and brand icons. Pro adds light, thin, duotone and other styles
AnimationA hover motion for each icon that acts out its meaning: a bell rings, a folder opensGeneral animations you switch on, such as spin, beat, bounce and shake, that loop on any icon
IconsAbout 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
SizingA size prop in pixelsSizes relative to the text, such as lg or 2x
ColorOne accent color; every shade is derived from itOne color; duotone icons take a primary and a secondary color
PackagesReact, Vue, Svelte, Solid, plain JavaScript, a web component, static SVG and SwiftUIWeb fonts with CSS, SVG with JavaScript, and components for React, Vue and Angular
LicenseMITFree: 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:

bash
npm install kubai-icons-react

First 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:

tsx
// 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-fontawesomekubai-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 colorcolor; 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, transformCSS transform through className or style
fixedWidth, widthAutoNot needed: every icon is square
titletitle; 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-icons for 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-plus and bell-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-iconskubai-icons-react
faHouseHome
faMagnifyingGlassSearch
faGearSettings
faUserUser
faUsersUsers
faUserPlusUserPlus
faEnvelopeMail
faEnvelopeOpenMailOpen
faBellBell
faBellSlashBellOff
faCalendarCalendar
faClockClock
faTrashCanTrash
faFolderFolder
faFolderOpenFolderOpen
faFileLinesFileText
faDownloadDownload
faHeartHeart
faStarStar
faBookmarkBookmark
faLockLock
faLockOpenLockOpen
faKeyKey
faEyeEye
faEyeSlashEyeOff
faCameraCamera
faImageImage
faPhonePhone
faCommentMessageCircle
faCommentsMessages
faPaperPlaneSend
faShareNodesShare
faLocationDotMapPin
faMapMap
faGlobeGlobe
faCartShoppingShoppingCart
faCreditCardCreditCard
faGiftGift
faSunSun
faMoonMoon
faCloudCloud
faTerminalTerminal
faDatabaseDatabase
faBarsMenu
faFilterFilter
faCircleCheckCircleCheck
faTriangleExclamationTriangleAlert
faCircleInfoInfo
faRocketRocket
faLayerGroupLayers
faEllipsisMoreHorizontal
faLinkLink
faPenPencil
faCopyCopy
faRightFromBracketLogOut
faLightbulbLightbulb
faCircleXmarkCircleX
faCircleQuestionCircleHelp
faThumbsUpThumbsUp
faShieldHalvedShield

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.