Capítulo 17 de 147

Chapter 17: Color

Core Idea

Learn how to adjust the color of icons in your React application using the color prop or by using parent elements text color value.

Key Concepts

  • Adjust the color using the color prop
  • Using parent elements text color value

Code Examples

import { Smile } from "lucide-react";

function App() {
  return (
    <div className="app">
      <Smile color="#3e9392" />
    </div>
  );
}

export default App;
  • What it demonstrates: Color usage pattern from the official Lucide docs.

Key Takeaways

  1. Adjust the color using the color prop
  2. Using parent elements text color value

Connects To

  • React: part of the React section of the Lucide docs.
  • Lucide for React: overview page for this section.