Kubai Icons vs Phosphor Icons

Phosphor is a large, flexible icon family where every icon comes in six weights. Kubai Icons comes in three styles that share names — line icons with adjustable stroke width and four variants, solid two-tone icons and layered color icons — and gives every icon its own hover motion. Both are MIT licensed and have React and Vue packages.

At a glance

Kubai IconsPhosphor
StyleThree styles that share names: line, two-tone solid and layered colorFlat icons in six weights
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 1,500, each in every weight
VariantsLine: adjustable stroke width, plus outline, line-duo, fill and solid-tint. Layered: color and softThin, light, regular, bold, fill and duotone
ColorOne accent color; light tones, fill tints and gradients are derived from itOne color; duotone adds a lighter fill of the same color
PackagesReact, Vue, Svelte, Solid, plain JavaScript, a web component, static SVG and SwiftUIReact, Vue, an icon font for the web, SVG files, and libraries for Flutter, SwiftUI and other platforms
LicenseMITMIT

When to choose Phosphor

  • You want to match icon weight to your typography, from thin to bold, or switch to fill for active states.
  • You need one flat style across a very wide range of objects.
  • You build for a platform that Kubai Icons has no package for, such as Flutter.
  • You prefer an icon font for plain HTML.

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 related states in the same drawing, such as folder-plus, user-check or bell-off.
  • You want new icons in the same style. The Kubai Icons skill lets a coding agent draw them.

Switching from Phosphor

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

bash
npm install kubai-icons-react

Both libraries export each icon with an Icon suffix, so only the import path and the names that differ change:

tsx
// Before
import { HouseIcon, BellIcon } from "@phosphor-icons/react";

<HouseIcon size={24} weight="duotone" />

// After (line style; omit "/line" for layered color or use "/duotone" for solid two-tone)
import { HomeIcon, BellIcon } from "kubai-icons-react/line";

<HomeIcon size={24} variant="solid-tint" />

size and color work the same way. In the line style (kubai-icons-react/line), replace Phosphor's thin-to-bold weight with strokeWidth (any value above 0, default 2), weight="fill" with variant="fill", and weight="duotone" with variant="solid-tint" or "line-duo". Phosphor's mirrored has no Kubai prop; flip the icon with CSS if you need it. Defaults that Phosphor sets with IconContext are set in Kubai by inheritance: color and the variant follow the nearest parent that sets them. See the line style and Customization.

Name table

The closest Kubai icon for common Phosphor icons. Phosphor also exports the older names without the suffix, such as House, which are now deprecated.

@phosphor-icons/reactkubai-icons-react
HouseIconHomeIcon
MagnifyingGlassIconSearchIcon
GearIconSettingsIcon
UserIconUserIcon
UsersIconUsersIcon
UserPlusIconUserPlusIcon
EnvelopeIconMailIcon
EnvelopeOpenIconMailOpenIcon
BellIconBellIcon
BellSlashIconBellOffIcon
CalendarIconCalendarIcon
ClockIconClockIcon
TrashIconTrashIcon
FolderIconFolderIcon
FolderOpenIconFolderOpenIcon
FileTextIconFileTextIcon
DownloadSimpleIconDownloadIcon
HeartIconHeartIcon
StarIconStarIcon
BookmarkIconBookmarkIcon
LockIconLockIcon
LockOpenIconLockOpenIcon
KeyIconKeyIcon
EyeIconEyeIcon
EyeSlashIconEyeOffIcon
CameraIconCameraIcon
ImageIconImageIcon
MusicNotesIconMusicIcon
PhoneIconPhoneIcon
PaperPlaneTiltIconSendIcon
ShareNetworkIconShareIcon
MapPinIconMapPinIcon
MapTrifoldIconMapIcon
GlobeIconGlobeIcon
ShoppingCartIconShoppingCartIcon
CreditCardIconCreditCardIcon
GiftIconGiftIcon
SunIconSunIcon
MoonIconMoonIcon
CloudIconCloudIcon
TerminalWindowIconTerminalIcon
DatabaseIconDatabaseIcon
ListIconMenuIcon
FunnelIconFilterIcon
CheckCircleIconCircleCheckIcon
WarningIconTriangleAlertIcon
InfoIconInfoIcon
RocketIconRocketIcon
StackIconLayersIcon
DotsThreeIconMoreHorizontalIcon

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

Questions

Can I use Phosphor 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 thin or bold weight?

Yes, in the line style (kubai-icons-react/line): set strokeWidth to any value above 0 (for example 1.5 for light, 2 for regular and 2.5 for bold), or use variant="fill" for filled shapes.

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.

Can I use Kubai Icons in commercial projects?

Yes. Like Phosphor, Kubai Icons is MIT licensed, which allows commercial use as long as the license notice is kept.