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 Icons | Heroicons | |
|---|---|---|
| Style | Three styles that share names: line, two-tone solid and layered color | Outline icons with a 1.5px stroke, and solid icons |
| Hover animation | Built into every icon: a lock's shackle lifts open, a folder opens | None built in; icons are static SVG |
| Icons | About 1,440 line, 802 two-tone and 979 layered (3,105 with badged and slashed versions) | More than 300 |
| Variants | Line: outline, line-duo, fill and solid-tint. Two-tone: 16-grid solid. Layered: color and soft | 24px outline, 24px solid, 20px solid and 16px solid |
| Color | One accent color; light tones, fill tints and gradients are derived from it | One color, through currentColor |
| Sizing | A size prop | CSS classes on the SVG, such as size-6 |
| Packages | React, Vue, Svelte, Solid, plain JavaScript, a web component, static SVG and SwiftUI | React and Vue, plus SVG and JSX to copy from the website |
| License | MIT | MIT |
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:
npm install kubai-icons-reactHeroicons 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:
// 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.
| Heroicons | kubai-icons-react |
|---|---|
HomeIcon | Home |
MagnifyingGlassIcon | Search |
Cog6ToothIcon | Settings |
UserIcon | User |
UsersIcon | Users |
UserPlusIcon | UserPlus |
UserGroupIcon | UserGroup |
EnvelopeIcon | Mail |
EnvelopeOpenIcon | MailOpen |
BellIcon | Bell |
BellSlashIcon | BellOff |
CalendarIcon | Calendar |
ClockIcon | Clock |
TrashIcon | Trash |
FolderIcon | Folder |
FolderOpenIcon | FolderOpen |
FolderPlusIcon | FolderPlus |
DocumentTextIcon | FileText |
DocumentDuplicateIcon | Copy |
ArrowDownTrayIcon | Download |
HeartIcon | Heart |
StarIcon | Star |
BookmarkIcon | Bookmark |
LockClosedIcon | Lock |
LockOpenIcon | LockOpen |
KeyIcon | Key |
EyeIcon | Eye |
EyeSlashIcon | EyeOff |
CameraIcon | Camera |
PhotoIcon | Image |
PhoneIcon | Phone |
ChatBubbleLeftRightIcon | Messages |
PaperAirplaneIcon | Send |
ShareIcon | Share |
MapPinIcon | MapPin |
GlobeAltIcon | Globe |
ShoppingCartIcon | ShoppingCart |
CreditCardIcon | CreditCard |
GiftIcon | Gift |
SunIcon | Sun |
MoonIcon | Moon |
CommandLineIcon | Terminal |
CircleStackIcon | Database |
Bars3Icon | Menu |
FunnelIcon | Filter |
CheckCircleIcon | CircleCheck |
ExclamationTriangleIcon | TriangleAlert |
InformationCircleIcon | Info |
RocketLaunchIcon | Rocket |
LightBulbIcon | Lightbulb |
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.