Icons for your app: free libraries, one stroke
Five free icon libraries with licenses you can actually use in your app, how to pick one, how to install it in React, React Native, and Flutter, how to go from emojis to icons with before-and-after examples, a ready-made prompt for your AI, and how to keep one stroke, weight, and size.
From emojis to icons, without mixing styles
This guide is for when you’ve already decided to swap your app’s emojis for icons and want to do it without ending up with a mix of styles. Kipu uses Lucide.
An emoji is drawn by each phone’s system, so it looks different depending on the brand and the version.
An icon from a library is a file: your app draws it the same on every phone, and you control the stroke, the size, and the color.
Five free libraries, compared
All of them can be used in a commercial app. Check the license file of the package you install.
| Library | License | How many icons | Styles | Package (React) |
|---|---|---|---|---|
| Lucide | ISC (the ones derived from Feather, MIT) | More than 1,600 | Stroke (outline) | lucide-react |
| Tabler Icons | MIT | 6,287: 5,233 outline and 1,054 filled | Outline and filled | @tabler/icons-react |
| Phosphor | MIT | 1,248 | 6 weights: thin, light, regular, bold, fill, duotone | @phosphor-icons/react |
| Heroicons | MIT | — | 4 variants: outline 24, solid 24, solid 20, solid 16 | @heroicons/react |
| Material Symbols (Google) | Apache 2.0 | More than 2,500 | Variable font with 4 axes: fill, weight, grade, and optical size | Web: material-symbols (npm) |
And where each one installs:
| React | React Native | Flutter | Vue | |
|---|---|---|---|---|
| Lucide | lucide-react | lucide-react-native (needs react-native-svg 12 to 15) | lucide_icons_flutter (community, MIT) | @lucide/vue |
| Tabler | @tabler/icons-react | @tabler/icons-react-native | flutter_tabler_icons (community, MIT) | @tabler/icons-vue |
| Phosphor | @phosphor-icons/react | phosphor-react-native (community) | phosphor_flutter (MIT) | @phosphor-icons/vue |
| Heroicons | @heroicons/react | Use the SVG (section 6) | heroicons (community) | @heroicons/vue |
| Material Symbols | material-symbols (web font) | Use the SVG (section 6) | Use the SVG (section 6) | material-symbols (web font) |
How to pick one
- Does it have the icons your app needs?
First make the list of what you use (section 4) and look them up in the library’s search. If several of the ones you use most are missing, try another.
- Does it work on your platform?
Check the second table. If there’s no package for yours, use SVG (section 6).
- What weight do you need?
An app almost always uses a single stroke. If you want to switch between outline and filled for states (active, inactive), Phosphor and Tabler ship both versions of the same icon.
- Does the license let you use it?
All the ones above are MIT, ISC, or Apache 2.0: commercial use allowed.
- Pick one and stick with it.
Don’t mix two libraries: the stroke and the corners never match.
How to install it
React / web. With Lucide:
npm install lucide-react
import { Camera } from 'lucide-react';
const App = () => <Camera />;To change an icon’s stroke:
<Camera strokeWidth={1.5} />In Lucide the default stroke is 2 px and it scales with the size. The nonScalingStroke prop keeps it fixed no matter the size.
Phosphor installs like this:
npm i @phosphor-icons/react
It takes color, size, and weight. With IconContext.Provider you set the defaults once for the whole app, and each icon can override them.
Tabler: @tabler/icons-react, with the stroke prop for the width.
Material Symbols on the web (Apache 2.0):
npm install material-symbols
React Native.
npx expo install react-native-svg # if you use Expo npm install lucide-react-native
import { Camera } from 'lucide-react-native';
const App = () => <Camera />;Without Expo, install react-native-svg with npm and run this:
cd ios && pod install
Lucide needs react-native-svg between versions 12 and 15.
If you use @expo/vector-icons, heads-up: the Expo docs say that package will be deprecated and don’t recommend it; they point you to @react-native-vector-icons.
Flutter. In pubspec.yaml:
lucide_icons_flutter: ^4.0.3import 'package:lucide_icons_flutter/lucide_icons.dart';
Icon(LucideIcons.activity);With Phosphor:
phosphor_flutter: ^2.1.0import 'package:phosphor_flutter/phosphor_flutter.dart';
PhosphorIcon(PhosphorIconsFill.notePencil, color: Colors.green, size: 30.0)Phosphor recommends using the per-style classes (PhosphorIconsBold, PhosphorIconsThin…) instead of PhosphorIcons.pencil(PhosphorIconsStyle.fill), because that form blocks tree shaking.
From emojis to icons, step by step
- List every emoji you use as an icon.
Search the code for emojis and the database for the fields where you store one (categories, statuses, onboarding). Note where each one shows up.
- Find its match in the library you picked.
One icon per emoji. The ones with no match go on a separate list: those are the candidates for a custom icon (section 6).
- Change the data, not just the screen.
If the emoji lives in your database as text, store an icon name instead (for example
supermercado) and let the app decide how to draw it. That way, switching libraries later means touching one place. - Do it in a single component.
The one in section 5, not emoji by emoji on every screen.
- Check what your users already saved.
If there’s already data with emojis, convert it once and test it on a copy.
- Walk through the whole app at the end.
Go through every screen to make sure no stray emoji is left.
Before and after, with Lucide. Every name exists on lucide.dev. In React you import it in PascalCase (dumbbell is Dumbbell).
In code, the same change looks like this:
// Before
<span>💪 Gym</span>
// After
import { Dumbbell } from 'lucide-react';
<span><Dumbbell size={20} strokeWidth={1.75} /> Gym</span>- Why switch.
The emoji is drawn by each phone’s system and changes shape and color; the icon is the same file everywhere.
- A colored circle behind it.
The circle sets the color and the icon stays single-tone, so it fits the rest of the app.
The prompt so your AI does it for you. Paste it into Claude Code, Cursor, or whatever tool you code with, from your project’s root. Change what’s in brackets.
I want to replace the emojis I use as icons in my app with icons from a library.
Context: my project uses [React / React Native / Flutter] and the icon library will be [Lucide, or whichever you prefer].
Step 1. Only search, don't change anything yet.
Find every emoji used as an icon in the code, in config files, and in stored data (categories, statuses, onboarding, buttons). Don't count emojis that are part of text a user wrote.
Give me a table with: file and line, the emoji, what it stands for, and which icon from the library you suggest. Only use icon names that exist in the library; if you're not sure about one, tell me.
Step 2. Wait for my go-ahead.
Don't touch any file until I tell you which ones. Also tell me if any emoji is stored in the database, because that change needs its own migration and you shouldn't do it without asking me.
Step 3. Do it through a single component.
Create an Icon component (or the equivalent) that every icon goes through:
- It takes the icon name and a size from three options: small 16, medium 20, and large 24.
- It uses one stroke width for the whole app and inherits the text color.
- If the name doesn't exist, it shows a question-mark icon instead of breaking the screen.
Replace every emoji with that component.
Step 4. Check.
Run my project's build or linter and tell me what failed. At the end, search again for emojis used as icons and tell me if any are left.[ ] Replace what is in brackets before you paste it.
If your tool can’t read your project (a chat with no file access), paste in the files with emojis first and ask only for steps 1 and 3.
One style across the whole app
- One stroke width for the whole app.
If you use 2 on one screen and 1.5 on another, it shows, even if you can’t say why.
- Three sizes, no more.
For example 16, 20, and 24. Pick yours and don’t use others.
- One base color.
Let the icon inherit the text color, and keep accents few and always the same.
The way to keep it from breaking over time is a single component that every icon goes through. A starting example, in React with Lucide:
import { Camera, Wallet, CircleQuestionMark } from 'lucide-react';
const ICONOS = { camara: Camera, cartera: Wallet };
const TAMANOS = { s: 16, m: 20, l: 24 };
export function Icono({ nombre, tamano = 'm' }) {
// If the name isn't in the map, it draws a help icon instead of breaking the screen.
const Componente = ICONOS[nombre] ?? CircleQuestionMark;
return <Componente size={TAMANOS[tamano]} strokeWidth={1.75} />;
}That way nobody drops in a one-off stroke again: whoever needs an icon asks for it by name.
In Phosphor, IconContext.Provider does the same without writing the component.
A colored circle behind the icon (like in Kipu’s categories) works well: the container sets the color and the icon stays single-tone.
When to make your own and import them
Make your own when the concept doesn’t exist in the library (something very specific to your product), and only then. Rules so it doesn’t clash:
- Same grid, same stroke, and same caps as the library.
For example 24 × 24, a stroke of 2, and rounded caps if the library uses them. Open them next to the library’s icons and compare before using them.
- Export as SVG in a single color.
And let the app color it.
To import it, depending on your platform:
- Web or React:
SVGR turns an SVG into a React component (react-svgr.com). It has an online playground if you don’t want to install anything.
- React Native:
With
react-native-svg(npx expo install react-native-svgin Expo) you draw the SVG as components (Svg,Path). - Flutter:
The
flutter_svgpackage (MIT, published by flutter.dev). Below, the line forpubspec.yamland how to color it.
flutter_svg: ^2.3.2SvgPicture.asset('assets/mio.svg', colorFilter: const ColorFilter.mode(Colors.red, BlendMode.srcIn))An icon font of your own (IcoMoon, Fontello) is also possible in Expo with createIconSetFromIcoMoon, but the Expo docs warn it only supports the format of the old IcoMoon app. For a few icons, SVG is simpler.
Put them in the same name map as the component in section 5, so using your own icon or a library one looks the same in the code.
I’ll send it so you don’t lose it.