Duotone and gradient Available

Two colour effects for outline icons, on every icon of every library. Duotone fills the closed shapes (the body of a bell, a folder, a camera) with a soft second tone. Gradient makes the line run from one color to another. Use them together or alone.

In your components

React
import { Folder, Bell } from '@rdicons/react-rd'

<Folder duotone />                                   // soft fill in the icon's own color
<Folder duotone={0.4} color="#4f46e5" />             // stronger fill
<Folder duotone="#f59e0b" color="#4f46e5" />         // a second tone in another color
<Bell gradient={['#ec4899', '#4f46e5']} />           // line from pink to indigo
<Bell gradient={['#ec4899', '#4f46e5', 90]} duotone /> // top to bottom, with a fill
<Bell gradient={['#ec4899', '#4f46e5']} animate="loop" /> // works with animation
Vue
<Folder duotone />
<Folder :duotone="0.4" color="#4f46e5" />
<Bell :gradient="['#ec4899', '#4f46e5']" />
<Bell gradient="#ec4899,#4f46e5,90" duotone />
Svelte
<Folder duotone />
<Bell gradient={['#ec4899', '#4f46e5']} duotone={0.3} />
<Icon icon={House} gradient="#ec4899,#4f46e5,45" />
React Native
import { Folder } from '@rdicons/react-native/rd'

<Folder duotone color="#4f46e5" />
<Folder gradient={['#ec4899', '#4f46e5']} />

The two props

PropValuesWhat it does
duotonetrue, a number from 0.05 to 0.6, a color string, or { color, opacity }Fills closed shapes with a soft tone. true uses the icon's own color at 20%. A number sets the strength; a string is another color for the fill.
gradient[from, to], [from, to, angle], { from, to, angle } (Vue and Svelte also take "from,to,angle")The line runs from one color to another. The angle is in degrees: 0 is left to right, 90 is top to bottom, 45 is the default. It replaces color.

Good to know

  • Duotone needs a closed shape. Icons that are only lines (arrows, plus, a magnifier handle) look the same with it. Filled icons (Material, Phosphor regular) have nothing to tint.
  • Each icon on a page gets its own gradient, so two gradients on one page never mix.
  • The effects are applied when the icon renders, in a few microseconds, and only for the icons that use the props.
  • An incomplete value (a gradient with one color) is ignored; it never breaks the icon.

Command line and SVG

terminal
npx rdicons add rd:folder --duotone --gradient "#ec4899,#4f46e5,45" --size 48
npx rdicons add lucide:house --format rn --duotone 0.3   # React Native file

Or switch Color style on in the Customize panel of any icon page and copy the SVG. For your own helpers, @rdicons/core exports applyEffects and fillableShapes.