Icons
DavinciUI uses lucide-react — 1000+ MIT icons, consistent 2px stroke, React-ready. No additional icon package needed.
Introduction#
Icons are from lucide.dev — open-source, consistent stroke width, no fill. Import individually for tree-shaking.
Icon Library#
import { Search, Heart, Star } from "lucide-react"
<Search className="size-4" /> — 16px
Current implementation uses default Lucide stroke (2px). No custom DavinciUI stroke override.
Icon Sizes#
Use size-4 for inline (16px), size-5 for buttons (20px), size-6 for feature icons.
Stroke#
strokeWidth 1.5 — thin
strokeWidth 2 — default
strokeWidth 2.5 — bold
DavinciUI uses default (2). Override via strokeWidth prop only when needed.
Common Icons#
Actions
Communication
Navigation
Objects
Browse all at lucide.dev/icons
Usage Guidelines#
import { Search } from "lucide-react"
<Search className="size-4 text-muted-foreground" />
Always pair with className="size-4" — never hardcode width/height. Use aria-hidden for decorative, aria-label for standalone.
Accessibility#
- Decorative:
<Heart aria-hidden />— hide from screen readers. - With label:
<button aria-label="Favorite"><Heart /></button> - Icon-only controls: Always provide
aria-label— never rely on icon alone. - Avoid using icon color alone to convey meaning — pair with text.

