📄 lucide/guide/basics/color

File: color.md | Updated: 11/15/2025

Source: https://lucide.dev/guide/basics/color

Skip to content

On this page

Color

=======================================================

By default, all icons have the color value: currentColor. This keyword uses the element's computed text color value to represent the icon color.

Read more about currentColor on MDN .

Adjust the color using the color prop


The color can be adjusted by passing the color prop to the element.

import { Smile } from "lucide-react";

function App() {

return (

<div className\="app"\>

<Smile color="#3e9392" />

</div>

);

}

export default App;

Refresh previewOpen on CodeSandboxOpen Sandbox

Open on CodeSandboxOpen Sandbox

Using parent elements text color value


Because the color of lucide icons uses currentColor, the color of the icon depends on the computed color of the element, or it inherits it from its parent.

For example, if a parent element's color value is #fff and one of the children is a lucide icon, the color of the icon will be rendered as #fff. This is browser native behavior.

import { ThumbsUp } from "lucide-react";

function LikeButton() {

return (

<button style={{ color: "#fff" }}>

<ThumbsUp />

Like

</button>

);

}

export default LikeButton;

Refresh previewOpen on CodeSandboxOpen Sandbox

Open on CodeSandboxOpen Sandbox