Kubai Icons vs Heroicons

Heroicons is a compact set of outline and solid icons from the makers of Tailwind CSS. Kubai Icons comes in three styles that share names — line, two-tone solid and layered color — and gives every icon its own hover motion. Both are MIT licensed and have React and Vue packages.

At a glance

Kubai IconsHeroicons
StyleThree styles that share names: line, two-tone solid and layered colorOutline icons with a 1.5px stroke, and solid icons
Hover animationBuilt into every icon: a lock's shackle lifts open, a folder opensNone built in; icons are static SVG
IconsAbout 1,440 line, 802 two-tone and 979 layered (3,105 with badged and slashed versions)More than 300
VariantsLine: outline, line-duo, fill and solid-tint. Two-tone: 16-grid solid. Layered: color and soft24px outline, 24px solid, 20px solid and 16px solid
ColorOne accent color; light tones, fill tints and gradients are derived from itOne color, through currentColor
SizingA size propCSS classes on the SVG, such as size-6
PackagesReact, Vue, Svelte, Solid, plain JavaScript, a web component, static SVG and SwiftUIReact and Vue, plus SVG and JSX to copy from the website
LicenseMITMIT

When to choose Heroicons

  • Your interface is built with Tailwind CSS and should look like Tailwind UI.
  • You need sharp icons at 16 and 20 pixels: Heroicons has sets drawn for those sizes.
  • You want both outline and solid forms of each icon, for example for an active tab.
  • A small, general-purpose set covers what you need.

When to choose Kubai Icons

  • You want icons with color and depth that still match each other, from one accent color.
  • You want hover motion without writing it: each icon acts out what the object does.
  • You need objects outside a general UI set, such as kitchen tools, vehicles, sports or lab equipment.
  • You use plain JavaScript or a framework without a Heroicons package: the <kubai-icon> web component works anywhere.

Switching from Heroicons

Install the package for your framework. Here it is React:

bash
npm install kubai-icons-react

Heroicons imports each style from its own path, and every name ends in Icon. Kubai Icons also exports each icon with an Icon suffix across all three styles — kubai-icons-react/line for 24-grid outline icons, kubai-icons-react/duotone for 16-grid solid icons, and kubai-icons-react for layered color icons — so names such as BellIcon keep working:

tsx
// Before
import { HomeIcon, BellIcon } from "@heroicons/react/24/outline";

<HomeIcon className="size-6 text-gray-500" />

// After (line style at 1.5 stroke width; omit "/line" for layered color)
import { HomeIcon, BellIcon } from "kubai-icons-react/line";

<HomeIcon size={24} strokeWidth={1.5} className="text-gray-500" />

Heroicons are sized with CSS classes; Kubai icons take a size prop in pixels (default 24), and CSS sizing classes such as size-6 work too. Color works the same way: both follow currentColor, so text color classes recolor them. For solid 24px icons use variant="fill" on the line style, and for 16px solid icons use kubai-icons-react/duotone. See the line style and React props.

Name table

The closest Kubai icon for common Heroicons. Both columns are React exports; the Vue packages use the same names.

Heroiconskubai-icons-react
HomeIconHome
MagnifyingGlassIconSearch
Cog6ToothIconSettings
UserIconUser
UsersIconUsers
UserPlusIconUserPlus
UserGroupIconUserGroup
EnvelopeIconMail
EnvelopeOpenIconMailOpen
BellIconBell
BellSlashIconBellOff
CalendarIconCalendar
ClockIconClock
TrashIconTrash
FolderIconFolder
FolderOpenIconFolderOpen
FolderPlusIconFolderPlus
DocumentTextIconFileText
DocumentDuplicateIconCopy
ArrowDownTrayIconDownload
HeartIconHeart
StarIconStar
BookmarkIconBookmark
LockClosedIconLock
LockOpenIconLockOpen
KeyIconKey
EyeIconEye
EyeSlashIconEyeOff
CameraIconCamera
PhotoIconImage
PhoneIconPhone
ChatBubbleLeftRightIconMessages
PaperAirplaneIconSend
ShareIconShare
MapPinIconMapPin
GlobeAltIconGlobe
ShoppingCartIconShoppingCart
CreditCardIconCreditCard
GiftIconGift
SunIconSun
MoonIconMoon
CommandLineIconTerminal
CircleStackIconDatabase
Bars3IconMenu
FunnelIconFilter
CheckCircleIconCircleCheck
ExclamationTriangleIconTriangleAlert
InformationCircleIconInfo
RocketLaunchIconRocket
LightBulbIconLightbulb

For anything else, search the icon library by name or meaning.

Questions

Can I use Heroicons and Kubai Icons in the same project?

Yes. The packages are independent, so you can switch one screen at a time. The two styles look different side by side, so mixing them in one toolbar is best avoided.

Is there a solid or outline style?

Yes. Import from kubai-icons-react/line for 24-grid outline icons (and variant="fill" for filled shapes), or from kubai-icons-react/duotone for solid two-tone icons on a 16 grid.

Do Kubai icons work with Tailwind CSS?

Yes. Icons follow currentColor, so classes such as text-sky-600 set their color, and className passes through to the SVG.

How much does an icon add to the bundle?

Minified and gzipped, the first Kubai icon adds about 4 KB including the shared runtime, and each further icon about 0.6 KB. Icons you do not import are removed.