Capítulo 31 de 147

Chapter 31: Color

Core Idea

Learn how to adjust the color of icons in your Vue 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

<script setup>
import { Smile } from "@lucide/vue";
</script>

<template>
  <Smile color="#3e9392" />
</template>
  • 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

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