Icons
Four icon sets work with WunderUI: Lucide, Solar, Hugeicons and Reicon. A component takes any icon that renders an , so you pick the set that suits the screen and stay with it.
The four sets
| Set | What it is | Size | License |
|---|---|---|---|
| Lucide | Rounded line icons on a 24 px grid. The glyphs inside WunderUI controls come from it. | About 1,700 icons, 1 style | ISCFree for personal and commercial use. Keep the copyright notice. |
| Solar | A friendly set with six drawing styles per icon. Ships with WunderUI as ready-made components. | 1,451 icons, 6 styles | CC BY 4.0Free for commercial use. Credit 480 Design and say the icons were modified. |
| Hugeicons | A large line set with a soft, rounded look. The free package has the stroke style. | 4,500+ icons, 1 style (free) | MITFree for commercial use. Keep the license notice. The Pro package is a separate paid license. |
| Reicon | A newer open-source set with an outline and a filled weight for every icon. | 2,600+ icons, 2 weights | MITFree for commercial use. Keep the license notice. |
Lucide
Plain line icons that follow the text colour. The stroke width is a prop, and 1.5 matches the other sets best.
npm install lucide-react
import { Bell } from "lucide-react"
<Bell className="size-5" strokeWidth={1.5} />| Style | Drawing |
|---|---|
| stroke | A rounded outline stroke. The width is set with strokeWidth; the default is 2. |
Solar
Import from . Every export starts with , so it is never mistaken for another set in code or in Figma.
import { SolarBell } from "@wunderui/react/icons/solar/bell"
<SolarBell variant="bold-duotone" className="size-5 text-primary" />| Style | Drawing |
|---|---|
| linear | A 1.5 px outline stroke with rounded caps. The default. |
| line-duotone | The linear stroke with one part at 50 % opacity. |
| bold | A solid filled glyph. |
| bold-duotone | A solid glyph with one part at 50 % opacity. |
| broken | A linear stroke with gaps in the outline. |
| outline | A thin filled contour in the shape of an outline. |
Credit
Solar Icon Set by 480 Design, licensed under CC BY 4.0. Modified: converted to React components, color set to . If you ship these icons, keep the credit with your other third-party notices. Solar has no plain close icon; use the close icon of another set.
Hugeicons
The free package has one style, Stroke Rounded. An icon is data, drawn by .
npm install @hugeicons/react @hugeicons/core-free-icons
import { HugeiconsIcon } from "@hugeicons/react"
import { Notification01Icon } from "@hugeicons/core-free-icons"
<HugeiconsIcon icon={Notification01Icon} className="size-5" strokeWidth={1.5} />| Style | Drawing |
|---|---|
| stroke | Soft, rounded lines. The width is set with strokeWidth; 1.5 is a good fit next to the other sets. |
Free and Pro
Only the free package is MIT licensed. The Hugeicons Pro package has more styles and its own paid license, which WunderUI does not cover.
Reicon
Every icon comes in two weights, set with the prop.
npm install reicon-react
import { Bell } from "reicon-react"
<Bell weight="Filled" size={20} />| Weight | Drawing |
|---|---|
| Outline | A line drawing. The default. |
| Filled | A solid glyph for the active or selected state. |
Base sets
Reicon is MIT licensed. Its license page credits Solar and Zappicon as base sets, so check the terms of both if you ship its icons.
Icons inside components
Put the icon next to the label and mark which side it is on. The component evens out its padding:
<Button>
<Plus data-icon="inline-start" />
New project
</Button>Size icons with the spacing scale, in buttons and menu items and in navigation and cards, and let them take the text color. This works with any icon component that passes and on to its .
One set per surface
Do not mix two sets on one screen. Stroke weight, corners and optical size differ, and the mismatch looks like a mistake. Different surfaces can use different sets: one template can use Solar while a block uses Reicon.
Glyphs inside controls
The small glyphs a component draws itself, such as the chevron of a Select or the check of a Checkbox, come with the component. Set on your own icons to match their weight and the difference disappears at normal sizes.