Skip to content
AXIcons
AXIcons
Theme

Icon colours

Colour icons through currentColor, the color prop or CSS.

currentColor

Icons paint only with currentColor. Set the text colour on the icon or anything above it.

React
<p className="text-emerald-600">
  <IconCheck /> Paid
</p>

The color prop

React
<IconCheck color="#059669" />

Try it

16202432
Icon
Colour
camera · outline
import { IconCamera } from "@axcore/xicons-react";

<IconCamera size={48} />

Something wrong or missing?Open an issue

Jump to
Browse all iconsIcon library
InstallationGetting started
Quick startGetting started
ReactIntegrations
React NativeIntegrations
↑↓ navigateopen⌘K toggle