Capítulo 56 de 147

Chapter 56: Color

Core Idea

Learn how to adjust the color of icons in your Solid 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-solid/icons/smile';

function App() {
  return (
    <div class="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

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