Icons & Assets for AI Coders
Where to find icons, images, illustrations, and other visual assets for your projects.
In this chapter
- Where to find free, high-quality icons for your project
- The difference between icon fonts and SVG icons
- Which icon libraries pair best with AI coding tools
- How to ask AI to swap or add icons in your UI
Icon Libraries
Pre-made icon sets you can use in your projects. Tell AI which library to use.
Beautiful, consistent icons. The successor to Feather Icons. Works perfectly with React.
Recommended
HeroiconsBy the Tailwind CSS team. Designed for Tailwind projects. Outline and solid variants.
Tailwind
React IconsIncludes Font Awesome, Material, Bootstrap, and more, all in one package.
All-in-One
Phosphor IconsFlexible icon family with 6 weights: thin, light, regular, bold, fill, duotone.
Flexible
Tabler IconsOver 5,000 free open-source icons. Clean and minimal design.
5,000+ Icons
Font Awesome The original icon library. Massive collection with free and pro tiers.Stock Photos
High-quality, royalty-free images for your projects.
The gold standard for free stock photos. Huge library, beautiful quality. No attribution required.
Most Popular
PexelsFree stock photos and videos. Great search and curated collections.
Photos + Videos
PixabayOver 2 million free images, vectors, and videos. No attribution needed.
Huge Library
Illustrations
Hand-drawn and vector illustrations to add personality to your site.
Open-source illustrations that you can customize colors to match your brand. SVG format.
Customizable
StorysetAnimated and static illustrations by Freepik. Customize style, colors, and backgrounds.
Animated
HumaaansMix-and-match illustration library of people. Customize hairstyles, clothing, positions.
People
Open PeepsHand-drawn illustration library with a sketchy, casual style.
Hand-Drawn
Blush Create and customize illustrations from various artists and styles. Icons8 Illustrations Consistent illustration styles. Free tier with attribution.Backgrounds & Patterns
Subtle patterns and backgrounds to add depth to your designs.
Customizable SVG background patterns. Adjust colors, size, and opacity.
SVG Patterns
Hero PatternsRepeating SVG background patterns by Steve Schoger, the designer at Tailwind Labs and co-author of Refactoring UI.
Refactoring UI
Cool BackgroundsGenerate beautiful gradient, particle, and abstract backgrounds.
Gradients
Placeholder Content
Temporary content for prototyping and development.
Icon Styles Explained
Icons come in different styles. Here's what each one looks like and when to use it.
Outline
Just the edges, no fill. Clean and minimal. Best for navigation bars, toolbars, and modern interfaces.
Filled / Solid
Completely filled in with color. Bolder and more visible. Great for active states, buttons, and calls to action.
Duotone
Two-tone color: an outline plus a lighter fill. Adds personality without being too heavy. Nice for feature sections and dashboards.
Icon Sizing Guide
Different parts of your site need different icon sizes. Here's a quick reference. See the UI Elements guide for where icons appear in buttons, navbars, and cards.
Icon Best Practices
Follow these tips to make your icons look polished and professional.
Favicons & App Icons
A favicon is the tiny icon that shows up in browser tabs. You also need larger icons if someone saves your site to their phone's home screen.
AI Image Generators
Create custom images and illustrations with AI when stock photos don't cut it.
Video & Animation Resources
Add movement to your site with animated icons, interactive animations, and stock video.
Lightweight animated icons and illustrations. Play smooth animations without heavy video files.
Animated Icons
Rive Create interactive animations that respond to user actions: hover, click, scroll. CoverrBeautiful, free stock videos for backgrounds and hero sections. No attribution needed.
Stock Video
Prompt This
Copy-paste these prompts into your AI tool to apply what you just learned.
“Add icons to my app using Lucide React. I need icons for [navigation, actions, status indicators]. Show me how to import and use them.”
“Replace the text labels in my [navbar/sidebar/buttons] with appropriate icons. Keep the text as accessible labels.”
Using Emoji as Icons
Emoji can be great quick icons, especially for prototyping. They're free and universal.
Frequently Asked Questions
Where do I get icons for my project?
Lucide is the most popular choice for React projects. It has 1,400+ clean, consistent icons. Heroicons (by the Tailwind team) and Phosphor Icons are also excellent. All three are free, open-source, and work great with AI tools.
Should I use icon fonts or SVG icons?
SVG icons (like Lucide or Heroicons as React components). Icon fonts are an older approach that loads ALL icons even if you only use a few. SVG components are tree-shakeable: your build only includes the icons you actually use.
How big should icons be?
16-20px for inline icons (next to text or in buttons), 24px for navigation and action icons, 32-48px for feature cards or hero sections. Keep icons the same size within the same context, because mixing sizes looks messy.