Icons & Assets for AI Coders | SheCodes
Beginner 8 min read

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.

Stock Photos

High-quality, royalty-free images for your projects.

Illustrations

Hand-drawn and vector illustrations to add personality to your site.

Backgrounds & Patterns

Subtle patterns and backgrounds to add depth to your designs.

Placeholder Content

Temporary content for prototyping and development.

Lorem Ipsum Classic placeholder text. Use for body copy during development. Add lorem ipsum placeholder text
Placeholder Images Use gray boxes or via placehold.co for sized placeholders. Use a 400x300 placeholder image
Faker.js Generate realistic fake data: names, emails, addresses, etc. Use faker.js for realistic mock data
Avatars Use UI Avatars or DiceBear for generated avatar placeholders. Use DiceBear avatars for user profiles

Icon Styles Explained

Icons come in different styles. Here's what each one looks like and when to use it.

Live example

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.

Live example
16pxInline text
20pxButtons
24pxNavigation
32pxFeature cards
48pxHero sections

Icon Best Practices

Follow these tips to make your icons look polished and professional.

Stick to One Library Pick one icon library (like Lucide) and use it everywhere. Mixing libraries makes your site look inconsistent.
Don't Mix Styles Don't use outline icons in one place and filled icons in another (unless it's intentional, like showing active vs inactive).
Always Add Labels Screen readers can't see icons. Add aria-label or visible text next to icons so everyone can use your site.
Match Icon Weight to Font Thin icons look odd next to bold text. Pick an icon weight that feels balanced with your font choice.
Use Consistent Sizing All icons in the same context (like a nav bar) should be the same size. Mixing sizes looks messy.
Add Hover States If an icon is clickable, change its color or scale on hover so users know they can interact with it.

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.

16 16x16 Browser tab
32 32x32 Taskbar / bookmarks
180 180x180 Apple touch icon
192 192x192 Android home screen
512 512x512 PWA splash 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.

Prompt This

Copy-paste these prompts into your AI tool to apply what you just learned.

ADD ICONS TO YOUR APP

“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 TEXT LABELS WITH ICONS

“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.

Live example
🚀⚡🎨🔧📱💻🌐🔒📊💡✨🎯 📦🗄️🔗⭐🏠👤📝💬🔔⚙️📸🎬

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.